Sophie

Sophie

distrib > Mageia > 2 > i586 > by-pkgid > e2b6ed7b33641bc697f6d26fdf2f64fd > files > 3

compface-1.5.2-7.mga1.src.rpm

%define major 1
%define libname %mklibname %{name} %{major}
%define develname %mklibname %{name} -d

Summary:	Image from/to X-Face conversion utilities
Name:		compface
Version:	1.5.2
Release:	%mkrel 7
License:	MIT
Group:		Graphics
Source0:	http://freshmeat.net/redir/compface/1439/url_tgz/%{name}-%{version}.tar.bz2
# originally from http://ftp.debian.org/debian/pool/main/libc/libcompface/libcompface_1.5.2-5.diff.gz
Patch0:         libcompface_1.5.2-5.diff
Patch2:         compface-1.5.2-build.patch

%description
Compface provides utilities to convert from/to X-Face format, a 48x48 bitmap
format used to carry thumbnails of email authors in a mail header.

%package -n	%{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n	%{libname}
Compface provides utilities to convert from/to X-Face format, a 48x48 bitmap
format used to carry thumbnails of email authors in a mail header.

%package -n	%{develname}
Summary:	Development package for %{name}
Group:		Development/C++
Requires:	%{libname} >= %{version}
Obsoletes:	%{name}-devel < 1.5.2-3
Provides:	%{name}-devel = %{version}-%{release}

%description -n	%{develname}
Compface provides utilities to convert from/to X-Face format, a 48x48 bitmap
format used to carry thumbnails of email authors in a mail header.

This package provides the development files for %{name}.

%prep

%setup -q
%patch0 -p1
%patch2 -p0

%build
export CFLAGS="%{optflags} -fPIC"

%configure2_5x
%make

%install
rm -rf %{buildroot}

%makeinstall_std STRIP=/bin/true

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc README ChangeLog
%attr(0755,root,root) %{_bindir}/*
%{_mandir}/man1/compface.1*
%{_mandir}/man1/uncompface.1*

%files -n %{libname}
%defattr(-,root,root,-)
%{_libdir}/lib*.so.%{major}*

%files -n %{develname}
%defattr(-,root,root,-)
%{_libdir}/lib*.so
%{_includedir}/compface.h
%{_mandir}/man3/compface.3*
%{_mandir}/man3/uncompface.3*


%changelog
* Fri Feb 25 2011 ahmad <ahmad> 1.5.2-7.mga1
+ Revision: 59215
- drop old/unneded scriptlest
- imported package compface


* Thu Dec 09 2010 Oden Eriksson <oeriksson@mandriva.com> 1.5.2-6mdv2011.0
+ Revision: 617408
- the mass rebuild of 2010.0 packages

* Wed Jul 01 2009 Oden Eriksson <oeriksson@mandriva.com> 1.5.2-5mdv2010.0
+ Revision: 391250
- new debian patch

* Mon Jun 29 2009 Oden Eriksson <oeriksson@mandriva.com> 1.5.2-4mdv2010.0
+ Revision: 390680
- sync with fedora, adapt for Mandriva

* Wed Jul 23 2008 Thierry Vignaud <tv@mandriva.org> 1.5.2-3mdv2009.0
+ Revision: 243619
- rebuild
- kill re-definition of %%buildroot on Pixel's request

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

* Fri Oct 19 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 1.5.2-1mdv2008.1
+ Revision: 100357
- import compface