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