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