]>
Commit | Line | Data |
---|---|---|
f4330271 JB |
1 | # |
2 | # Conditional build: | |
68e9ffd2 | 3 | %bcond_with bootstrap # bootstrap (alias for _without_mpeg4ip) |
7c7f8a92 | 4 | %bcond_without mpeg4ip # don't build MPEG4IP plugin |
68e9ffd2 | 5 | %bcond_without static_libs # don't build static libraries |
327697e7 | 6 | %bcond_without xmms # don't build XMMS plugin |
f4330271 | 7 | # |
327697e7 | 8 | %{?with_bootstrap:%undefine with_mpeg4ip} |
9c3cb898 | 9 | Summary: Freeware Advanced Audio Decoder 2 |
059244cb | 10 | Summary(pl.UTF-8): Darmowy zaawansowany dekoder audio |
9c3cb898 | 11 | Name: faad2 |
e4d59ed1 JB |
12 | Version: 2.6.1 |
13 | Release: 1 | |
9c3cb898 | 14 | License: GPL |
327697e7 | 15 | Group: Applications/Sound |
52db292f | 16 | Source0: http://dl.sourceforge.net/faac/%{name}-%{version}.tar.gz |
e4d59ed1 | 17 | # Source0-md5: 74e92df40c270f216a8305fc87603c8a |
52db292f | 18 | Patch0: %{name}-make.patch |
e4d59ed1 JB |
19 | Patch1: %{name}-mpeg4ip.patch |
20 | Patch2: %{name}-soname.patch | |
21 | Patch3: %{name}-backward_compat.patch | |
9c3cb898 | 22 | URL: http://www.audiocoding.com/ |
c03578bb | 23 | %{?with_mpeg4ip:BuildRequires: SDL-devel} |
9c3cb898 | 24 | BuildRequires: autoconf |
25 | BuildRequires: automake | |
52db292f | 26 | %{?with_xmms:BuildRequires: id3lib-devel >= 3.8.2} |
52db292f | 27 | BuildRequires: libtool >= 2:1.4d-3 |
b78b7321 | 28 | %{?with_mpeg4ip:BuildRequires: mpeg4ip-devel >= 1:1.5} |
8fb3d2a2 | 29 | %{?with_xmms:BuildRequires: rpmbuild(macros) >= 1.125} |
1ee9cb0a | 30 | %{?with_xmms:BuildRequires: xmms-devel} |
327697e7 | 31 | Requires: %{name}-libs = %{version}-%{release} |
9c3cb898 | 32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
9c3cb898 | 34 | %description |
35 | FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, | |
36 | completely written from scratch. | |
37 | ||
0e2dcaed JR |
38 | %description -l pl.UTF-8 |
39 | FAAD 2 to napisany całkowicie od początku dekoder MPEG2 i MPEG-4 | |
40 | obsługujący profile LC, MAIN i LTP. | |
f4330271 | 41 | |
327697e7 JB |
42 | %package libs |
43 | Summary: FAAD 2 libraries | |
059244cb | 44 | Summary(pl.UTF-8): Biblioteki FAAD 2 |
327697e7 JB |
45 | Group: Libraries |
46 | Conflicts: faad2 < 2.0-3 | |
47 | ||
48 | %description libs | |
49 | FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, | |
50 | completely written from scratch. This package contains base FAAD 2 | |
51 | libraries: libfaad and libmp4ff. | |
52 | ||
0e2dcaed JR |
53 | %description libs -l pl.UTF-8 |
54 | FAAD 2 to napisany całkowicie od początku dekoder MPEG2 i MPEG-4 | |
55 | obsługujący profile LC, MAIN i LTP. Ten pakiet zawiera podstawowe | |
327697e7 JB |
56 | biblioteki FAAD 2: libfaad i libmp4ff. |
57 | ||
9c3cb898 | 58 | %package devel |
327697e7 | 59 | Summary: Header files for faad2 |
059244cb | 60 | Summary(pl.UTF-8): Pliki nagłówkowe faad2 |
9c3cb898 | 61 | Group: Development/Libraries |
327697e7 | 62 | Requires: %{name}-libs = %{version}-%{release} |
9c3cb898 | 63 | |
64 | %description devel | |
327697e7 | 65 | Header files for faad2. |
9c3cb898 | 66 | |
0e2dcaed JR |
67 | %description devel -l pl.UTF-8 |
68 | Pliki nagłówkowe faad2. | |
f4330271 | 69 | |
9c3cb898 | 70 | %package static |
71 | Summary: Static faad2 library | |
059244cb | 72 | Summary(pl.UTF-8): Statyczna biblioteka faad2 |
9c3cb898 | 73 | Group: Development/Libraries |
327697e7 | 74 | Requires: %{name}-devel = %{version}-%{release} |
9c3cb898 | 75 | |
76 | %description static | |
77 | Static faad2 library. | |
78 | ||
0e2dcaed | 79 | %description static -l pl.UTF-8 |
f4330271 JB |
80 | Statyczna biblioteka faad2. |
81 | ||
327697e7 JB |
82 | %package -n mpeg4ip-plugin-faad2 |
83 | Summary: MPEG4IP plugin for AAC files | |
059244cb | 84 | Summary(pl.UTF-8): Wtyczka MPEG4IP do plików AAC |
327697e7 JB |
85 | Group: Applications/Sound |
86 | Requires: %{name}-libs = %{version}-%{release} | |
87 | Requires: mpeg4ip | |
88 | ||
89 | %description -n mpeg4ip-plugin-faad2 | |
90 | MPEG4IP plugin for AAC files. | |
91 | ||
0e2dcaed JR |
92 | %description -n mpeg4ip-plugin-faad2 -l pl.UTF-8 |
93 | Wtyczka MPEG4IP do plików AAC. | |
327697e7 | 94 | |
f4330271 JB |
95 | %package -n xmms-input-faad2 |
96 | Summary: XMMS plugin for AAC files | |
059244cb | 97 | Summary(pl.UTF-8): Wtyczka XMMS do plików AAC |
f4330271 | 98 | Group: X11/Applications/Sound |
327697e7 | 99 | Requires: %{name}-libs = %{version}-%{release} |
c7dec483 | 100 | Requires: xmms |
f4330271 JB |
101 | |
102 | %description -n xmms-input-faad2 | |
103 | XMMS plugin for AAC files. | |
104 | ||
0e2dcaed JR |
105 | %description -n xmms-input-faad2 -l pl.UTF-8 |
106 | Wtyczka XMMS do plików AAC. | |
f4330271 | 107 | |
9c3cb898 | 108 | %prep |
109 | %setup -q -n %{name} | |
52db292f | 110 | %patch0 -p1 |
281edd3d | 111 | %patch1 -p1 |
93fb0621 | 112 | %patch2 -p1 |
269b5740 | 113 | %patch3 -p1 |
9c3cb898 | 114 | |
115 | %build | |
52db292f JB |
116 | %{__libtoolize} |
117 | %{__aclocal} | |
118 | %{__autoconf} | |
119 | %{__autoheader} | |
120 | %{__automake} | |
70f03c9e | 121 | %configure \ |
f2f0c896 | 122 | --with%{!?with_xmms:out}-xmms \ |
68e9ffd2 KK |
123 | --with%{!?with_mpeg4ip:out}-mpeg4ip \ |
124 | %{!?with_static_libs:--disable-static} | |
70f03c9e | 125 | |
9c3cb898 | 126 | %{__make} |
127 | ||
128 | %install | |
129 | rm -rf $RPM_BUILD_ROOT | |
f4330271 JB |
130 | |
131 | %{__make} install \ | |
132 | DESTDIR=$RPM_BUILD_ROOT | |
133 | ||
52db292f | 134 | rm -f $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.{la,a} |
281edd3d | 135 | rm -f $RPM_BUILD_ROOT%{_libdir}/mp4player_plugin/*.{la,a} |
9c3cb898 | 136 | |
137 | %clean | |
138 | rm -rf $RPM_BUILD_ROOT | |
139 | ||
327697e7 JB |
140 | %post libs -p /sbin/ldconfig |
141 | %postun libs -p /sbin/ldconfig | |
9c3cb898 | 142 | |
143 | %files | |
144 | %defattr(644,root,root,755) | |
327697e7 JB |
145 | %attr(755,root,root) %{_bindir}/faad |
146 | ||
147 | %files libs | |
148 | %defattr(644,root,root,755) | |
9c3cb898 | 149 | %doc AUTHORS ChangeLog NEWS README TODO |
e4d59ed1 JB |
150 | %attr(755,root,root) %{_libdir}/libfaad.so.*.*.* |
151 | %attr(755,root,root) %ghost %{_libdir}/libfaad.so.0 | |
9c3cb898 | 152 | |
153 | %files devel | |
154 | %defattr(644,root,root,755) | |
327697e7 | 155 | %attr(755,root,root) %{_libdir}/libfaad.so |
327697e7 | 156 | %{_libdir}/libfaad.la |
327697e7 | 157 | %{_includedir}/faad.h |
7c7f8a92 | 158 | %{_includedir}/neaacdec.h |
9c3cb898 | 159 | |
68e9ffd2 | 160 | %if %{with static_libs} |
9c3cb898 | 161 | %files static |
162 | %defattr(644,root,root,755) | |
327697e7 | 163 | %{_libdir}/libfaad.a |
68e9ffd2 | 164 | %endif |
f4330271 | 165 | |
db60caea | 166 | %if %{with xmms} |
f4330271 JB |
167 | %files -n xmms-input-faad2 |
168 | %defattr(644,root,root,755) | |
e4d59ed1 | 169 | %attr(755,root,root) %{xmms_input_plugindir}/libmp4.so |
f4330271 | 170 | %endif |
327697e7 JB |
171 | |
172 | %if %{with mpeg4ip} | |
173 | %files -n mpeg4ip-plugin-faad2 | |
174 | %defattr(644,root,root,755) | |
e4d59ed1 | 175 | %attr(755,root,root) %{_libdir}/mp4player_plugin/faad2_plugin.so* |
327697e7 | 176 | %endif |