Summary: Optimizer for PNG (Portable Network Graphics) files Name: pngcrush Version: 1.6.6 Release: 1 License: GPL Group: Applications/File URL: http://pmt.sourceforge.net/%{name}/ Source0: http://dl.sf.net/pmt/%{name}-%{version}.tar.bz2 Patch0: %{name}-%{version}-aix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: libpng-devel >= 1.2.29, zlib-devel >= 1.2.3 Requires: libpng >= 1.2.29, zlib >= 1.2.3 %description pngcrush is an optimizer for PNG (Portable Network Graphics) files. It can be run from a commandline in an MSDOS window, or from a UNIX or LINUX commandline. Its main purpose is to reduce the size of the PNG IDAT datastream by trying various compression levels an PNG filter methods. It also can be used to remove unwanted ancillary chunks, or to add certain chunks including gAMA, tRNS, iCCP, and textual chunks. %prep %setup -q %patch0 %build make %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} mkdir -p ${RPM_BUILD_ROOT}%{_bindir} cp pngcrush ${RPM_BUILD_ROOT}%{_bindir} chmod 0755 ${RPM_BUILD_ROOT}%{_bindir}/* /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : 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,0755) %doc *.txt %{_bindir}/* /usr/bin/* %changelog * Tue May 20 2008 Michael Perzl - 1.6.6-1 - first version for AIX V5.1 and higher