]>
Commit | Line | Data |
---|---|---|
cb16a205 JB |
1 | # |
2 | # Conditional build: | |
8ed9d0b9 JB |
3 | %bcond_without cdio # cdio plugin |
4 | %bcond_without sid # sid plugin | |
5 | %bcond_without amr # AMR-NB/AMR-WB plugins | |
05fdebbc | 6 | |
cb16a205 | 7 | %define gstname gst-plugins-ugly |
e628cfcc | 8 | %define gst_major_ver 1.0 |
689a6915 JB |
9 | %define gst_req_ver 1.6.2 |
10 | %define gstpb_req_ver 1.6.2 | |
05fdebbc | 11 | |
3c0adfd9 | 12 | %include /usr/lib/rpm/macros.gstreamer |
cb16a205 | 13 | Summary: Ugly GStreamer Streaming-media framework plugins |
50ae5262 | 14 | Summary(pl.UTF-8): Brzydkie wtyczki do środowiska obróbki strumieni GStreamer |
cb16a205 | 15 | Name: gstreamer-plugins-ugly |
689a6915 | 16 | Version: 1.6.2 |
9325c4e9 | 17 | Release: 1 |
39eb51c4 | 18 | License: LGPL v2+ |
cb16a205 | 19 | Group: Libraries |
11bf98d4 | 20 | Source0: http://gstreamer.freedesktop.org/src/gst-plugins-ugly/%{gstname}-%{version}.tar.xz |
689a6915 | 21 | # Source0-md5: 0f0e30336e3155443cd5bfec5c215d56 |
79cd64eb | 22 | URL: http://gstreamer.freedesktop.org/ |
9325c4e9 JB |
23 | BuildRequires: autoconf >= 2.69 |
24 | BuildRequires: automake >= 1:1.14 | |
170436bd | 25 | BuildRequires: docbook-dtd412-xml |
b6a79bb0 | 26 | BuildRequires: gettext-tools >= 0.17 |
352915bf | 27 | BuildRequires: glib2-devel >= 1:2.32.0 |
cb16a205 | 28 | BuildRequires: gstreamer-devel >= %{gst_req_ver} |
b8c6c55b | 29 | BuildRequires: gstreamer-plugins-base-devel >= %{gstpb_req_ver} |
1b5ae639 | 30 | BuildRequires: gtk-doc >= 1.12 |
9325c4e9 | 31 | BuildRequires: libtool >= 2:2.2.6 |
f1c862d8 | 32 | BuildRequires: orc-devel >= 0.4.16 |
cb16a205 | 33 | BuildRequires: pkgconfig >= 1:0.9.0 |
7cb41cd4 | 34 | BuildRequires: python >= 2.1 |
9325c4e9 | 35 | BuildRequires: rpmbuild(macros) >= 1.98 |
11bf98d4 JB |
36 | BuildRequires: tar >= 1:1.22 |
37 | BuildRequires: xz | |
cb16a205 JB |
38 | ## |
39 | ## plugins | |
40 | ## | |
41 | BuildRequires: a52dec-libs-devel | |
cb16a205 | 42 | BuildRequires: lame-libs-devel |
3c0adfd9 | 43 | %{?with_cdio:BuildRequires: libcdio-devel >= 0.76} |
2504e16f | 44 | BuildRequires: libdvdread-devel |
cb16a205 | 45 | BuildRequires: libmad-devel >= 0.15 |
1b508c4a | 46 | BuildRequires: libmpeg2-devel >= 0.5.1 |
cb16a205 | 47 | %{?with_sid:BuildRequires: libsidplay-devel >= 1.36.57} |
1b5ae639 JB |
48 | # ABI 120 |
49 | BuildRequires: libx264-devel >= 0.1.3-1.20111212_2245.1 | |
352915bf | 50 | %{?with_amr:BuildRequires: opencore-amr-devel >= 0.1.3} |
8ed9d0b9 | 51 | BuildRequires: twolame-devel >= 0.3.10 |
352915bf | 52 | Requires: glib2 >= 1:2.32.0 |
cb16a205 | 53 | Requires: gstreamer >= %{gst_req_ver} |
3c0adfd9 | 54 | Requires: gstreamer-plugins-base >= %{gstpb_req_ver} |
f1c862d8 | 55 | Requires: orc >= 0.4.16 |
d80bf4e2 | 56 | Obsoletes: gstreamer-asf |
cb16a205 JB |
57 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
58 | ||
59 | %define gstlibdir %{_libdir}/gstreamer-%{gst_major_ver} | |
60 | ||
61 | %description | |
62 | GStreamer is a streaming-media framework, based on graphs of filters | |
63 | which operate on media data. Applications using this library can do | |
64 | anything from real-time sound processing to playing videos, and just | |
65 | about anything else media-related. Its plugin-based architecture means | |
66 | that new data types or processing capabilities can be added simply by | |
67 | installing new plugins. | |
68 | ||
44437336 JR |
69 | %description -l pl.UTF-8 |
70 | GStreamer to środowisko obróbki danych strumieniowych, bazujące na | |
71 | grafie filtrów operujących na danych medialnych. Aplikacje używające | |
72 | tej biblioteki mogą robić wszystko od przetwarzania dźwięku w czasie | |
73 | rzeczywistym, do odtwarzania filmów i czegokolwiek innego związego z | |
74 | mediami. Architektura bazująca na wtyczkach pozwala na łatwe dodawanie | |
75 | nowych typów danych lub możliwości obróbki. | |
cb16a205 JB |
76 | |
77 | ## | |
78 | ## Plugins | |
79 | ## | |
80 | ||
81 | %package -n gstreamer-a52dec | |
82 | Summary: GStreamer VOB decoder plugin | |
50ae5262 | 83 | Summary(pl.UTF-8): Wtyczka do GStreamera dekodująca VOB |
cb16a205 | 84 | Group: Libraries |
e54e6f9c | 85 | Requires: gstreamer >= %{gst_req_ver} |
b8c6c55b | 86 | Requires: gstreamer-plugins-base >= %{gstpb_req_ver} |
cb16a205 JB |
87 | |
88 | %description -n gstreamer-a52dec | |
89 | Plugin for decoding of VOB files. | |
90 | ||
44437336 JR |
91 | %description -n gstreamer-a52dec -l pl.UTF-8 |
92 | Wtyczka dekodująca pliki VOB. | |
cb16a205 JB |
93 | |
94 | %package -n gstreamer-amrnb | |
95 | Summary: GStreamer AMR-NB decoder plugin | |
50ae5262 | 96 | Summary(pl.UTF-8): Wtyczka do GStreamera dekodująca pliki AMR-NB |
cb16a205 | 97 | Group: Libraries |
b8c6c55b | 98 | Requires: gstreamer >= %{gst_req_ver} |
e54e6f9c | 99 | Requires: gstreamer-plugins-base >= %{gstpb_req_ver} |
352915bf | 100 | Requires: opencore-amr >= 0.1.3 |
cb16a205 JB |
101 | |
102 | %description -n gstreamer-amrnb | |
103 | Plugin for decoding of AMR-NB files. | |
104 | ||
44437336 JR |
105 | %description -n gstreamer-amrnb -l pl.UTF-8 |
106 | Wtyczka dekodująca pliki AMR-NB. | |
cb16a205 | 107 | |
8ed9d0b9 JB |
108 | %package -n gstreamer-amrwb |
109 | Summary: GStreamer AMR-WB decoder plugin | |
110 | Summary(pl.UTF-8): Wtyczka do GStreamera dekodująca pliki AMR-WB | |
111 | Group: Libraries | |
112 | Requires: gstreamer >= %{gst_req_ver} | |
e54e6f9c | 113 | Requires: gstreamer-plugins-base >= %{gstpb_req_ver} |
352915bf | 114 | Requires: opencore-amr >= 0.1.3 |
8ed9d0b9 JB |
115 | |
116 | %description -n gstreamer-amrwb | |
117 | Plugin for decoding of AMR-WB files. | |
118 | ||
119 | %description -n gstreamer-amrwb -l pl.UTF-8 | |
120 | Wtyczka dekodująca pliki AMR-WB. | |
121 | ||
abf8ad57 JB |
122 | %package -n gstreamer-cdio |
123 | Summary: GStreamer plugin for CD audio input using libcdio | |
124 | Summary(pl.UTF-8): Wtyczka do GStreamera odtwarzająca płyty CD-Audio przy użyciu libcdio | |
125 | Group: Libraries | |
e54e6f9c | 126 | Requires: gstreamer >= %{gst_req_ver} |
abf8ad57 | 127 | Requires: gstreamer-plugins-base >= %{gstpb_req_ver} |
3c0adfd9 | 128 | Requires: libcdio >= 0.76 |
e54e6f9c JB |
129 | # for NLS |
130 | Requires: %{name} = %{version}-%{release} | |
abf8ad57 JB |
131 | |
132 | %description -n gstreamer-cdio | |
133 | Plugin for playing audio tracks using libcdio under GStreamer. | |
134 | ||
135 | %description -n gstreamer-cdio -l pl.UTF-8 | |
136 | Wtyczka do odtwarzania ścieżek dźwiękowych pod GStreamerem za pomocą | |
137 | libcdio. | |
138 | ||
2504e16f JB |
139 | %package -n gstreamer-dvdread |
140 | Summary: GStreamer plugin for DVD playback | |
50ae5262 | 141 | Summary(pl.UTF-8): Wtyczka do GStreamera odtwarzająca DVD |
2504e16f | 142 | Group: Libraries |
b8c6c55b JB |
143 | # for NLS |
144 | Requires: %{name} = %{version}-%{release} | |
2504e16f | 145 | Requires: gstreamer >= %{gst_req_ver} |
e54e6f9c | 146 | Requires: gstreamer-plugins-base >= %{gstpb_req_ver} |
2504e16f JB |
147 | Obsoletes: gstreamer-libdvdread |
148 | ||
149 | %description -n gstreamer-dvdread | |
150 | GStreamer plugin for DVD playback. | |
151 | ||
44437336 JR |
152 | %description -n gstreamer-dvdread -l pl.UTF-8 |
153 | Wtyczka odtwarzająca DVD do GStreamera. | |
2504e16f | 154 | |
cb16a205 JB |
155 | %package -n gstreamer-lame |
156 | Summary: GStreamer plugin encoding MP3 songs | |
50ae5262 | 157 | Summary(pl.UTF-8): Wtyczka do GStreamera kodująca pliki MP3 |
cb16a205 | 158 | Group: Libraries |
b8c6c55b JB |
159 | # for NLS |
160 | Requires: %{name} = %{version}-%{release} | |
161 | Requires: gstreamer >= %{gst_req_ver} | |
e54e6f9c | 162 | Requires: gstreamer-plugins-base >= %{gstpb_req_ver} |
8ed9d0b9 | 163 | Requires: twolame-libs >= 0.3.10 |
cb16a205 JB |
164 | |
165 | %description -n gstreamer-lame | |
166 | Plugin for encoding MP3 with lame. | |
167 | ||
44437336 JR |
168 | %description -n gstreamer-lame -l pl.UTF-8 |
169 | Wtyczka do GStreamera kodująca pliki MP3 przy użyciu lame. | |
cb16a205 JB |
170 | |
171 | %package -n gstreamer-mad | |
172 | Summary: GStreamer plugin using MAD for MP3 decoding | |
50ae5262 | 173 | Summary(pl.UTF-8): Wtyczka do GStreamera używająca MAD do dekodowania MP3 |
cb16a205 | 174 | Group: Libraries |
e54e6f9c | 175 | Requires: gstreamer >= %{gst_req_ver} |
b8c6c55b | 176 | Requires: gstreamer-plugins-base >= %{gstpb_req_ver} |
cb16a205 JB |
177 | |
178 | %description -n gstreamer-mad | |
179 | Plugin for playback of MP3 songs using the very good MAD library. | |
180 | ||
44437336 JR |
181 | %description -n gstreamer-mad -l pl.UTF-8 |
182 | Wtyczka do odtwarzania plików MP3 przy użyciu bardzo dobrej biblioteki | |
cb16a205 JB |
183 | MAD. |
184 | ||
185 | %package -n gstreamer-mpeg | |
05fdebbc | 186 | Summary: GStreamer plugins for MPEG video playback |
8ed9d0b9 | 187 | Summary(pl.UTF-8): Wtyczka do GStreamera odtwarzająca obraz MPEG |
cb16a205 | 188 | Group: Libraries |
b8c6c55b | 189 | Requires: gstreamer >= %{gst_req_ver} |
e54e6f9c | 190 | Requires: gstreamer-plugins-base >= %{gstpb_req_ver} |
cb16a205 JB |
191 | |
192 | %description -n gstreamer-mpeg | |
05fdebbc | 193 | Plugins for playing MPEG videos. |
cb16a205 | 194 | |
44437336 | 195 | %description -n gstreamer-mpeg -l pl.UTF-8 |
8ed9d0b9 | 196 | Wtyczki do odtwarzania obrazu MPEG. |
cb16a205 JB |
197 | |
198 | %package -n gstreamer-sid | |
199 | Summary: GStreamer Sid C64 music plugin | |
50ae5262 | 200 | Summary(pl.UTF-8): Wtyczka do GStreamera odtwarzająca muzykę Sid C64 |
cb16a205 | 201 | Group: Libraries |
b8c6c55b | 202 | Requires: gstreamer >= %{gst_req_ver} |
e54e6f9c | 203 | Requires: gstreamer-plugins-base >= %{gstpb_req_ver} |
cb16a205 JB |
204 | |
205 | %description -n gstreamer-sid | |
206 | Plugin for playback of C64 SID format music files. | |
207 | ||
44437336 JR |
208 | %description -n gstreamer-sid -l pl.UTF-8 |
209 | Wtyczka do odtwarzania plików z muzyką w formacie C64 SID. | |
cb16a205 | 210 | |
1b508c4a | 211 | %package -n gstreamer-x264 |
05fdebbc | 212 | Summary: GStreamer x264 encoder plugin |
8ed9d0b9 | 213 | Summary(pl.UTF-8): Wtyczka do GStreamera kodująca przy użyciu biblioteki x264 |
1b508c4a | 214 | Group: Libraries |
e54e6f9c | 215 | Requires: gstreamer >= %{gst_req_ver} |
1b508c4a PZ |
216 | Requires: gstreamer-plugins-base >= %{gst_req_ver} |
217 | ||
218 | %description -n gstreamer-x264 | |
05fdebbc | 219 | GStreamer x264 encoder plugin. |
1b508c4a PZ |
220 | |
221 | %description -n gstreamer-x264 -l pl.UTF-8 | |
8ed9d0b9 | 222 | Wtyczka do GStreamera kodująca przy użyciu biblioteki x264. |
1b508c4a | 223 | |
cb16a205 JB |
224 | %prep |
225 | %setup -q -n %{gstname}-%{version} | |
cb16a205 JB |
226 | |
227 | %build | |
228 | %{__libtoolize} | |
229 | %{__aclocal} -I m4 -I common/m4 | |
230 | %{__autoconf} | |
231 | %{__autoheader} | |
232 | %{__automake} | |
233 | %configure \ | |
8ed9d0b9 | 234 | %{!?with_amr:--disable-amrnb --disable-amrwb} \ |
abf8ad57 | 235 | %{!?with_cdio:--disable-cdio} \ |
cb16a205 | 236 | %{!?with_sid:--disable-sidplay} \ |
8ed9d0b9 | 237 | --disable-silent-rules \ |
cb16a205 | 238 | --disable-static \ |
39eb51c4 | 239 | --enable-experimental \ |
cb16a205 JB |
240 | --enable-gtk-doc \ |
241 | --with-html-dir=%{_gtkdocdir} | |
242 | ||
243 | %{__make} | |
244 | ||
245 | %install | |
246 | rm -rf $RPM_BUILD_ROOT | |
247 | ||
248 | %{__make} install \ | |
249 | DESTDIR=$RPM_BUILD_ROOT | |
250 | ||
251 | # We don't need plugins' *.la files | |
e628cfcc | 252 | %{__rm} $RPM_BUILD_ROOT%{gstlibdir}/*.la |
cb16a205 | 253 | |
b8c6c55b | 254 | %find_lang %{gstname}-%{gst_major_ver} |
7f613cce | 255 | |
cb16a205 JB |
256 | %clean |
257 | rm -rf $RPM_BUILD_ROOT | |
258 | ||
b8c6c55b | 259 | %files -f %{gstname}-%{gst_major_ver}.lang |
cb16a205 JB |
260 | %defattr(644,root,root,755) |
261 | %doc AUTHORS ChangeLog NEWS README RELEASE | |
2504e16f | 262 | %attr(755,root,root) %{gstlibdir}/libgstasf.so |
cb16a205 | 263 | %attr(755,root,root) %{gstlibdir}/libgstdvdlpcmdec.so |
0153d2de | 264 | %attr(755,root,root) %{gstlibdir}/libgstdvdsub.so |
cb16a205 | 265 | %attr(755,root,root) %{gstlibdir}/libgstrmdemux.so |
e628cfcc | 266 | %attr(755,root,root) %{gstlibdir}/libgstxingmux.so |
81059382 | 267 | %{_datadir}/gstreamer-%{gst_major_ver}/presets |
e628cfcc | 268 | %{_gtkdocdir}/gst-plugins-ugly-plugins-1.0 |
cb16a205 JB |
269 | |
270 | ## | |
271 | ## Plugins | |
272 | ## | |
273 | ||
274 | %files -n gstreamer-a52dec | |
275 | %defattr(644,root,root,755) | |
276 | %attr(755,root,root) %{gstlibdir}/libgsta52dec.so | |
277 | ||
7cb41cd4 | 278 | %if %{with amr} |
cb16a205 JB |
279 | %files -n gstreamer-amrnb |
280 | %defattr(644,root,root,755) | |
281 | %attr(755,root,root) %{gstlibdir}/libgstamrnb.so | |
8ed9d0b9 JB |
282 | |
283 | %files -n gstreamer-amrwb | |
284 | %defattr(644,root,root,755) | |
285 | %attr(755,root,root) %{gstlibdir}/libgstamrwbdec.so | |
7cb41cd4 | 286 | %endif |
cb16a205 | 287 | |
abf8ad57 JB |
288 | %if %{with cdio} |
289 | %files -n gstreamer-cdio | |
290 | %defattr(644,root,root,755) | |
291 | %attr(755,root,root) %{gstlibdir}/libgstcdio.so | |
292 | %endif | |
293 | ||
2504e16f JB |
294 | %files -n gstreamer-dvdread |
295 | %defattr(644,root,root,755) | |
296 | %attr(755,root,root) %{gstlibdir}/libgstdvdread.so | |
297 | ||
cb16a205 JB |
298 | %files -n gstreamer-lame |
299 | %defattr(644,root,root,755) | |
300 | %attr(755,root,root) %{gstlibdir}/libgstlame.so | |
24800bca | 301 | %attr(755,root,root) %{gstlibdir}/libgsttwolame.so |
cb16a205 JB |
302 | |
303 | %files -n gstreamer-mad | |
304 | %defattr(644,root,root,755) | |
305 | %attr(755,root,root) %{gstlibdir}/libgstmad.so | |
306 | ||
307 | %files -n gstreamer-mpeg | |
308 | %defattr(644,root,root,755) | |
309 | %attr(755,root,root) %{gstlibdir}/libgstmpeg2dec.so | |
cb16a205 JB |
310 | |
311 | %if %{with sid} | |
312 | %files -n gstreamer-sid | |
313 | %defattr(644,root,root,755) | |
314 | %attr(755,root,root) %{gstlibdir}/libgstsid.so | |
315 | %endif | |
1b508c4a PZ |
316 | |
317 | %files -n gstreamer-x264 | |
318 | %defattr(644,root,root,755) | |
319 | %attr(755,root,root) %{gstlibdir}/libgstx264.so |