Fri, 11 Mar 2011 21:30:26 +0100
Import package vendor original specs for necessary manipulations.
michael@0 | 1 | Summary: Library and frontend for decoding MPEG2/4 AAC |
michael@0 | 2 | Name: faad2 |
michael@0 | 3 | Epoch: 1 |
michael@0 | 4 | Version: 2.7 |
michael@0 | 5 | Release: 1%{?dist} |
michael@0 | 6 | License: GPLv2+ |
michael@0 | 7 | Group: Applications/Multimedia |
michael@0 | 8 | URL: http://www.audiocoding.com/faad2.html |
michael@0 | 9 | Source: http://downloads.sourceforge.net/sourceforge/faac/%{name}-%{version}.tar.bz2 |
michael@0 | 10 | # fix non-PIC objects in libmp4ff.a |
michael@0 | 11 | Patch0: %{name}-pic.patch |
michael@0 | 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
michael@0 | 13 | BuildRequires: gcc-c++ |
michael@0 | 14 | BuildRequires: id3lib-devel |
michael@0 | 15 | BuildRequires: libsysfs-devel |
michael@0 | 16 | BuildRequires: zlib-devel |
michael@0 | 17 | |
michael@0 | 18 | %description |
michael@0 | 19 | FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely |
michael@0 | 20 | written from scratch. |
michael@0 | 21 | |
michael@0 | 22 | %package libs |
michael@0 | 23 | Summary: Shared libraries of the FAAD 2 AAC decoder |
michael@0 | 24 | Group: System Environment/Libraries |
michael@0 | 25 | Obsoletes: %{name} < 1:2.6.1-3 |
michael@0 | 26 | |
michael@0 | 27 | %description libs |
michael@0 | 28 | FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely |
michael@0 | 29 | written from scratch. |
michael@0 | 30 | |
michael@0 | 31 | This package contains libfaad. |
michael@0 | 32 | |
michael@0 | 33 | %package devel |
michael@0 | 34 | Summary: Development libraries of the FAAD 2 AAC decoder |
michael@0 | 35 | Group: Development/Libraries |
michael@0 | 36 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
michael@0 | 37 | |
michael@0 | 38 | %description devel |
michael@0 | 39 | FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely |
michael@0 | 40 | written from scratch. |
michael@0 | 41 | |
michael@0 | 42 | This package contains development files and documentation for libfaad. |
michael@0 | 43 | |
michael@0 | 44 | %prep |
michael@0 | 45 | %setup -q |
michael@0 | 46 | %patch0 -p1 -b .pic |
michael@0 | 47 | find . -name "*.c" -o -name "*.h" | xargs chmod 644 |
michael@0 | 48 | |
michael@0 | 49 | for f in AUTHORS COPYING ChangeLog NEWS README* TODO ; do |
michael@0 | 50 | tr -d '\r' <$f >$f.n && touch -r $f $f.n && mv -f $f.n $f |
michael@0 | 51 | done |
michael@0 | 52 | |
michael@0 | 53 | %build |
michael@0 | 54 | %configure --disable-static |
michael@0 | 55 | |
michael@0 | 56 | # remove rpath from libtool |
michael@0 | 57 | sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
michael@0 | 58 | sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool |
michael@0 | 59 | |
michael@0 | 60 | %{__make} %{?_smp_mflags} |
michael@0 | 61 | |
michael@0 | 62 | %install |
michael@0 | 63 | %{__rm} -rf %{buildroot} |
michael@0 | 64 | %{__make} install DESTDIR=%{buildroot} |
michael@0 | 65 | %{__rm} %{buildroot}%{_libdir}/libfaad.la |
michael@0 | 66 | %{__rm} %{buildroot}%{_includedir}/mp4ff{,int}.h |
michael@0 | 67 | %{__rm} %{buildroot}%{_libdir}/libmp4ff.a |
michael@0 | 68 | install -dm755 %{buildroot}%{_mandir}/man1 |
michael@0 | 69 | %{__mv} %{buildroot}%{_mandir}/{manm/faad.man,man1/faad.1} |
michael@0 | 70 | |
michael@0 | 71 | %clean |
michael@0 | 72 | %{__rm} -rf %{buildroot} |
michael@0 | 73 | |
michael@0 | 74 | %post libs -p /sbin/ldconfig |
michael@0 | 75 | |
michael@0 | 76 | %postun libs -p /sbin/ldconfig |
michael@0 | 77 | |
michael@0 | 78 | %files |
michael@0 | 79 | %defattr(-, root, root, -) |
michael@0 | 80 | %doc AUTHORS COPYING ChangeLog NEWS README* |
michael@0 | 81 | %{_bindir}/faad |
michael@0 | 82 | %{_mandir}/man1/faad.1* |
michael@0 | 83 | |
michael@0 | 84 | %files libs |
michael@0 | 85 | %defattr(-,root,root,-) |
michael@0 | 86 | %{_libdir}/libfaad.so.* |
michael@0 | 87 | |
michael@0 | 88 | %files devel |
michael@0 | 89 | %defattr(-, root, root, -) |
michael@0 | 90 | %doc TODO docs/Ahead\ AAC\ Decoder\ library\ documentation.pdf |
michael@0 | 91 | %{_includedir}/faad.h |
michael@0 | 92 | %{_includedir}/neaacdec.h |
michael@0 | 93 | %{_libdir}/libfaad.so |
michael@0 | 94 | |
michael@0 | 95 | %changelog |
michael@0 | 96 | * Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> 1:2.7-1 |
michael@0 | 97 | - Build for MeeGo 1.1 |