# sometime i hope to remove the xv shareware and replace it by this # one. %define name xli %define version 1.17.0 %define release 7mdk %define url http://pantransit.reptiles.org/prog/ Summary: XLI - X11 Image Loading Utility Name: %{name} Version: %{version} Release: %{release} Url: %url # I was need to redo the tarball. Source0: %{url}/%{name}-%{version}.tar.bz2 Patch1: xli-1.17.0-mdkpath.patch.bz2 Patch2: xli-1.17.0-compile-fixes.patch.bz2 Patch3: xli-1.16-faces.patch.bz2 Patch4: xli-1.17.0-gcc-3.3.patch.bz2 License: MIT Group: Graphics BuildRequires: XFree86-devel libjpeg-devel libpng-devel BuildRoot: %{_tmppath}/%{name}-buildroot Prefix: %{_prefix}/X11R6 Provides: xloadimage Obsoletes: xloadimage %description This utility will view several types of images under X11, or load images onto the X11 root window. Can view the following image types under X11: FBM Image, Sun Rasterfile, CMU WM Raster, Portable Bit Map (PBM, PGM, PPM), Faces Project, GIF Image, JFIF style jpeg Image, Utah RLE Image, Windows, OS/2 RLE Image, Photograph on CD Image, X Window Dump, Targa Image, McIDAS areafile, G3 FAX Image, PC Paintbrush Image, GEM Bit Image, MacPaint Image, X Pixmap (.xpm), XBitmap %prep %setup -q %patch1 -p1 %patch2 -p1 %patch3 -p0 -b .faces %patch4 -p0 -b .gcc3.3 %build xmkmf -a make CFLAGS="%optflags" for i in xli xlito; do cp -f $i.man $i.1; done cp -f xliguide.man xliguide.5 cp mit.cpyrght COPYRIGHT %install rm -rf $RPM_BUILD_ROOT P=$RPM_BUILD_ROOT/%{prefix} mkdir -p $P/{bin,man/man1/,man/man5} mkdir -p %buildroot/etc/X11/app-defaults/ make install SYSPATHFILE=%buildroot/etc/X11/app-defaults/Xli BINDIR=$P/bin for i in *.1;do install -m644 $i $P/man/man1/$i;done install -m644 xliguide.5 $P/man/man5/ ln -sf xli $RPM_BUILD_ROOT/usr/X11R6/bin/xsetbg ln -sf xli $RPM_BUILD_ROOT/usr/X11R6/bin/xview ln -sf xli $RPM_BUILD_ROOT/usr/X11R6/bin/xloadimage # quick fix for doc permissions chmod 644 $RPM_BUILD_DIR/%{name}-%{version}/README* %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc chkgamma.jpg README* ABOUTGAMMA COPYRIGHT %{prefix}/bin/* %config(noreplace) /etc/X11/app-defaults/* %{prefix}/man/*/* %changelog * Thu Jul 24 2003 Götz Waschk <waschk@linux-mandrake.com> 1.17.0-7mdk - rediff patch3 * Mon Jul 14 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 1.17.0-6mdk - fix gcc-3.3 build (P4) * Mon Mar 24 2003 Florin <florin@mandrakesoft.com> 1.17.0-5mdk - added missing link to xloadimage (thx to Wesley J. Landaker) - use License and Url * Tue Oct 16 2001 Renaud Chaillat <rchaillat@mandrakesoft.com> 1.17.0-4mdk - rebuilt with libpng3 * Tue Aug 28 2001 Vincent Danen <vdanen@mandrakesoft.com> 1.17.0-3mdk - patch to fix buffer overflow * Thu Jul 12 2001 Stefan van der Eijk <stefan@eijk.nu> 1.17.0-2mdk - BuildRequires: libjpeg-devel - Removed BuildRequires: zlib-devel * Mon Feb 5 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.17.0-1mdk - Get compile with last glibc. - 1.17.0. * Thu Aug 31 2000 Florin Grad <florin@mandrakesoft.com> 1.16-7mdk - removed the png from the description according to the README file * Wed Aug 30 2000 Florin Grad <florin@mandrakesoft.com> 1.16-6mdk- removed the png from the description according to the README file - fixed the strange permissions of the source files * Tue Aug 08 2000 Frederic Lepied <flepied@mandrakesoft.com> 1.16-5mdk - automatically added BuildRequires * Fri Apr 7 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.16-4mdk - Add Obsoletes: Provides: xloadimage. * Mon Mar 20 2000 Camille Begnis <camille@mandrakesoft.com> 1.16-3mdk - Fixed group - fixed bad symlinks * Sat Mar 18 2000 Camille Begnis <camille@mandrakesoft.com> 1.16-2mdk - let spec-helper do its job * Sat Feb 5 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.16-1mdk - Apply debian patchs. - First packaging. # end of file