From 5adbaa59755a4815d490f1809c4abdf2a1ea1615 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 19:57:44 +0100 Subject: [PATCH] update to 4.2.0 [release 4.2.0-1mamba;Sun Jul 23 2023] --- xv.spec | 49 ++++++++++++++++++++++++++++++++----------------- 1 file changed, 32 insertions(+), 17 deletions(-) diff --git a/xv.spec b/xv.spec index 6a174e6..d3bfdb6 100644 --- a/xv.spec +++ b/xv.spec @@ -1,5 +1,5 @@ Name: xv -Version: 3.10a +Version: 4.2.0 Release: 1mamba Summary: An interactive image manipulation program for the X Window System Group: Graphical Desktop/Applications/Graphics @@ -7,14 +7,22 @@ Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.trilon.com/xv/ -Source: ftp://ftp.trilon.com/pub/xv/xv-%{version}.tar.gz +Source: https://github.com/jasper-software/xv.git/v%{version}/xv-%{version}.tar.bz2 Patch0: xv-3.10a-glibc-2.13.patch License: Distributable ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel +BuildRequires: libICE-devel +BuildRequires: libSM-devel BuildRequires: libX11-devel +BuildRequires: libXt-devel +BuildRequires: libjasper-devel +BuildRequires: libjpeg-devel +BuildRequires: libpng-devel +BuildRequires: libtiff-devel +BuildRequires: libwebp-devel +BuildRequires: libz-devel ## AUTOBUILDREQ-END -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description xv is an interactive image manipulation program for the X Window System. It can operate on images in the GIF, JPEG, TIFF, PBM, PGM, PPM, XPM, X11 bitmap, Sun Rasterfile, Targa, RLE, RGB, BMP, PCX, FITS, and PM formats on all known types of X displays. It can generate PostScript files, and if you have ghostscript (version 2.6 or above) installed on your machine, it can also display them. @@ -23,36 +31,43 @@ xv is an interactive image manipulation program for the X Window System. It can %prep %setup -q -%patch0 -p1 +#%patch 0 -p1 %build -%make -j1 +%cmake -d build \ + -DCMAKE_INSTALL_SYSCONFDIR=%{_sysconfdir} + +%make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -install -d -m0755 %{buildroot}{%{_bindir},%{_mandir}/man1,%{_libdir}} -%makeinstall \ - BINDIR=%{buildroot}%{_bindir} \ - MANDIR=%{buildroot}%{_mandir}/man1 \ - LIBDIR=%{buildroot}%{_libdir} +%makeinstall -C build + +%find_lang %{name} --with-man --all-name %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%files +%files -f %{name}.lang %defattr(-,root,root) +%config %{_sysconfdir}/xv_mgcsfx %{_bindir}/bggen %{_bindir}/vdcomp %{_bindir}/xcmap %{_bindir}/xv %{_bindir}/xvpictoppm -%{_libdir}/xvdocs.ps -%{_mandir}/man1/bggen.1.gz -%{_mandir}/man1/vdcomp.1.gz -%{_mandir}/man1/xcmap.1.gz -%{_mandir}/man1/xv.1.gz -%{_mandir}/man1/xvpictoppm.1.gz +%{_mandir}/man1/bggen.1* +%{_mandir}/man1/vdcomp.1* +%{_mandir}/man1/xcmap.1* +%{_mandir}/man1/xv.1* +%{_mandir}/man1/xvpictoppm.1* +%dir %{_docdir}/xv +%{_docdir}/xv/* +%doc LICENSE.txt %changelog +* Sun Jul 23 2023 Silvan Calarco 4.2.0-1mamba +- update to 4.2.0 + * Fri Feb 01 2013 Silvan Calarco 3.10a-1mamba - package created by silvan using the webbuild interface