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