1 |
%define _glib2 2.2 |
2 |
%define major 1.0 |
3 |
%define majorminor 1.0 |
4 |
%define bname gstreamer1.0 |
5 |
|
6 |
%define build_plf 0 |
7 |
|
8 |
%if "%{?distro_section}" == "tainted" |
9 |
%define build_plf 1 |
10 |
%endif |
11 |
|
12 |
%define build_experimental 0 |
13 |
%{?_with_experimental: %{expand: %%global build_experimental 1}} |
14 |
%define build_lame 0 |
15 |
%define build_amrnb 0 |
16 |
%define build_amrwbdec 0 |
17 |
%define build_x264 0 |
18 |
|
19 |
%if %build_plf |
20 |
%define build_lame 1 |
21 |
%define build_x264 1 |
22 |
%define build_amrnb 1 |
23 |
%define build_amrwbdec 1 |
24 |
%endif |
25 |
|
26 |
Summary: GStreamer Streaming-media framework plug-ins |
27 |
Name: %{bname}-plugins-ugly |
28 |
Version: 1.4.3 |
29 |
%define subrel 1 |
30 |
Release: %mkrel 2 |
31 |
License: LGPLv2+ |
32 |
Group: Sound/Utilities |
33 |
Source: http://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-%{version}.tar.xz |
34 |
Patch0: gstreamer-plugins-ugly-0.10.17-amr-linking.patch |
35 |
Patch1: 0001-asfdemux-Check-that-we-have-enough-data-available-be.patch |
36 |
Patch2: 0002-asfdemux-Reset-number-of-languages-to-0-when-freeing.patch |
37 |
|
38 |
URL: http://gstreamer.freedesktop.org/ |
39 |
#gw for the pixbuf plugin |
40 |
BuildRequires: gtk+2-devel |
41 |
BuildRequires: glib2-devel >= %_glib2 |
42 |
BuildRequires: liborc-devel >= 0.4.5 |
43 |
BuildRequires: gstreamer1.0-plugins-base-devel >= %{version} |
44 |
BuildRequires: libmesaglu-devel |
45 |
BuildRequires: libmad-devel |
46 |
BuildRequires: libid3tag-devel |
47 |
BuildRequires: libdvdread-devel |
48 |
|
49 |
%ifnarch %mips %arm |
50 |
BuildRequires: valgrind-devel |
51 |
%endif |
52 |
|
53 |
BuildRequires: libcheck-devel |
54 |
Provides: %{bname}-audiosrc |
55 |
Provides: %{bname}-audiosink |
56 |
|
57 |
%description |
58 |
GStreamer is a streaming-media framework, based on graphs of filters which |
59 |
operate on media data. Applications using this library can do anything |
60 |
from real-time sound processing to playing videos, and just about anything |
61 |
else media-related. Its plugin-based architecture means that new data |
62 |
types or processing capabilities can be added simply by installing new |
63 |
plug-ins. |
64 |
|
65 |
This package contains a set of plug-ins that have good quality and |
66 |
correct functionality, but distributing them might pose problems. The |
67 |
license on either the plug-ins or the supporting libraries might not |
68 |
be how the GStreamer authors like. The code might be widely known to |
69 |
present patent problems. |
70 |
|
71 |
%if %build_plf |
72 |
This package is in the 'tainted' section as it violates some patents. |
73 |
%endif |
74 |
|
75 |
%prep |
76 |
%setup -q -n gst-plugins-ugly-%{version} |
77 |
%apply_patches |
78 |
|
79 |
%build |
80 |
%configure2_5x --disable-dependency-tracking --disable-static \ |
81 |
--disable-gtk-doc-html \ |
82 |
--with-package-name='%{distribution} %name package' \ |
83 |
--with-package-origin='http://www.mageia.org/' \ |
84 |
%if ! %build_lame |
85 |
--disable-lame \ |
86 |
%endif |
87 |
%if %build_experimental |
88 |
--enable-experimental |
89 |
%endif |
90 |
|
91 |
%make |
92 |
|
93 |
%check |
94 |
cd tests/check |
95 |
make check |
96 |
|
97 |
%install |
98 |
GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %makeinstall_std |
99 |
|
100 |
%find_lang gst-plugins-ugly-%{majorminor} |
101 |
|
102 |
rm -fr %{buildroot}%{_datadir}/gtk-doc |
103 |
|
104 |
# Clean out files that should not be part of the rpm. |
105 |
# This is the recommended way of dealing with it for RH8 |
106 |
find %{buildroot} -name '*.la' -delete |
107 |
|
108 |
%files -f gst-plugins-ugly-%{majorminor}.lang |
109 |
%doc AUTHORS COPYING README NEWS |
110 |
%{_libdir}/gstreamer-%{majorminor}/libgstasf.so |
111 |
%{_libdir}/gstreamer-%{majorminor}/libgstdvdlpcmdec.so |
112 |
%{_libdir}/gstreamer-%{majorminor}/libgstdvdread.so |
113 |
%{_libdir}/gstreamer-%{majorminor}/libgstdvdsub.so |
114 |
%{_libdir}/gstreamer-%{majorminor}/libgstmad.so |
115 |
%{_libdir}/gstreamer-%{majorminor}/libgstrmdemux.so |
116 |
%if %build_experimental |
117 |
%{_libdir}/gstreamer-%{majorminor}/libgstsynaesthesia.so |
118 |
%endif |
119 |
%{_libdir}/gstreamer-%{majorminor}/libgstxingmux.so |
120 |
|
121 |
%if %build_lame |
122 |
### LAME ### |
123 |
%package -n %{bname}-lame |
124 |
Summary: GStreamer plug-in for encoding mp3 songs using lame |
125 |
Group: Sound/Utilities |
126 |
Requires: %{bname}-plugins >= %{version}-%{release} |
127 |
BuildRequires: liblame-devel >= 3.89 |
128 |
|
129 |
%description -n %{bname}-lame |
130 |
Plug-in for encoding mp3 with lame under GStreamer. |
131 |
|
132 |
This package is in the 'tainted' section as it violates some patents. |
133 |
|
134 |
%files -n %{bname}-lame |
135 |
%{_libdir}/gstreamer-%{majorminor}/libgstlame.so |
136 |
%endif |
137 |
|
138 |
%if %build_x264 |
139 |
%package -n %{bname}-x264 |
140 |
Summary: GStreamer plug-in for H264/AVC video encoding |
141 |
Group: Video/Utilities |
142 |
BuildRequires: libx264-devel |
143 |
|
144 |
%description -n %{bname}-x264 |
145 |
Plug-in for encoding H264/AVC video. |
146 |
|
147 |
This package is in the 'tainted' section as it violates some patents. |
148 |
%files -n %{bname}-x264 |
149 |
%{_libdir}/gstreamer-%{majorminor}/libgstx264.so |
150 |
%{_datadir}/gstreamer-%{majorminor}/presets/GstX264Enc.prs |
151 |
%endif |
152 |
|
153 |
%if %build_amrnb |
154 |
%package -n %{bname}-amrnb |
155 |
Summary: GStreamer plug-in for AMR-NB support |
156 |
Group: Sound/Utilities |
157 |
Requires: %{bname}-plugins >= %{version}-%{release} |
158 |
BuildRequires: opencore-amr-devel |
159 |
|
160 |
%description -n %{bname}-amrnb |
161 |
Plug-in for decoding AMR-NB under GStreamer. |
162 |
|
163 |
This package is in the 'tainted' section as it violates some patents. |
164 |
|
165 |
%files -n %{bname}-amrnb |
166 |
%{_libdir}/gstreamer-%{majorminor}/libgstamrnb.so |
167 |
%{_datadir}/gstreamer-%{majorminor}/presets/GstAmrnbEnc.prs |
168 |
%endif |
169 |
|
170 |
%if %build_amrwbdec |
171 |
%package -n %{bname}-amrwbdec |
172 |
Summary: GStreamer plug-in for AMR-WB decoding support |
173 |
Group: Sound/Utilities |
174 |
Requires: %{bname}-plugins >= %{version}-%{release} |
175 |
BuildRequires: opencore-amr-devel |
176 |
|
177 |
%description -n %{bname}-amrwbdec |
178 |
Plug-in for decoding AMR-Wb under GStreamer. |
179 |
|
180 |
This package is in the 'tainted' section as it violates some patents. |
181 |
|
182 |
%files -n %{bname}-amrwbdec |
183 |
%{_libdir}/gstreamer-%{majorminor}/libgstamrwbdec.so |
184 |
%endif |
185 |
|
186 |
### SIDPLAY ### |
187 |
%package -n %{bname}-sid |
188 |
Summary: GStreamer Sid C64 music plugin |
189 |
Group: Sound/Utilities |
190 |
Requires: %{bname}-plugins >= %{version}-%{release} |
191 |
BuildRequires: sidplay-devel >= 1.36.0 |
192 |
|
193 |
%description -n %{bname}-sid |
194 |
Plugin for playback of C64 SID format music files |
195 |
|
196 |
%files -n %{bname}-sid |
197 |
%{_libdir}/gstreamer-%{majorminor}/libgstsid.so |
198 |
|
199 |
### A52DEC ### |
200 |
%package -n %{bname}-a52dec |
201 |
Summary: GStreamer AC-3 aka A/52 audio decoder plugin |
202 |
Group: Sound/Utilities |
203 |
Requires: %{bname}-plugins >= %{version}-%{release} |
204 |
BuildRequires: a52dec-devel >= 0.7.3 |
205 |
|
206 |
%description -n %{bname}-a52dec |
207 |
Plugin for decoding of AC-3 (A/52) audio as often found on DVDs. |
208 |
|
209 |
%files -n %{bname}-a52dec |
210 |
%{_libdir}/gstreamer-%{majorminor}/libgsta52dec.so |
211 |
|
212 |
%package -n %{bname}-mpeg |
213 |
Summary: GStreamer plug-ins for MPEG video playback and encoding |
214 |
Group: Video/Utilities |
215 |
Requires: %{bname}-plugins >= %{version}-%{release} |
216 |
BuildRequires: libmpeg2dec-devel >= 0.3.1 |
217 |
|
218 |
%description -n %{bname}-mpeg |
219 |
Plug-ins for playing and encoding MPEG video. |
220 |
|
221 |
%files -n %{bname}-mpeg |
222 |
%{_libdir}/gstreamer-%{majorminor}/libgstmpeg2dec.so |
223 |
|
224 |
%package -n %{bname}-cdio |
225 |
Summary: GStreamer plug-in for audio CD playback |
226 |
Group: Sound/Utilities |
227 |
Requires: %{bname}-plugins >= %{version}-%{release} |
228 |
BuildRequires: libcdio-devel |
229 |
Conflicts: %{bname}-plugins-good < 0.10.10 |
230 |
|
231 |
%description -n %{bname}-cdio |
232 |
Plug-in for audio CD playback. |
233 |
|
234 |
%files -n %{bname}-cdio |
235 |
%{_libdir}/gstreamer-%{majorminor}/libgstcdio.so |
236 |
|
237 |
%package -n %{bname}-twolame |
238 |
Summary: GStreamer plug-in for MP2 encoding support |
239 |
Group: Sound/Utilities |
240 |
Requires: %{bname}-plugins >= %{version}-%{release} |
241 |
BuildRequires: libtwolame-devel |
242 |
|
243 |
%description -n %{bname}-twolame |
244 |
Plug-in for encoding MP2 under GStreamer. |
245 |
|
246 |
%files -n %{bname}-twolame |
247 |
%{_libdir}/gstreamer-%{majorminor}/libgsttwolame.so |