Name: xloadimage Summary: Image viewer and processor Version: 4.1 Release: 4%{?dist} License: MIT Group: User Interface/X Source0: ftp://ftp.x.org/R5contrib/%{name}.%{version}.tar.gz # All of these patches 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 URL: http://www.frostbytes.com/~jimf/xloadimage.html BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libX11-devel, libtiff-devel, libpng-devel, libjpeg-devel BuildRequires: libICE-devel %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} %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 chmod +x configure %build %configure make %{?_smp_mflags} %install rm -rf %{buildroot} # First, the binaries: mkdir -p %{buildroot}%{_bindir} install -m 0755 uufilter %{buildroot}%{_bindir} install -m 0755 xloadimage %{buildroot}%{_bindir} # Next, the symlinks pushd %{buildroot}%{_bindir} ln -s xloadimage xsetbg ln -s xloadimage xview popd # The configuration file mkdir -p %{buildroot}%{_sysconfdir}/X11/ install -m 0644 xloadimagerc %{buildroot}%{_sysconfdir}/X11/Xloadimage # Now, the man pages mkdir -p %{buildroot}%{_mandir}/man1/ install -m 0644 xloadimage.man %{buildroot}%{_mandir}/man1/xloadimage.1x install -m 0644 uufilter.man %{buildroot}%{_mandir}/man1/uufilter.1x # And some copies for the symlinks (we can't really make symlinks here because of how rpm # compresses man pages) cp -a %{buildroot}%{_mandir}/man1/xloadimage.1x %{buildroot}%{_mandir}/man1/xsetbg.1x cp -a %{buildroot}%{_mandir}/man1/xloadimage.1x %{buildroot}%{_mandir}/man1/xview.1x %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc README mit.cpyrght %{_bindir}/uufilter %{_bindir}/xloadimage %{_bindir}/xsetbg %{_bindir}/xview %config(noreplace) %{_sysconfdir}/X11/Xloadimage %{_mandir}/man1/* %changelog * Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Dec 10 2008 Tom "spot" Callaway <tcallawa@redhat.com> 4.1-2 - drop unnecessary BR: zlib-devel (dragged in by libpng-devel) * Thu Dec 4 2008 Tom "spot" Callaway <tcallawa@redhat.com> 4.1-1 - Initial package for Fedora