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