File compface.spec of Package compface

#
# spec file for package compface (Version 1.5.2)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           compface
Summary:        48x48x1 Image Compression and Decompression
Version:        1.5.2
Release:        12
Group:          Productivity/Graphics/Convertors
License:        FSR, Other License(s), see package
Source:         http://ftp.xemacs.org/pub/xemacs/aux/compface-%{version}.tar.gz
Source1:        xbm2face
Patch:          compface-%{version}.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The programs compface and uncompface convert 48x48x1 images to and from
a compressed format.  The purpose of the programs is to allow the
inclusion of face images within mail headers using the field name
"X-face:".  They make use of a library that allows the compression and
decompression algorithms to be used in other programs, such as mail
dispatchers and mail notification daemons.



Authors:
--------
    James Ashton <jaa@cs.su.oz.au>

%prep
%setup
%patch

%build
autoreconf -fi
CFLAGS="$RPM_OPT_FLAGS -fPIC" INSTALL="install -D" \
./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir}
make

%install
make install prefix=$RPM_BUILD_ROOT%{_prefix} \
	     LIBDIR=$RPM_BUILD_ROOT%{_libdir} \
  	     MANDIR=$RPM_BUILD_ROOT%{_mandir}
sed -i 's/\r//' xbm2xface.pl
install -m 755 xbm2xface.pl $RPM_BUILD_ROOT%{_prefix}/bin/xbm2xface
install -m 755 $RPM_SOURCE_DIR/xbm2face $RPM_BUILD_ROOT%{_prefix}/bin

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc README
%{_prefix}/bin/*
%{_prefix}/include/*
%{_libdir}/lib*
%doc %{_mandir}/man?/*

%changelog -n compface
* Mon May 22 2006 - schwab@suse.de
- Don't strip binaries.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Oct 05 2005 - schwab@suse.de
- Update to compface 1.5.2.
* Mon Jan 10 2005 - schwab@suse.de
- Update to compface 1.5.
* Sat Sep 11 2004 - schwab@suse.de
- Update to compface 1.4.
* Mon May 12 2003 - schwab@suse.de
- Fix filelist.
* Wed Apr 02 2003 - schwab@suse.de
- Remove useless %%ifarch ix86.
* Wed Apr 02 2003 - sf@suse.de
-  add -fPIC for #ifnarch ix86
* Fri Nov 29 2002 - schwab@suse.de
- Fix use of errno.
* Thu Apr 18 2002 - schwab@suse.de
- Properly use %%{_libdir}.
* Tue Jan 29 2002 - schwab@suse.de
- Use %%{_libdir}.
* Mon Nov 26 2001 - mfabian@suse.de
- add two small utilities 'xbm2face' and 'xbm2xface.pl' to
  create an X-Face: header from an xbm file
- bzip2 sources
* Fri Sep 29 2000 - schwab@suse.de
- Initial version 1.3.