michael@1: Name: faad2 michael@1: Summary: Library and frontend for decoding MPEG2/4 AAC michael@1: Vendor: Europalab Software michael@1: Packager: Michael Schloh von Bennewitz michael@1: Distribution: MeeGo Thirdparty michael@1: Version: 2.7 michael@1: Release: 20101201 michael@1: License: GPLv2+ michael@1: Group: Applications/Multimedia michael@1: URL: http://www.audiocoding.com/faad2.html michael@1: Source: http://downloads.sourceforge.net/sourceforge/faac/%{name}-%{version}.tar.bz2 michael@1: BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root michael@1: BuildRequires: gcc-c++ michael@1: BuildRequires: libid3tag-devel michael@0: BuildRequires: libsysfs-devel michael@1: BuildRequires: zlib-devel michael@0: michael@0: %description michael@1: FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder. michael@0: michael@0: %package libs michael@1: Summary: Shared libraries of the FAAD 2 AAC decoder michael@1: Vendor: Europalab Software michael@1: Packager: Michael Schloh von Bennewitz michael@1: Distribution: MeeGo Thirdparty michael@1: Group: System Environment/Libraries michael@0: michael@0: %description libs michael@1: FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder. michael@1: This package provides the libraries for %{name}. michael@0: michael@0: %package devel michael@1: Summary: Development libraries of the FAAD 2 AAC decoder michael@1: Vendor: Europalab Software michael@1: Packager: Michael Schloh von Bennewitz michael@1: Distribution: MeeGo Thirdparty michael@1: Group: Development/Libraries michael@1: Requires: %{name}-libs = %{version}-%{release} michael@0: michael@0: %description devel michael@1: FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder. michael@1: This package provides development files and documentation for %{name}. michael@0: michael@0: %prep michael@0: %setup -q michael@0: find . -name "*.c" -o -name "*.h" | xargs chmod 644 michael@1: mv \ michael@1: docs/Ahead\ AAC\ Decoder\ library\ documentation.pdf \ michael@1: docs/AACDecoderLibrary.pdf michael@0: michael@1: for f in AUTHORS COPYING ChangeLog NEWS README* TODO; do michael@0: tr -d '\r' <$f >$f.n && touch -r $f $f.n && mv -f $f.n $f michael@0: done michael@0: michael@0: %build michael@1: %configure michael@0: michael@0: # remove rpath from libtool michael@0: sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool michael@0: sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool michael@0: michael@0: %{__make} %{?_smp_mflags} michael@0: michael@0: %install michael@0: %{__rm} -rf %{buildroot} michael@0: %{__make} install DESTDIR=%{buildroot} michael@0: install -dm755 %{buildroot}%{_mandir}/man1 michael@0: %{__mv} %{buildroot}%{_mandir}/{manm/faad.man,man1/faad.1} michael@0: michael@0: %clean michael@0: %{__rm} -rf %{buildroot} michael@0: michael@0: %post libs -p /sbin/ldconfig michael@0: michael@0: %postun libs -p /sbin/ldconfig michael@0: michael@0: %files michael@0: %defattr(-, root, root, -) michael@0: %doc AUTHORS COPYING ChangeLog NEWS README* michael@0: %{_bindir}/faad michael@0: %{_mandir}/man1/faad.1* michael@0: michael@0: %files libs michael@0: %defattr(-,root,root,-) michael@0: %{_libdir}/libfaad.so.* michael@0: michael@0: %files devel michael@0: %defattr(-, root, root, -) michael@1: %doc TODO docs/AACDecoderLibrary.pdf michael@0: %{_includedir}/faad.h michael@0: %{_includedir}/neaacdec.h michael@1: %{_includedir}/mp4ff.h michael@1: %{_includedir}/mp4ffint.h michael@1: %{_libdir}/libfaad.a michael@1: %{_libdir}/libfaad.la michael@0: %{_libdir}/libfaad.so michael@1: %{_libdir}/libmp4ff.a michael@0: michael@0: %changelog michael@1: * Wed Dec 1 2010 Michael Schloh von Bennewitz - 2.7-20101201 michael@1: - Adjust packaging and patch logic michael@1: michael@0: * Mon Nov 1 2010 Kozinov Ivan 1:2.7-1 michael@1: - Package for MeeGo 1.1