From 1566ee33abe4ec709b6914afa8cbc849c0b6d34c Mon Sep 17 00:00:00 2001 From: B Stack Date: Tue, 16 Feb 2021 16:55:58 -0500 Subject: add xzoom --- xzoom/xzoom.spec | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 xzoom/xzoom.spec (limited to 'xzoom/xzoom.spec') diff --git a/xzoom/xzoom.spec b/xzoom/xzoom.spec new file mode 100644 index 0000000..7f2c2f7 --- /dev/null +++ b/xzoom/xzoom.spec @@ -0,0 +1,80 @@ +# Startdate: 2021-02-16 +# References +# spec adapted mostly from https://build.opensuse.org/package/view_file/home:Akoellh/xzoom/xzoom.spec?expand=1 +# https://build.opensuse.org/package/show/home:zhonghuaren/xzoom +# https://salsa.debian.org/debian/xzoom +%define debug_package %{nil} +Name: xzoom +Version: 0.3 +Release: 1 +License: X11 +Summary: Magnify part of X display, with real-time updates +Url: https://webdiis.unizar.es/pub/unix/X11 +Group: System/X11/Utilities +Source0: https://webdiis.unizar.es/pub/unix/X11/%{name}-%{version}.tgz +Source1: https://salsa.debian.org/debian/xzoom/-/raw/debian/master/debian/xzoom.desktop +### Debian upstream patch +Patch0: https://cdn-fastly.deb.debian.org/debian/pool/main/x/%{name}/%{name}_0.3-24.diff.gz +Patch1: %{name}-0.3.shm.diff +BuildRequires: imake +BuildRequires: desktop-file-utils +BuildRequires: pkgconfig(xext) +BuildRequires: pkgconfig(xt) + +%description + +Like xmag, xzoom magnifies a section of the X display. Xzoom is different +because it will continuously update the magnified area as the display +changes. It is fast enough to enlarge small animations, for example. + +It can also mirror or rotate a part of the screen. + +%prep +%setup -q +%patch0 -p1 +%patch1 -p1 +cp -p %{SOURCE1} . + +%build +xmkmf +make %{?_smp_mflags} + +%install +install -Dm 755 %{name} $RPM_BUILD_ROOT%{_bindir}/%{name} +install -Dm 644 %{name}.man $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1 +desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1} + +%posttrans +update-desktop-database 1>/dev/null 2>&1 || : + +%files +%defattr(-,root,root) +%{_bindir}/%{name} +%{_datadir}/applications/%{name}.desktop +%{_mandir}/man1/%{name}.1* +%doc README %{name}.lsm + +%changelog +* Tue Feb 16 2021 B. Stack - 0.3-1 +- Build for Fedora 32 and above + +* Thu Oct 12 2017 - 0.3 +- initial package, based on upstream packages from Debian and Fedora + +* Wed Nov 13 2013 Huaren Zhong 0.3 +- Rebuild for Fedora + +* Tue Apr 12 2011 Fr. Br. George 0.3-alt3 +- BuildRequires recalculated + +* Tue Dec 09 2008 Fr. Br. George 0.3-alt2 +- libXext-devel added + +* Mon Aug 27 2007 Fr. Br. George 0.3-alt1 +- Initial build for ALT + +* Mon Nov 11 2002 - ro@suse.de +- changed neededforbuild to + +* Mon Dec 03 2001 - egmont@suselinux.hu +- Initial release -- cgit