Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 2ec586d0953b0929e2b2d03af0b2402c > files > 6

xli-1.17.0-8mdk.src.rpm

# sometime i hope to remove the xv shareware and replace it by this
# one.
%define	name	xli
%define	version	1.17.0
%define	release	8mdk
%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 X11
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
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
mkdir -p $RPM_BUILD_ROOT%{_prefix}/X11R6/bin
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/X11/app-defaults/
make install SYSPATHFILE=$RPM_BUILD_ROOT%{_sysconfdir}/X11/app-defaults/Xli BINDIR=$RPM_BUILD_ROOT%{_prefix}/X11R6/bin

for i in *.1;do install -m644 $i -D $RPM_BUILD_ROOT%{_prefix}/X11R6/man/man1/$i;done
install -m644 xliguide.5 -D $RPM_BUILD_ROOT%{_prefix}/X11R6/man/man5/xliguide.5

ln -sf xli $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/xsetbg
ln -sf xli $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/xview 
ln -sf xli $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/xloadimage

# quick fix for doc permissions
chmod 644 README*
 
%clean  
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc chkgamma.jpg README* ABOUTGAMMA COPYRIGHT 
%{_prefix}/X11R6/bin/*
%config(noreplace) %{_sysconfdir}/X11/app-defaults/*
%{_prefix}/X11R6/man/*/*

%changelog
* Sat Dec 25 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 1.17.0-8mdk
- fix buildrequires
- cosmetics

* 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.