1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/faad2/faad2.spec Fri Mar 11 21:30:26 2011 +0100 1.3 @@ -0,0 +1,97 @@ 1.4 +Summary: Library and frontend for decoding MPEG2/4 AAC 1.5 +Name: faad2 1.6 +Epoch: 1 1.7 +Version: 2.7 1.8 +Release: 1%{?dist} 1.9 +License: GPLv2+ 1.10 +Group: Applications/Multimedia 1.11 +URL: http://www.audiocoding.com/faad2.html 1.12 +Source: http://downloads.sourceforge.net/sourceforge/faac/%{name}-%{version}.tar.bz2 1.13 +# fix non-PIC objects in libmp4ff.a 1.14 +Patch0: %{name}-pic.patch 1.15 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root 1.16 +BuildRequires: gcc-c++ 1.17 +BuildRequires: id3lib-devel 1.18 +BuildRequires: libsysfs-devel 1.19 +BuildRequires: zlib-devel 1.20 + 1.21 +%description 1.22 +FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely 1.23 +written from scratch. 1.24 + 1.25 +%package libs 1.26 +Summary: Shared libraries of the FAAD 2 AAC decoder 1.27 +Group: System Environment/Libraries 1.28 +Obsoletes: %{name} < 1:2.6.1-3 1.29 + 1.30 +%description libs 1.31 +FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely 1.32 +written from scratch. 1.33 + 1.34 +This package contains libfaad. 1.35 + 1.36 +%package devel 1.37 +Summary: Development libraries of the FAAD 2 AAC decoder 1.38 +Group: Development/Libraries 1.39 +Requires: %{name}-libs = %{epoch}:%{version}-%{release} 1.40 + 1.41 +%description devel 1.42 +FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely 1.43 +written from scratch. 1.44 + 1.45 +This package contains development files and documentation for libfaad. 1.46 + 1.47 +%prep 1.48 +%setup -q 1.49 +%patch0 -p1 -b .pic 1.50 +find . -name "*.c" -o -name "*.h" | xargs chmod 644 1.51 + 1.52 +for f in AUTHORS COPYING ChangeLog NEWS README* TODO ; do 1.53 + tr -d '\r' <$f >$f.n && touch -r $f $f.n && mv -f $f.n $f 1.54 +done 1.55 + 1.56 +%build 1.57 +%configure --disable-static 1.58 + 1.59 +# remove rpath from libtool 1.60 +sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool 1.61 +sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool 1.62 + 1.63 +%{__make} %{?_smp_mflags} 1.64 + 1.65 +%install 1.66 +%{__rm} -rf %{buildroot} 1.67 +%{__make} install DESTDIR=%{buildroot} 1.68 +%{__rm} %{buildroot}%{_libdir}/libfaad.la 1.69 +%{__rm} %{buildroot}%{_includedir}/mp4ff{,int}.h 1.70 +%{__rm} %{buildroot}%{_libdir}/libmp4ff.a 1.71 +install -dm755 %{buildroot}%{_mandir}/man1 1.72 +%{__mv} %{buildroot}%{_mandir}/{manm/faad.man,man1/faad.1} 1.73 + 1.74 +%clean 1.75 +%{__rm} -rf %{buildroot} 1.76 + 1.77 +%post libs -p /sbin/ldconfig 1.78 + 1.79 +%postun libs -p /sbin/ldconfig 1.80 + 1.81 +%files 1.82 +%defattr(-, root, root, -) 1.83 +%doc AUTHORS COPYING ChangeLog NEWS README* 1.84 +%{_bindir}/faad 1.85 +%{_mandir}/man1/faad.1* 1.86 + 1.87 +%files libs 1.88 +%defattr(-,root,root,-) 1.89 +%{_libdir}/libfaad.so.* 1.90 + 1.91 +%files devel 1.92 +%defattr(-, root, root, -) 1.93 +%doc TODO docs/Ahead\ AAC\ Decoder\ library\ documentation.pdf 1.94 +%{_includedir}/faad.h 1.95 +%{_includedir}/neaacdec.h 1.96 +%{_libdir}/libfaad.so 1.97 + 1.98 +%changelog 1.99 +* Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> 1:2.7-1 1.100 +- Build for MeeGo 1.1