Summary: XLI - X11 Image Loading Utility Name: xli Version: 1.17.0 Release: 1 URL: http://pantransit.reptiles.org/prog/ Source0: http://pantransit.reptiles.org/prog/%{name}-%{version}.tar.bz2 Patch0: %{name}-%{version}-aix.patch License: MIT Group: Graphics BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: libjpeg-devel >= 6b-7 BuildRequires: libpng-devel >= 1.2.46-1 Requires: libjpeg >= 6b-7 Requires: libpng >= 1.2.46-1 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 %patch0 %build xmkmf -a make %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/X11/app-defaults make install SYSPATHFILE=${RPM_BUILD_ROOT}%{_libdir}/X11/app-defaults/Xli BINDIR=${RPM_BUILD_ROOT}%{_bindir} mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1 mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man5 mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/X11/app-defaults cp xli.man ${RPM_BUILD_ROOT}%{_mandir}/man1/xli.1 cp xlito.man ${RPM_BUILD_ROOT}%{_mandir}/man1/xlito.1 cp xliguide.man ${RPM_BUILD_ROOT}%{_mandir}/man5/xli.5 chmod 0644 ${RPM_BUILD_ROOT}%{_mandir}/man?/* ( cd ${RPM_BUILD_ROOT}%{_bindir} ln -sf xli xsetbg ln -sf xli xview ln -sf xli xloadimage ) # quick fix for doc permissions chmod 644 ${RPM_BUILD_DIR}/%{name}-%{version}/README* cd ${RPM_BUILD_ROOT} mkdir -p usr/bin cd usr/bin ln -sf ../..%{_bindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system) %doc chkgamma.jpg README* ABOUTGAMMA mit.cpyrght %config(noreplace) %{_libdir}/X11/app-defaults/* %{_bindir}/* %{_mandir}/man?/* /usr/bin/* %changelog * Mon Dec 10 2012 Michael Perzl - 1.17.0-1 - first version for AIX V5.1 and higher