Name: xloadimage Summary: Image viewer and processor Version: 4.1 Release: 1 License: MIT Group: User Interface/X Source0: ftp://ftp.x.org/R5contrib/%{name}.%{version}.tar.gz # Patches 0-18 come from Debian 4.1-16.1 # Many thanks to all those who have done work on this package over the years Patch0: 01_libjpeg-support.dpatch Patch1: 02_png-support.dpatch Patch2: 03_security-strfoo.dpatch Patch3: 04_previous-image.dpatch Patch4: 05_idelay-manpage.dpatch Patch5: 06_-Wall-cleanup.dpatch Patch6: 07_SYSPATHFILE.dpatch Patch7: 08_manpage-config-path.dpatch Patch8: 09_xloadimagerc-path.dpatch Patch9: 10_config.c-HOME-fix.dpatch Patch10: 11_fork-implies-quiet.dpatch Patch11: 12_fix-tile.dpatch Patch12: 13_varargs-is-obsolete.dpatch Patch13: 14_errno-not-extern.dpatch Patch14: 15_CAN-2005-0638.dpatch Patch15: 16_CAN-2005-0639.dpatch Patch16: 17_security-sprintf.dpatch Patch17: 18_manpage_fixes.dpatch Patch18: 19_fix_root_c_resource_leak.dpatch Patch19: xloadimage-4.1-ignore-dummy-copyright-variables.patch Patch20: xloadimage-4.1-bracketfix.patch URL: http://www.frostbytes.com/~jimf/xloadimage.html BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: coreutils, patch BuildRequires: libtiff-devel >= 3.9.4-2 BuildRequires: libpng-devel >= 1.2.44 BuildRequires: libjpeg-devel >= 6b Requires: libtiff >= 3.9.4-2 Requires: libpng >= 1.2.44 Requires: libjpeg >= 6b %description Xloadimage is a utility which will view many different types of images under X11, load images onto the root window, or dump processed images into one of several image file formats. The current version can read many different image file types. A variety of options are available to modify images prior to viewing. These options include clipping, dithering, depth reduction, zoom (either X or Y axis independently or both at once), brightening or darkening, and image merging. When applicable, these options are done automatically (eg a color image to be displayed on a monochrome screen will be dithered automatically). %prep %setup -q -n %{name}.%{version} export PATH=/opt/freeware/bin:$PATH %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 %patch8 -p1 %patch9 -p1 %patch10 -p1 %patch11 -p1 %patch12 -p1 %patch13 -p1 %patch14 -p1 %patch15 -p1 %patch16 -p1 %patch17 -p1 %patch18 -p1 %patch19 -p1 %patch20 -p1 chmod +x configure %build ./configure \ --prefix=%{_prefix} make %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} export PATH=/opt/freeware/bin:$PATH # first, the binaries: mkdir -p ${RPM_BUILD_ROOT}%{_bindir} install -m 0755 uufilter ${RPM_BUILD_ROOT}%{_bindir} install -m 0755 xloadimage ${RPM_BUILD_ROOT}%{_bindir} /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : # next, the symlinks ( cd ${RPM_BUILD_ROOT}%{_bindir} ln -s xloadimage xsetbg ln -s xloadimage xview ) # the configuration file mkdir -p ${RPM_BUILD_ROOT}/etc/X11 install -m 0644 xloadimagerc ${RPM_BUILD_ROOT}/etc/X11/Xloadimage # now, the man pages mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1 install -m 0644 xloadimage.man ${RPM_BUILD_ROOT}%{_mandir}/man1/xloadimage.1 install -m 0644 uufilter.man ${RPM_BUILD_ROOT}%{_mandir}/man1/uufilter.1 # and some copies for the symlinks (we can't really make symlinks here because # of how rpm compresses man pages cp -a ${RPM_BUILD_ROOT}%{_mandir}/man1/xloadimage.1 ${RPM_BUILD_ROOT}%{_mandir}/man1/xsetbg.1 cp -a ${RPM_BUILD_ROOT}%{_mandir}/man1/xloadimage.1 ${RPM_BUILD_ROOT}%{_mandir}/man1/xview.1 cd ${RPM_BUILD_ROOT} mkdir -p usr/bin cd usr/bin ln -sf ../..%{_bindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %doc README mit.cpyrght %config(noreplace) /etc/X11/Xloadimage %{_bindir}/* %{_mandir}/man1/* /usr/bin/* %changelog * Tue Jul 19 2011 Michael Perzl - 4.1-1 - first version for AIX V5.1 and higher