File libfame.spec of Package libfame
# Packmangroup: Multimedia
# Packmanpackagename: libfame
# Packman: Manfred Tremmel
# Packmanpackagedesc: <p>Fast Assembly Mpeg Encoding library</p>
# Packmanpackagedesc_de: <p>Schnelle Assembler MPEG Encodingbibliothek</p>
Name: libfame
Summary: Fast Assembly Mpeg Encoding library
Summary(de): Schnelle Assembler MPEG Encodingbibliothek
Version: 0.9.1
Release: 0.pm.8
License: LGPL
Group: Development/Libraries
URL: http://fame.sourceforge.net
Source: libfame-%{version}.tar.gz
Patch0: libfame-0.9.1-gcc34-1.patch
Patch1: libfame-0.9.1-underquoted-definition.patch
Patch2: libfame-fix-implicit-decl.patch
Patch3: libfame-intptr.patch
BuildRoot: %{_tmppath}/libfame-%{version}-root
AutoReqProv: off
Provides: libfame-0.9.so.0
Provides: libfame-0.9.so.1
%ifarch x86_64 amd64 ia32e
Provides: libfame-0.9.so.0()(64bit)
Provides: libfame-0.9.so.1()(64bit)
%endif
%description
FAME is a library for fast MPEG encoding.
%description -l de
FAME ist eine Bibliothek für schnelles MPEG-Encoding.
%package devel
Summary: Libraries and include to develop using FAME
Summary(de): Bibliothek und Includes zum Entwicklen mit FAME
Group: Development/Libraries
Requires: %name = %version
%description devel
FAME is a library for fast MPEG encoding.
This is the libraries, include files and other resources you can use
to develop FAME applications.
%description devel -l de
FAME ist eine Bibliothek für schnelles MPEG-Encoding.
Dies ist die Bibliothek, Include-Dateien und andere Resourcen die zur
Entwicklung von Anwendungen, die FAME verwenden, benötigt werden.
%prep
%setup -q
%patch0 -p1
%patch1
%patch2
%patch3
%suse_update_config -f
%suse_update_libdir
%build
CFLAGS="$RPM_OPT_FLAGS"
%if %suse_version >= 910
%if %suse_version <= 1000
CFLAGS="$RPM_OPT_FLAGS -fno-unit-at-a-time"
%endif
%endif
export CFLAGS
#%ifarch x86_64 amd64 ia32e
#cp /usr/share/automake-`rpm -q --queryformat '%{VERSION}' automake | cut -b 1-3`/config.sub .
#%endif
# Needed for snapshot releases.
if [ ! -f configure ]; then
./autogen.sh --prefix=%_prefix --libdir=%_libdir --mandir=%_mandir --includedir=%_includedir
fi
%ifarch i686 x86_64 ia32e
%configure --enable-mmx
%else
%configure
%endif
%__make %{?jobs:-j%{jobs}}
%install
%makeinstall
cd $RPM_BUILD_ROOT/%_libdir
%{__ln_s} libfame-0.9.so.1.0.0 libfame-0.9.so.0
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%post
%run_ldconfig
%postun
%run_ldconfig
%files
%defattr(-, root, root)
%doc CHANGES COPYING README
%{_libdir}/lib*.so.*
%files devel
%defattr(-, root, root)
%doc CHANGES COPYING README
%{_bindir}/*-config
%{_libdir}/lib*.so
%{_libdir}/*a
%{_includedir}/fame*.h
%{_datadir}/aclocal/*
%{_mandir}/man3/*
%changelog
* Mon May 08 2006 Manfred.Tremmel <Manfred.Tremmel@iiv.de>
- added a m4 macro patch, sent by Andreas Hanke
* Mon Apr 10 2006 Manfred.Tremmel <Manfred.Tremmel@iiv.de>
- added gcc patch
* Tue Mar 28 2006 Manfred.Tremmel <Manfred.Tremmel@iiv.de>
- don't use -fno-unit-at-a-time for SUSE 10.1 thanks for the
hint to Philipp Thomas
* Sat Nov 27 2004 Detlef Reichelt <detlef@dreichtelt.de
- rebuild for x86_64
- get new config.sub from /usr/share/automake-1.9/config.sub
- add ./configure --libdir=/usr/lib64
- add Provides: libfame-0.9.so.1()(64bit)
* Thu Mar 27 2003 Manfred.Tremmel <Manfred.Tremmel@iiv.de>
- added packman headers
* Mon Oct 07 2002 Manfred Tremmel <Manfred.Tremmel@iiv.de>
- added german summary and description
* Mon Oct 07 2002 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
- changed manpages-directory and other path-corrections