File compface.spec of Package compface

#
# spec file for package compface
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:           compface
Summary:        48x48x1 Image Compression and Decompression
Version:        1.5.2
Release:        0
Group:          Productivity/Graphics/Convertors
License:        MIT
Source:         http://ftp.xemacs.org/pub/xemacs/aux/compface-%{version}.tar.gz
Source1:        xbm2face
Patch:          compface-%{version}.diff
BuildRequires:  automake
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 %{?jobs:-j%jobs}

%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
openSUSE Build Service is sponsored by