]>
Commit | Line | Data |
---|---|---|
cb16a205 JB |
1 | # |
2 | # Conditional build: | |
abf8ad57 | 3 | %bcond_without cdio # don't build cdio plugin |
cb16a205 | 4 | %bcond_without sid # don't build sid plugin |
7cb41cd4 | 5 | %bcond_with amr # AMR-NB plugin |
05fdebbc | 6 | |
cb16a205 JB |
7 | %define gstname gst-plugins-ugly |
8 | %define gst_major_ver 0.10 | |
2b6427dd SS |
9 | %define gst_req_ver 0.10.25 |
10 | %define gstpb_req_ver 0.10.25 | |
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 |
c4fa5379 | 16 | Version: 0.10.16 |
05fdebbc | 17 | Release: 2 |
39eb51c4 | 18 | License: LGPL v2+ |
cb16a205 JB |
19 | Group: Libraries |
20 | Source0: http://gstreamer.freedesktop.org/src/gst-plugins-ugly/%{gstname}-%{version}.tar.bz2 | |
c4fa5379 | 21 | # Source0-md5: 989e1b0fab010f73f76912f70ec5f62a |
cb16a205 | 22 | Patch0: %{name}-bashish.patch |
79cd64eb | 23 | URL: http://gstreamer.freedesktop.org/ |
cb16a205 JB |
24 | BuildRequires: autoconf >= 2.52 |
25 | BuildRequires: automake >= 1.5 | |
170436bd | 26 | BuildRequires: docbook-dtd412-xml |
3c0adfd9 | 27 | BuildRequires: gettext-devel |
d7fcb9f6 | 28 | BuildRequires: glib2-devel >= 1:2.12.1 |
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 |
c4fa5379 | 33 | BuildRequires: orc-devel >= 0.4.5 |
cb16a205 | 34 | BuildRequires: pkgconfig >= 1:0.9.0 |
7cb41cd4 JB |
35 | BuildRequires: python >= 2.1 |
36 | BuildRequires: python-PyXML | |
cb16a205 JB |
37 | ## |
38 | ## plugins | |
39 | ## | |
40 | BuildRequires: a52dec-libs-devel | |
7cb41cd4 | 41 | %{?with_amr:BuildRequires: amrnb-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} |
b036303b | 51 | BuildRequires: libx264-devel >= 0.1.3 |
cb16a205 | 52 | BuildRequires: rpmbuild(macros) >= 1.98 |
3c0adfd9 | 53 | BuildRequires: twolame-devel >= 0.3.0 |
cb16a205 | 54 | Requires: gstreamer >= %{gst_req_ver} |
3c0adfd9 | 55 | Requires: gstreamer-plugins-base >= %{gstpb_req_ver} |
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 |
b8c6c55b | 85 | Requires: gstreamer-plugins-base >= %{gstpb_req_ver} |
cb16a205 JB |
86 | |
87 | %description -n gstreamer-a52dec | |
88 | Plugin for decoding of VOB files. | |
89 | ||
44437336 JR |
90 | %description -n gstreamer-a52dec -l pl.UTF-8 |
91 | Wtyczka dekodująca pliki VOB. | |
cb16a205 JB |
92 | |
93 | %package -n gstreamer-amrnb | |
94 | Summary: GStreamer AMR-NB decoder plugin | |
50ae5262 | 95 | Summary(pl.UTF-8): Wtyczka do GStreamera dekodująca pliki AMR-NB |
cb16a205 | 96 | Group: Libraries |
b8c6c55b | 97 | Requires: gstreamer >= %{gst_req_ver} |
cb16a205 JB |
98 | |
99 | %description -n gstreamer-amrnb | |
100 | Plugin for decoding of AMR-NB files. | |
101 | ||
44437336 JR |
102 | %description -n gstreamer-amrnb -l pl.UTF-8 |
103 | Wtyczka dekodująca pliki AMR-NB. | |
cb16a205 | 104 | |
abf8ad57 JB |
105 | %package -n gstreamer-cdio |
106 | Summary: GStreamer plugin for CD audio input using libcdio | |
107 | Summary(pl.UTF-8): Wtyczka do GStreamera odtwarzająca płyty CD-Audio przy użyciu libcdio | |
108 | Group: Libraries | |
109 | Requires: gstreamer-plugins-base >= %{gstpb_req_ver} | |
3c0adfd9 | 110 | Requires: libcdio >= 0.76 |
abf8ad57 JB |
111 | |
112 | %description -n gstreamer-cdio | |
113 | Plugin for playing audio tracks using libcdio under GStreamer. | |
114 | ||
115 | %description -n gstreamer-cdio -l pl.UTF-8 | |
116 | Wtyczka do odtwarzania ścieżek dźwiękowych pod GStreamerem za pomocą | |
117 | libcdio. | |
118 | ||
2504e16f JB |
119 | %package -n gstreamer-dvdread |
120 | Summary: GStreamer plugin for DVD playback | |
50ae5262 | 121 | Summary(pl.UTF-8): Wtyczka do GStreamera odtwarzająca DVD |
2504e16f | 122 | Group: Libraries |
b8c6c55b JB |
123 | # for NLS |
124 | Requires: %{name} = %{version}-%{release} | |
2504e16f JB |
125 | Requires: gstreamer >= %{gst_req_ver} |
126 | Obsoletes: gstreamer-libdvdread | |
127 | ||
128 | %description -n gstreamer-dvdread | |
129 | GStreamer plugin for DVD playback. | |
130 | ||
44437336 JR |
131 | %description -n gstreamer-dvdread -l pl.UTF-8 |
132 | Wtyczka odtwarzająca DVD do GStreamera. | |
2504e16f | 133 | |
cb16a205 JB |
134 | %package -n gstreamer-lame |
135 | Summary: GStreamer plugin encoding MP3 songs | |
50ae5262 | 136 | Summary(pl.UTF-8): Wtyczka do GStreamera kodująca pliki MP3 |
cb16a205 | 137 | Group: Libraries |
b8c6c55b JB |
138 | # for NLS |
139 | Requires: %{name} = %{version}-%{release} | |
140 | Requires: gstreamer >= %{gst_req_ver} | |
cb16a205 JB |
141 | |
142 | %description -n gstreamer-lame | |
143 | Plugin for encoding MP3 with lame. | |
144 | ||
44437336 JR |
145 | %description -n gstreamer-lame -l pl.UTF-8 |
146 | Wtyczka do GStreamera kodująca pliki MP3 przy użyciu lame. | |
cb16a205 JB |
147 | |
148 | %package -n gstreamer-mad | |
149 | Summary: GStreamer plugin using MAD for MP3 decoding | |
50ae5262 | 150 | Summary(pl.UTF-8): Wtyczka do GStreamera używająca MAD do dekodowania MP3 |
cb16a205 | 151 | Group: Libraries |
b8c6c55b | 152 | Requires: gstreamer-plugins-base >= %{gstpb_req_ver} |
cb16a205 JB |
153 | |
154 | %description -n gstreamer-mad | |
155 | Plugin for playback of MP3 songs using the very good MAD library. | |
156 | ||
44437336 JR |
157 | %description -n gstreamer-mad -l pl.UTF-8 |
158 | Wtyczka do odtwarzania plików MP3 przy użyciu bardzo dobrej biblioteki | |
cb16a205 JB |
159 | MAD. |
160 | ||
161 | %package -n gstreamer-mpeg | |
05fdebbc | 162 | Summary: GStreamer plugins for MPEG video playback |
50ae5262 | 163 | Summary(pl.UTF-8): Wtyczka do GStreamera odtwarzająca i kodująca obraz MPEG |
cb16a205 | 164 | Group: Libraries |
b8c6c55b | 165 | Requires: gstreamer >= %{gst_req_ver} |
cb16a205 JB |
166 | |
167 | %description -n gstreamer-mpeg | |
05fdebbc | 168 | Plugins for playing MPEG videos. |
cb16a205 | 169 | |
44437336 | 170 | %description -n gstreamer-mpeg -l pl.UTF-8 |
cb16a205 JB |
171 | Wtyczki do odtwarzania i kodowania obrazu MPEG. |
172 | ||
173 | %package -n gstreamer-sid | |
174 | Summary: GStreamer Sid C64 music plugin | |
50ae5262 | 175 | Summary(pl.UTF-8): Wtyczka do GStreamera odtwarzająca muzykę Sid C64 |
cb16a205 | 176 | Group: Libraries |
b8c6c55b | 177 | Requires: gstreamer >= %{gst_req_ver} |
cb16a205 JB |
178 | |
179 | %description -n gstreamer-sid | |
180 | Plugin for playback of C64 SID format music files. | |
181 | ||
44437336 JR |
182 | %description -n gstreamer-sid -l pl.UTF-8 |
183 | Wtyczka do odtwarzania plików z muzyką w formacie C64 SID. | |
cb16a205 | 184 | |
1b508c4a | 185 | %package -n gstreamer-x264 |
05fdebbc | 186 | Summary: GStreamer x264 encoder plugin |
1b508c4a PZ |
187 | Summary(pl.UTF-8): Wtyczka do GStreamera dekodująca przy użyciu biblioteki x264 |
188 | Group: Libraries | |
189 | Requires: gstreamer-plugins-base >= %{gst_req_ver} | |
190 | ||
191 | %description -n gstreamer-x264 | |
05fdebbc | 192 | GStreamer x264 encoder plugin. |
1b508c4a PZ |
193 | |
194 | %description -n gstreamer-x264 -l pl.UTF-8 | |
195 | Wtyczka do GStreamera dekodująca przy użyciu biblioteki x264. | |
196 | ||
cb16a205 JB |
197 | %prep |
198 | %setup -q -n %{gstname}-%{version} | |
199 | %patch0 -p1 | |
200 | ||
201 | %build | |
202 | %{__libtoolize} | |
203 | %{__aclocal} -I m4 -I common/m4 | |
204 | %{__autoconf} | |
205 | %{__autoheader} | |
206 | %{__automake} | |
207 | %configure \ | |
7cb41cd4 | 208 | %{!?with_amr:--disable-amrnb} \ |
abf8ad57 | 209 | %{!?with_cdio:--disable-cdio} \ |
cb16a205 JB |
210 | %{!?with_sid:--disable-sidplay} \ |
211 | --disable-static \ | |
39eb51c4 | 212 | --enable-experimental \ |
cb16a205 JB |
213 | --enable-gtk-doc \ |
214 | --with-html-dir=%{_gtkdocdir} | |
215 | ||
216 | %{__make} | |
217 | ||
218 | %install | |
219 | rm -rf $RPM_BUILD_ROOT | |
220 | ||
221 | %{__make} install \ | |
222 | DESTDIR=$RPM_BUILD_ROOT | |
223 | ||
224 | # We don't need plugins' *.la files | |
225 | rm -f $RPM_BUILD_ROOT%{gstlibdir}/*.la | |
226 | ||
b8c6c55b | 227 | %find_lang %{gstname}-%{gst_major_ver} |
7f613cce | 228 | |
cb16a205 JB |
229 | %clean |
230 | rm -rf $RPM_BUILD_ROOT | |
231 | ||
b8c6c55b | 232 | %files -f %{gstname}-%{gst_major_ver}.lang |
cb16a205 JB |
233 | %defattr(644,root,root,755) |
234 | %doc AUTHORS ChangeLog NEWS README RELEASE | |
1b508c4a | 235 | %{_datadir}/gstreamer-%{gst_major_ver}/presets |
2504e16f | 236 | %attr(755,root,root) %{gstlibdir}/libgstasf.so |
cb16a205 | 237 | %attr(755,root,root) %{gstlibdir}/libgstdvdlpcmdec.so |
0153d2de | 238 | %attr(755,root,root) %{gstlibdir}/libgstdvdsub.so |
cb16a205 JB |
239 | %attr(755,root,root) %{gstlibdir}/libgstiec958.so |
240 | %attr(755,root,root) %{gstlibdir}/libgstrmdemux.so | |
39eb51c4 | 241 | %attr(755,root,root) %{gstlibdir}/libgstsynaesthesia.so |
cb16a205 JB |
242 | %{_gtkdocdir}/gst-plugins-ugly-plugins-* |
243 | ||
244 | ## | |
245 | ## Plugins | |
246 | ## | |
247 | ||
248 | %files -n gstreamer-a52dec | |
249 | %defattr(644,root,root,755) | |
250 | %attr(755,root,root) %{gstlibdir}/libgsta52dec.so | |
251 | ||
7cb41cd4 | 252 | %if %{with amr} |
cb16a205 JB |
253 | %files -n gstreamer-amrnb |
254 | %defattr(644,root,root,755) | |
255 | %attr(755,root,root) %{gstlibdir}/libgstamrnb.so | |
7cb41cd4 | 256 | %endif |
cb16a205 | 257 | |
abf8ad57 JB |
258 | %if %{with cdio} |
259 | %files -n gstreamer-cdio | |
260 | %defattr(644,root,root,755) | |
261 | %attr(755,root,root) %{gstlibdir}/libgstcdio.so | |
262 | %endif | |
263 | ||
2504e16f JB |
264 | %files -n gstreamer-dvdread |
265 | %defattr(644,root,root,755) | |
266 | %attr(755,root,root) %{gstlibdir}/libgstdvdread.so | |
267 | ||
cb16a205 JB |
268 | %files -n gstreamer-lame |
269 | %defattr(644,root,root,755) | |
270 | %attr(755,root,root) %{gstlibdir}/libgstlame.so | |
24800bca | 271 | %attr(755,root,root) %{gstlibdir}/libgsttwolame.so |
cb16a205 JB |
272 | |
273 | %files -n gstreamer-mad | |
274 | %defattr(644,root,root,755) | |
275 | %attr(755,root,root) %{gstlibdir}/libgstmad.so | |
276 | ||
277 | %files -n gstreamer-mpeg | |
278 | %defattr(644,root,root,755) | |
279 | %attr(755,root,root) %{gstlibdir}/libgstmpeg2dec.so | |
280 | %attr(755,root,root) %{gstlibdir}/libgstmpegaudioparse.so | |
281 | %attr(755,root,root) %{gstlibdir}/libgstmpegstream.so | |
282 | ||
283 | %if %{with sid} | |
284 | %files -n gstreamer-sid | |
285 | %defattr(644,root,root,755) | |
286 | %attr(755,root,root) %{gstlibdir}/libgstsid.so | |
287 | %endif | |
1b508c4a PZ |
288 | |
289 | %files -n gstreamer-x264 | |
290 | %defattr(644,root,root,755) | |
291 | %attr(755,root,root) %{gstlibdir}/libgstx264.so |