Fri, 11 Mar 2011 21:41:16 +0100
Import unmodified vendor specs for introduction into repository.
1 Name: faad2
2 Summary: Library and frontend for decoding MPEG2/4 AAC
3 Vendor: Europalab Software
4 Packager: Michael Schloh von Bennewitz
5 Distribution: MeeGo Thirdparty
6 Version: 2.7
7 Release: 20101201
8 License: GPLv2+
9 Group: Applications/Multimedia
10 URL: http://www.audiocoding.com/faad2.html
11 Source: http://downloads.sourceforge.net/sourceforge/faac/%{name}-%{version}.tar.bz2
12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
13 BuildRequires: gcc-c++
14 BuildRequires: libid3tag-devel
15 BuildRequires: libsysfs-devel
16 BuildRequires: zlib-devel
18 %description
19 FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder.
21 %package libs
22 Summary: Shared libraries of the FAAD 2 AAC decoder
23 Vendor: Europalab Software
24 Packager: Michael Schloh von Bennewitz
25 Distribution: MeeGo Thirdparty
26 Group: System Environment/Libraries
28 %description libs
29 FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder.
30 This package provides the libraries for %{name}.
32 %package devel
33 Summary: Development libraries of the FAAD 2 AAC decoder
34 Vendor: Europalab Software
35 Packager: Michael Schloh von Bennewitz
36 Distribution: MeeGo Thirdparty
37 Group: Development/Libraries
38 Requires: %{name}-libs = %{version}-%{release}
40 %description devel
41 FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder.
42 This package provides development files and documentation for %{name}.
44 %prep
45 %setup -q
46 find . -name "*.c" -o -name "*.h" | xargs chmod 644
47 mv \
48 docs/Ahead\ AAC\ Decoder\ library\ documentation.pdf \
49 docs/AACDecoderLibrary.pdf
51 for f in AUTHORS COPYING ChangeLog NEWS README* TODO; do
52 tr -d '\r' <$f >$f.n && touch -r $f $f.n && mv -f $f.n $f
53 done
55 %build
56 %configure
58 # remove rpath from libtool
59 sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
60 sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
62 %{__make} %{?_smp_mflags}
64 %install
65 %{__rm} -rf %{buildroot}
66 %{__make} install DESTDIR=%{buildroot}
67 install -dm755 %{buildroot}%{_mandir}/man1
68 %{__mv} %{buildroot}%{_mandir}/{manm/faad.man,man1/faad.1}
70 %clean
71 %{__rm} -rf %{buildroot}
73 %post libs -p /sbin/ldconfig
75 %postun libs -p /sbin/ldconfig
77 %files
78 %defattr(-, root, root, -)
79 %doc AUTHORS COPYING ChangeLog NEWS README*
80 %{_bindir}/faad
81 %{_mandir}/man1/faad.1*
83 %files libs
84 %defattr(-,root,root,-)
85 %{_libdir}/libfaad.so.*
87 %files devel
88 %defattr(-, root, root, -)
89 %doc TODO docs/AACDecoderLibrary.pdf
90 %{_includedir}/faad.h
91 %{_includedir}/neaacdec.h
92 %{_includedir}/mp4ff.h
93 %{_includedir}/mp4ffint.h
94 %{_libdir}/libfaad.a
95 %{_libdir}/libfaad.la
96 %{_libdir}/libfaad.so
97 %{_libdir}/libmp4ff.a
99 %changelog
100 * Wed Dec 1 2010 Michael Schloh von Bennewitz <michael@schloh.com> - 2.7-20101201
101 - Adjust packaging and patch logic
103 * Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> 1:2.7-1
104 - Package for MeeGo 1.1