michael@0: Summary: Library and frontend for decoding MPEG2/4 AAC michael@0: Name: faad2 michael@0: Epoch: 1 michael@0: Version: 2.7 michael@0: Release: 1%{?dist} michael@0: License: GPLv2+ michael@0: Group: Applications/Multimedia michael@0: URL: http://www.audiocoding.com/faad2.html michael@0: Source: http://downloads.sourceforge.net/sourceforge/faac/%{name}-%{version}.tar.bz2 michael@0: # fix non-PIC objects in libmp4ff.a michael@0: Patch0: %{name}-pic.patch michael@0: BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root michael@0: BuildRequires: gcc-c++ michael@0: BuildRequires: id3lib-devel michael@0: BuildRequires: libsysfs-devel michael@0: BuildRequires: zlib-devel michael@0: michael@0: %description michael@0: FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely michael@0: written from scratch. michael@0: michael@0: %package libs michael@0: Summary: Shared libraries of the FAAD 2 AAC decoder michael@0: Group: System Environment/Libraries michael@0: Obsoletes: %{name} < 1:2.6.1-3 michael@0: michael@0: %description libs michael@0: FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely michael@0: written from scratch. michael@0: michael@0: This package contains libfaad. michael@0: michael@0: %package devel michael@0: Summary: Development libraries of the FAAD 2 AAC decoder michael@0: Group: Development/Libraries michael@0: Requires: %{name}-libs = %{epoch}:%{version}-%{release} michael@0: michael@0: %description devel michael@0: FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely michael@0: written from scratch. michael@0: michael@0: This package contains development files and documentation for libfaad. michael@0: michael@0: %prep michael@0: %setup -q michael@0: %patch0 -p1 -b .pic michael@0: find . -name "*.c" -o -name "*.h" | xargs chmod 644 michael@0: michael@0: 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@0: %configure --disable-static 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: %{__rm} %{buildroot}%{_libdir}/libfaad.la michael@0: %{__rm} %{buildroot}%{_includedir}/mp4ff{,int}.h michael@0: %{__rm} %{buildroot}%{_libdir}/libmp4ff.a 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@0: %doc TODO docs/Ahead\ AAC\ Decoder\ library\ documentation.pdf michael@0: %{_includedir}/faad.h michael@0: %{_includedir}/neaacdec.h michael@0: %{_libdir}/libfaad.so michael@0: michael@0: %changelog michael@0: * Mon Nov 1 2010 Kozinov Ivan 1:2.7-1 michael@0: - Build for MeeGo 1.1