]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without mpeg4ip # without MPEG4 support in frontend (which requires mpeg4ip) | |
4 | %bcond_without static_libs # don't build static libraries | |
5 | # | |
6 | Summary: Freeware Advanced Audio Codec | |
7 | Summary(pl.UTF-8): Freeware Advanced Audio Codec - darmowy zaawansowany kodek dźwięku | |
8 | Name: faac | |
9 | Version: 1.28 | |
10 | Release: 1 | |
11 | License: LGPL v2.1+ | |
12 | Group: Applications/Sound | |
13 | Source0: http://dl.sourceforge.net/faac/%{name}-%{version}.tar.gz | |
14 | # Source0-md5: 80763728d392c7d789cde25614c878f6 | |
15 | Patch0: %{name}-link.patch | |
16 | URL: http://www.audiocoding.com/ | |
17 | BuildRequires: autoconf >= 2.50 | |
18 | BuildRequires: automake | |
19 | BuildRequires: dos2unix | |
20 | BuildRequires: libtool | |
21 | %{?with_mpeg4ip:BuildRequires: mpeg4ip-devel} | |
22 | Requires: %{name}-libs = %{version}-%{release} | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | FAAC is an ISO/MPEG 2/4 AAC encoder library developed for the Freeware | |
27 | Advanced Audio Coding project. | |
28 | ||
29 | %description -l pl.UTF-8 | |
30 | FAAC to biblioteka kodera ISO/MPEG 2/4 AAC stworzona dla projektu | |
31 | Freeware Advanced Audio Coding (darmowego zaawansowanego kodowania | |
32 | dźwięku). | |
33 | ||
34 | %package libs | |
35 | Summary: Freeware Advanced Audio Codec library | |
36 | Summary(pl.UTF-8): Freeware Advanced Audio Codec - biblioteka darmowego zaawansowanego kodeka dźwięku | |
37 | Group: Libraries | |
38 | ||
39 | %description libs | |
40 | FAAC is an ISO/MPEG 2/4 AAC encoder library developed for the Freeware | |
41 | Advanced Audio Coding project. | |
42 | ||
43 | %description libs -l pl.UTF-8 | |
44 | FAAC to biblioteka kodera ISO/MPEG 2/4 AAC stworzona dla projektu | |
45 | Freeware Advanced Audio Coding (darmowego zaawansowanego kodowania | |
46 | dźwięku). | |
47 | ||
48 | %package devel | |
49 | Summary: Header files for faac library | |
50 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki faac | |
51 | Group: Development/Libraries | |
52 | Requires: %{name}-libs = %{version}-%{release} | |
53 | ||
54 | %description devel | |
55 | Header files for faac library. | |
56 | ||
57 | %description devel -l pl.UTF-8 | |
58 | Pliki nagłówkowe biblioteki faac. | |
59 | ||
60 | %package static | |
61 | Summary: Static faac library | |
62 | Summary(pl.UTF-8): Statyczna biblioteka faac | |
63 | Group: Development/Libraries | |
64 | Requires: %{name}-devel = %{version}-%{release} | |
65 | ||
66 | %description static | |
67 | Static faac library. | |
68 | ||
69 | %description static -l pl.UTF-8 | |
70 | Statyczna biblioteka faac. | |
71 | ||
72 | %prep | |
73 | %setup -q | |
74 | %patch0 -p1 | |
75 | ||
76 | # aclocal can't stand it | |
77 | dos2unix configure.in | |
78 | ||
79 | %build | |
80 | %{__libtoolize} | |
81 | %{__aclocal} | |
82 | %{__autoconf} | |
83 | %{__autoheader} | |
84 | %{__automake} | |
85 | %configure \ | |
86 | %{!?with_mpeg4ip:--without-mp4v2} \ | |
87 | %{!?with_static_libs:--disable-static} | |
88 | %{__make} | |
89 | ||
90 | %install | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %{__make} install \ | |
94 | DESTDIR=$RPM_BUILD_ROOT | |
95 | ||
96 | %clean | |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
99 | %post libs -p /sbin/ldconfig | |
100 | %postun libs -p /sbin/ldconfig | |
101 | ||
102 | %files | |
103 | %defattr(644,root,root,755) | |
104 | %attr(755,root,root) %{_bindir}/* | |
105 | %{_mandir}/man1/* | |
106 | ||
107 | %files libs | |
108 | %defattr(644,root,root,755) | |
109 | %doc ChangeLog README TODO docs/faac.html | |
110 | %attr(755,root,root) %{_libdir}/libfaac.so.*.*.* | |
111 | %attr(755,root,root) %ghost %{_libdir}/libfaac.so.0 | |
112 | ||
113 | %files devel | |
114 | %defattr(644,root,root,755) | |
115 | %doc docs/libfaac.html | |
116 | %attr(755,root,root) %{_libdir}/libfaac.so | |
117 | %{_libdir}/libfaac.la | |
118 | %{_includedir}/faac*.h | |
119 | ||
120 | %if %{with static_libs} | |
121 | %files static | |
122 | %defattr(644,root,root,755) | |
123 | %{_libdir}/libfaac.a | |
124 | %endif |