1 Name: faac |
1 Name: faac |
|
2 Summary: Encoder and encoding library for MPEG2/4 AAC |
|
3 Vendor: Europalab Software |
|
4 Packager: Michael Schloh von Bennewitz |
|
5 Distribution: MeeGo Thirdparty |
2 Version: 1.28 |
6 Version: 1.28 |
3 Release: 1%{?dist} |
7 Release: 20101201 |
4 Summary: Encoder and encoding library for MPEG2/4 AAC |
|
5 |
|
6 Group: Applications/Multimedia |
8 Group: Applications/Multimedia |
7 License: LGPLv2+ |
9 License: LGPLv2+ |
8 URL: http://www.audiocoding.com/ |
10 URL: http://www.audiocoding.com/faac.html |
9 Source0: http://downloads.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2 |
11 Source0: http://downloads.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2 |
10 Patch0: %{name}-libmp4v2.patch |
12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
11 |
|
12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
|
13 |
|
14 BuildRequires: libmp4v2-devel |
13 BuildRequires: libmp4v2-devel |
15 |
|
16 |
14 |
17 %description |
15 %description |
18 FAAC is an AAC audio encoder. It currently supports MPEG-4 LTP, MAIN and LOW |
16 FAAC is an AAC audio encoder. It currently supports MPEG-4 LTP, MAIN and LOW |
19 COMPLEXITY object types and MAIN and LOW MPEG-2 object types. It also supports |
17 COMPLEXITY object types and MAIN and LOW MPEG-2 object types. It also supports |
20 multichannel and gapless encoding. |
18 multichannel and gapless encoding. |
21 |
19 |
22 %package devel |
20 %package devel |
23 Summary: Development libraries of the FAAC AAC encoder |
21 Summary: Development libraries of the FAAC AAC encoder |
|
22 Vendor: Europalab Software |
|
23 Packager: Michael Schloh von Bennewitz |
|
24 Distribution: MeeGo Thirdparty |
24 Group: Development/Libraries |
25 Group: Development/Libraries |
25 Requires: %{name} = %{version}-%{release} |
26 Requires: %{name} = %{version}-%{release} |
26 |
27 |
27 %description devel |
28 %description devel |
28 FAAC is an AAC audio encoder. It currently supports MPEG-4 LTP, MAIN and LOW |
29 FAAC is an AAC audio encoder. It currently supports MPEG-4 LTP, MAIN and LOW |
31 |
32 |
32 This package contains development files and documentation for libfaac. |
33 This package contains development files and documentation for libfaac. |
33 |
34 |
34 %prep |
35 %prep |
35 %setup -q |
36 %setup -q |
36 %patch0 -p1 -b .mp4v2 |
37 touch configure.in |
37 touch -r configure.in.mp4v2 configure.in |
|
38 #fix permissions |
|
39 find . -type f \( -name \*.h -or -name \*.c \) -exec chmod 644 {} \; |
38 find . -type f \( -name \*.h -or -name \*.c \) -exec chmod 644 {} \; |
40 chmod 644 AUTHORS COPYING ChangeLog NEWS README TODO docs/* |
39 chmod 644 AUTHORS COPYING ChangeLog NEWS README TODO docs/* |
41 |
40 |
42 #fix encoding |
41 %build |
43 /usr/bin/iconv -f iso8859-1 -t utf-8 AUTHORS > AUTHORS.conv && touch -r AUTHORS AUTHORS.conv && /bin/mv -f AUTHORS.conv AUTHORS |
42 %configure |
44 |
43 |
45 %build |
|
46 %configure --disable-static |
|
47 # remove rpath from libtool |
44 # remove rpath from libtool |
48 sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
45 sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
49 sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool |
46 sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool |
50 make %{?_smp_mflags} |
47 make %{?_smp_mflags} |
51 |
48 |
52 |
|
53 %install |
49 %install |
54 rm -rf $RPM_BUILD_ROOT |
50 rm -rf $RPM_BUILD_ROOT |
55 make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" |
51 make install DESTDIR=$RPM_BUILD_ROOT |
56 |
|
57 |
52 |
58 %clean |
53 %clean |
59 rm -rf $RPM_BUILD_ROOT |
54 rm -rf $RPM_BUILD_ROOT |
60 |
|
61 |
55 |
62 %post -p /sbin/ldconfig |
56 %post -p /sbin/ldconfig |
63 |
57 |
64 %postun -p /sbin/ldconfig |
58 %postun -p /sbin/ldconfig |
65 |
59 |
66 |
60 %files |
67 %files |
|
68 %defattr(-,root,root,-) |
61 %defattr(-,root,root,-) |
69 %doc AUTHORS COPYING ChangeLog NEWS README TODO docs/* |
62 %doc AUTHORS COPYING ChangeLog NEWS README TODO docs/* |
70 %{_bindir}/* |
63 %{_bindir}/* |
71 %{_libdir}/*.so.* |
64 %{_libdir}/*.so.* |
72 %{_mandir}/man1/%{name}* |
65 %{_mandir}/man1/%{name}* |
73 |
66 |
74 %files devel |
67 %files devel |
75 %defattr(-,root,root,-) |
68 %defattr(-,root,root,-) |
76 %exclude %{_libdir}/*.la |
69 %{_libdir}/*.a |
|
70 %{_libdir}/*.la |
77 %{_libdir}/*.so |
71 %{_libdir}/*.so |
78 %{_includedir}/*.h |
72 %{_includedir}/*.h |
79 |
73 |
80 %changelog |
74 %changelog |
|
75 * Wed Dec 1 2010 Michael Schloh von Bennewitz <michael@schloh.com> - 1.28-20101201 |
|
76 - Adjust packaging and patch logic |
|
77 |
81 * Fri Oct 29 2010 Kozinov Ivan - 1.25-1 |
78 * Fri Oct 29 2010 Kozinov Ivan - 1.25-1 |
82 - Build for 1.1 |
79 - Package for MeeGo 1.1 |