From e43834c561f47b7ce78e25ad61f178680fb8b3be Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 19:57:43 +0100 Subject: [PATCH] package created by silvan using the webbuild interface [release 3.10a-1mamba;Fri Feb 01 2013] --- README.md | 2 ++ xv-3.10a-glibc-2.13.patch | 24 ++++++++++++++++ xv.spec | 58 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 xv-3.10a-glibc-2.13.patch create mode 100644 xv.spec diff --git a/README.md b/README.md index 3166814..690be55 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # xv +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. + diff --git a/xv-3.10a-glibc-2.13.patch b/xv-3.10a-glibc-2.13.patch new file mode 100644 index 0000000..c8fe346 --- /dev/null +++ b/xv-3.10a-glibc-2.13.patch @@ -0,0 +1,24 @@ +--- xv-3.10a/tiff/Makefile.ewt Thu Aug 29 16:42:28 1996 ++++ xv-3.10a/tiff/Makefile Thu Aug 29 16:42:33 1996 +@@ -36,7 +36,7 @@ + IPATH= -I. + + COPTS= -O +-CFLAGS= ${COPTS} ${IPATH} ++CFLAGS= ${COPTS} ${IPATH} -D_BSD_SOURCE + + INCS= tiff.h tiffio.h + +--- xv-3.10a/xv.h.ewt Thu Aug 29 16:44:24 1996 ++++ xv-3.10a/xv.h Thu Aug 29 16:44:46 1996 +@@ -114,8 +114,8 @@ + + #ifndef VMS + # include +- extern int errno; /* SHOULD be in errno.h, but often isn't */ +-# ifndef __NetBSD__ ++# if !defined(__NetBSD__) && !defined(__GNU_LIBRARY__) ++ extern int errno; /* SHOULD be in errno.h, but often isn't */ + extern char *sys_errlist[]; /* this too... */ + # endif + #endif diff --git a/xv.spec b/xv.spec new file mode 100644 index 0000000..6a174e6 --- /dev/null +++ b/xv.spec @@ -0,0 +1,58 @@ +Name: xv +Version: 3.10a +Release: 1mamba +Summary: An interactive image manipulation program for the X Window System +Group: Graphical Desktop/Applications/Graphics +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.trilon.com/xv/ +Source: ftp://ftp.trilon.com/pub/xv/xv-%{version}.tar.gz +Patch0: xv-3.10a-glibc-2.13.patch +License: Distributable +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libX11-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. + +%debug_package + +%prep +%setup -q +%patch0 -p1 + +%build +%make -j1 + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +install -d -m0755 %{buildroot}{%{_bindir},%{_mandir}/man1,%{_libdir}} +%makeinstall \ + BINDIR=%{buildroot}%{_bindir} \ + MANDIR=%{buildroot}%{_mandir}/man1 \ + LIBDIR=%{buildroot}%{_libdir} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_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 + +%changelog +* Fri Feb 01 2013 Silvan Calarco 3.10a-1mamba +- package created by silvan using the webbuild interface