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