Name: compface Version: 1.5.2 Release: 13%{?dist} Summary: Library and tools for handling X-Face data Group: System Environment/Libraries License: MIT URL: http://ftp.xemacs.org/pub/xemacs/aux/ Source0: http://ftp.xemacs.org/pub/xemacs/aux/%{name}-%{version}.tar.gz Source1: compface-test.xbm Source2: compface-README.copyright # originally from http://ftp.debian.org/debian/pool/main/libc/libcompface/libcompface_1.5.2-4.diff.gz Patch0: libcompface_1.5.2-4.diff.gz Patch1: compface-1.5.2-stack-smashing.patch Patch2: compface-1.5.2-build.patch BuildRequires: diffutils %description This is the Compface image compression and decompression library and its user tools. Compface converts 48x48 .xbm format (X bitmap) images to a compressed format that can be placed in the X-Face: mail header. Some mail programs are able to display such images when opening messages. %package devel Summary: Library and development files for handling X-Face data Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} %description devel These files are needed when building software that uses the Compface library. %prep %setup -q %patch0 -p1 %patch1 -p1 -b .stack-smashing %patch2 -p0 %build CFLAGS="$RPM_OPT_FLAGS -fPIC" %configure make %{?_smp_mflags} %install make install DESTDIR=$RPM_BUILD_ROOT STRIP=/bin/true mkdir -p _extdoc && install -p -m 0644 %{SOURCE2} _extdoc/README.copyright %check export LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir}:$LD_LIBRARY_PATH ./compface %{SOURCE1} | ./uncompface -X > __test.xbm cmp %{SOURCE1} __test.xbm %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc ChangeLog README xbm2xface.pl %doc _extdoc/README.copyright %{_bindir}/compface %{_bindir}/uncompface %{_libdir}/libcompface.so.* %{_mandir}/man1/compface.1* %{_mandir}/man1/uncompface.1* %files devel %{_includedir}/compface.h %{_libdir}/libcompface.so %{_mandir}/man3/compface.3* %{_mandir}/man3/uncompface.3* %changelog * Fri Jan 6 2012 Michael Schwendt - 1.5.2-13 - rebuild for GCC 4.7 as requested - drop obsolete items from spec file, plus use %%?dist and %%?_isa * Tue Feb 08 2011 Fedora Release Engineering - 1.5.2-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Jul 24 2009 Fedora Release Engineering - 1.5.2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Fri May 15 2009 Michael Schwendt - 1.5.2-10 - Minor spec updates. - Sync with Debian's most recent 1.5.2-4 patchset, although it doesn't add anything for us compared with 1.5.2-3. * Tue Feb 24 2009 Fedora Release Engineering - 1.5.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat May 31 2008 Michael Schwendt - 1.5.2-8 - Drop "|| :" from check section. It failed to build for mdomsch in Rawhide today. * Fri Feb 08 2008 Michael Schwendt - 1.5.2-7 - rebuilt for GCC 4.3 as requested by Fedora Release Engineering * Tue Aug 21 2007 Michael Schwendt - 1.5.2-6 - rebuilt * Thu Jan 4 2007 Michael Schwendt - 1.5.2-5 - rebuilt - Update summaries and url. * Mon Aug 28 2006 Michael Schwendt - 1.5.2-4 - rebuilt * Sat Aug 5 2006 Michael Schwendt - 1.5.2-3 - Add licence terms clarification from Debian's patch. * Fri Aug 4 2006 Michael Schwendt - 1.5.2-2 - Add patch to prevent sscanf stack smashing through Debian's patch. - Fix two GCC warnings in the same patch. - Add one test to the %%check section and BR diffutils. * Wed Aug 2 2006 Ville Skyttä - 1.5.2-1 - Update to 1.5.2, apply Debian's 1.5.2-3 patchset. - Crudely patch to build a shared lib (inspired by Debian), drop static one. - Split -devel subpackage. * Mon Jul 31 2006 Ville Skyttä - 1.4-7 - Ensure proper doc file permissions. * Mon Feb 13 2006 Ville Skyttä - 1.4-6 - Rebuild. * Fri Apr 7 2005 Michael Schwendt - 1.4-5 - rebuilt * Fri Dec 17 2004 Ville Skyttä - 0:1.4-4 - Let rpmbuild take care of stripping binaries. * Fri May 30 2003 Ville Skyttä - 0:1.4-0.fdr.3 - Add URL, other minor specfile tweaks (#63). * Sat May 3 2003 Ville Skyttä - 0:1.4-0.fdr.2 - Fix build on RH9 (#63). - Save .spec in UTF-8. - Provide -devel to ease possible future 'shared lib'ification. * Sat Mar 22 2003 Ville Skyttä - 0:1.4-0.fdr.1 - Update to current Fedora guidelines. * Fri Feb 7 2003 Ville Skyttä - 1.4-1.fedora.1 - First Fedora release.