various spec fixes
[platform/upstream/gst-plugins-good.git] / gst-plugins-good.spec.in
1 %define majorminor  @GST_MAJORMINOR@
2 %define gstreamer   gstreamer09
3 %define gstregister %{_bindir}/gst-register-%{majorminor}
4 %define register    %{gstregister} > /dev/null 2>&1 || :
5
6 %define gst_minver   0.9.1
7
8 Name:           %{gstreamer}-plugins-good
9 Version:        @VERSION@
10 Release:        @GST_PLUGINS_GOOD_VERSION_RELEASE@.gst
11 Summary:        GStreamer plug-ins with good code and licensing
12
13 Group:          Applications/Multimedia
14 License:        LGPL
15 URL:            http://gstreamer.freedesktop.org/
16 Vendor:         GStreamer Backpackers Team <package@gstreamer.freedesktop.org>
17 Source:         http://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-%{version}.tar.gz
18 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
19
20 Requires:         %{gstreamer} >= %{gst_minver}
21 BuildRequires:    %{gstreamer}-devel >= %{gst_minver}
22 Requires(post):   %{gstregister}
23 Requires(postun): %{gstregister}
24
25 BuildRequires:  gcc-c++
26
27 @USE_ESD_TRUE@Requires:      esound >= 0.2.8
28 @USE_ESD_TRUE@BuildRequires: esound-devel >= 0.2.8
29 @USE_ESD_TRUE@Obsoletes:     gstreamer-esd
30 @USE_ESD_TRUE@
31 @USE_ESD_TRUE@Provides:         gstreamer-audiosrc
32 @USE_ESD_TRUE@Provides:         gstreamer-audiosink
33 @USE_FLAC_TRUE@Requires:      flac >= 1.0.3
34 @USE_FLAC_TRUE@BuildRequires: flac-devel >= 1.0.3
35 @USE_GCONF_TRUE@Requires:       GConf2
36 @USE_GCONF_TRUE@BuildRequires:  GConf2-devel
37 @USE_JPEG_TRUE@Requires:      libjpeg
38 @USE_JPEG_TRUE@BuildRequires: libjpeg-devel
39 @USE_LIBPNG_TRUE@Requires:      libpng >= 1.2.0
40 @USE_LIBPNG_TRUE@BuildRequires: libpng-devel >= 1.2.0
41 # @USE_MIKMOD_TRUE@Requires:      mikmod
42 # @USE_MIKMOD_TRUE@BuildRequires: mikmod
43 @USE_OSS_TRUE@BuildRequires: glibc-devel
44 # @USE_PANGO_TRUE@Requires:        pango
45 # @USE_PANGO_TRUE@BuildRequires:   pango-devel
46 # @USE_RAW1394_TRUE@Requires:      libraw1394
47 # @USE_RAW1394_TRUE@BuildRequires: libraw1394-devel
48 @USE_SPEEX_TRUE@Requires:       speex
49 @USE_SPEEX_TRUE@BuildRequires:  speex-devel
50
51 @USE_SHOUT2_TRUE@BuildRequires: libshout-devel >= 2.0
52 # @USE_LADSPA_TRUE@BuildRequires: ladspa-devel
53 @USE_AALIB_TRUE@BuildRequires:  aalib-devel >= 1.3
54 @USE_AALIB_TRUE@Provides:       gstreamer-aasink = %{version}-%{release}
55
56 %description
57 GStreamer is a streaming media framework, based on graphs of filters which
58 operate on media data. Applications using this library can do anything
59 from real-time sound processing to playing videos, and just about anything
60 else media-related.  Its plugin-based architecture means that new data
61 types or processing capabilities can be added simply by installing new
62 plug-ins.
63
64 %prep
65 %setup -q -n gst-plugins-good-%{version}
66 %build
67 %configure \
68   --enable-debug \
69   --enable-DEBUG 
70
71 make %{?_smp_mflags}
72                                                                                 
73 %install
74 rm -rf $RPM_BUILD_ROOT
75
76 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
77 %makeinstall
78 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
79                                                                                 
80 # Clean out files that should not be part of the rpm.
81 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer-%{majorminor}/*.la
82 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer-%{majorminor}/*.a
83 rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
84 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
85 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer-%{majorminor}/libgstgdkpixbuf.so
86
87 %find_lang gst-plugins-good-%{majorminor}
88
89 %clean
90 rm -rf $RPM_BUILD_ROOT
91
92 %files -f gst-plugins-good-%{majorminor}.lang
93 %defattr(-, root, root)
94 %doc AUTHORS COPYING README REQUIREMENTS
95
96 # non-core plugins without external dependencies
97 %{_libdir}/gstreamer-%{majorminor}/libgstalaw.so
98 %{_libdir}/gstreamer-%{majorminor}/libgstalpha.so
99 %{_libdir}/gstreamer-%{majorminor}/libgstautodetect.so
100 %{_libdir}/gstreamer-%{majorminor}/libgstavi.so
101 %{_libdir}/gstreamer-%{majorminor}/libgsteffectv.so
102 %{_libdir}/gstreamer-%{majorminor}/libgstfdsrc.so
103 %{_libdir}/gstreamer-%{majorminor}/libgstgoom.so
104 %{_libdir}/gstreamer-%{majorminor}/libgstlevel.so
105 %{_libdir}/gstreamer-%{majorminor}/libgstmulaw.so
106 %{_libdir}/gstreamer-%{majorminor}/libgstrtp.so
107 %{_libdir}/gstreamer-%{majorminor}/libgstrtsp.so
108 %{_libdir}/gstreamer-%{majorminor}/libgstsmpte.so
109 # %{_libdir}/gstreamer-%{majorminor}/libgsttcp.so
110 %{_libdir}/gstreamer-%{majorminor}/libgstudp.so
111 %{_libdir}/gstreamer-%{majorminor}/libgstvideobox.so
112 %{_libdir}/gstreamer-%{majorminor}/libgstvideoflip.so
113 %{_libdir}/gstreamer-%{majorminor}/libgstwavenc.so
114 %{_libdir}/gstreamer-%{majorminor}/libgstwavparse.so
115
116 # gstreamer-plugins with external dependencies but in the main package
117 @USE_LIBCACA_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstcacasink.so
118 @USE_ESD_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstesd.so
119 @USE_FLAC_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstflac.so
120 @USE_JPEG_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstjpeg.so
121 # @USE_MIKMOD_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstmikmod.so
122 @USE_LIBPNG_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstpng.so
123 @USE_OSS_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstossaudio.so
124 ## @USE_RAW1394_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgst1394.so
125 # @USE_PANGO_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgsttextoverlay.so
126 # @USE_PANGO_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgsttimeoverlay.so
127 @USE_SPEEX_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstspeex.so
128 @USE_GCONF_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstgconfelements.so
129
130 # @USE_LADSPA_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstladspa.so
131 @USE_SHOUT2_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstshout2.so
132 @USE_AALIB_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstaasink.so
133 @USE_LIBDV_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstdv.so
134 @USE_DV1394_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgst1394.so
135
136 ## Libraries
137 %{_libdir}/libgstvideofilter-%{majorminor}.*
138
139 # schema files
140 @USE_GCONF_TRUE@%{_sysconfdir}/gconf/schemas/gstreamer-%{majorminor}.schemas
141
142 %post
143 @USE_GCONF_TRUE@export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
144 @USE_GCONF_TRUE@gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/gstreamer-%{majorminor}.schemas > /dev/null
145 %{register}
146
147 %postun
148 %{register}
149                                                                                
150 %changelog
151 * Fri Sep 02 2005 Thomas Vander Stichele <thomas at apestaart dot org>
152 - clean up for splitup
153
154 * Mon Feb 14 2005 Christian Schaller <christian at fluendo dot com>
155 - Add vnc plugin 
156
157 * Wed Jan 19 2005 Christian Schaller <christian at fluendo dot com>
158 - add dv1394 plugin
159
160 * Wed Dec 22 2004 Christian Schaller <christian at fluendo dot com>
161 - Add -plugins- to plugin names
162
163 * Thu Dec 9  2004 Christian Schaller <christian a fluendo dot com>
164 - Add the mms plugin
165
166 * Wed Oct 06 2004 Christian Schaller <christian at fluendo dot com>
167 - Add Wim's new mng decoder plugin
168 - add shout2 plugin for Zaheer, hope it is correctly done :)
169
170 * Wed Sep 29 2004 Christian Schaller <uraeus at gnome dot org>
171 - Fix USE statement for V4L2
172
173 * Thu Sep 28 2004 Christian Schaller <uraeus at gnome dot org>
174 - Remove kio plugin (as it was broken)
175
176 * Wed Sep 21 2004 Christian Schaller <uraeus at gnome dot org>
177 - Reorganize SPEC to fit better with fedora.us and freshrpms.net packages
178 - Make sure gstinterfaces.so is in the package
179 - Add all new plugins
180
181 * Mon Mar 15 2004 Thomas Vander Stichele <thomas at apestaart dot org>
182 - put back media-info
183 - add ffmpegcolorspace plugin
184
185 * Sun Mar 07 2004 Christian Schaller <Uraeus@gnome.org>
186 - Remove rm commands for media-info stuff
187 - Add libdir/*
188                                                                                 
189 * Thu Mar 04 2004 Christian Schaller <Uraeus@gnome.org>
190 - Add missing gconf schema install in %post
191
192 * Tue Mar 02 2004 Thomas Vander Stichele <thomas at apestaart dot org>
193 - Libraries/Multimedia doesn't exist, remove it
194
195 * Tue Mar 02 2004 Thomas Vander Stichele <thomas at apestaart dot org>
196 - added speex plugin.
197
198 * Mon Mar 01 2004 Thomas Vander Stichele <thomas at apestaart dot org>
199 - Cleaned up the mess.  Could we PLEASE keep this sort of organized and
200 - alphabetic for easy lookup ?
201
202 * Fri Feb 13 2004 Christian Schaller <Uraeus@gnome.org>
203 - Added latest new headers
204
205 * Wed Jan 21 2004 Christian Schaller <Uraeus@gnome.org>
206 - added NAS plugin
207 - added i18n locale dir
208
209 * Fri Jan 16 2004 Christian Schaller <uraeus@gnome.org>
210 - added libcaca plugin
211 - added libgstcolorspace - fixed name of libgsthermescolorspace
212
213 * Wed Jan 14 2004 Christian Schaller <uraeus@gnome.org>
214 - Add gamma plugin
215 - Have the pixbuf plugin deleted for now
216
217 * Wed Dec 18 2003 Christian Schaller <Uraeus@gnome.org>
218 - remove gsttagediting.h as it is gone
219 - replace it with gst/tag/tag.h
220
221 * Sun Nov 23 2003 Christian Schaller <Uraeus@gnome.org>
222 - Update spec file for latest changes
223 - add faad plugin
224
225 * Thu Oct 16 2003 Christian Schaller <Uraeus@gnome.org>
226 - Add new colorbalance and tuner and xoverlay stuff
227 - Change name of kde-audio-devel to arts-devel
228
229 * Sat Sep 27 2003 Christian Schaller <Uraeus@gnome.org>
230 - Add majorminor to man page names
231 - add navigation lib to package
232
233 * Tue Sep 11 2003 Christian Schaller <Uraeus@gnome.org>
234 - Add -%{majorminor} to each instance of gst-register
235
236 * Tue Aug 19 2003 Christian Schaller <Uraeus@Gnome.org>
237 - Add new plugins
238
239 * Sat Jul 12 2003 Thomas Vander Stichele <thomas at apestaart dot org>
240 - move gst/ mpeg plugins to base package
241 - remove hermes conditional from snapshot
242 - remove one instance of resample plugin
243 - fix up silly versioned plugins efence and rmdemux
244
245 * Sat Jul 05 2003 Christian Schaller <Uraeus@gnome.org>
246 - Major overhaul of SPEC file to make it compatible with what Red Hat ships
247   as default
248 - Probably a little less sexy, but cross-distro SPEC files are a myth anyway
249   so making it convenient for RH users wins out
250 - Keeping conditionals even with new re-org so that developers building the
251   RPMS don't need everything installed
252 - Add bunch of obsoletes to ease migration from earlier official GStreamer RPMS
253 - Remove plugins that doesn't exist anymore
254
255 * Sun Mar 02 2003 Christian Schaller <Uraeus@gnome.org>
256 - Remove USE_RTP statement from RTP plugin
257 - Move RTP plugin to no-deps section
258
259 * Sat Mar 01 2003 Christian Schaller <Uraeus@gnome.org>
260 - Remove videosink from SPEC
261 * Thu Jan 23 2003 Thomas Vander Stichele <thomas at apestaart dot org>
262 - various fixes
263 - make video output packages provide gstreamer-videosink
264
265 * Thu Jan 23 2003 Thomas Vander Stichele <thomas at apestaart dot org>
266 - split out ffmpeg stuff to separate plugin
267
268 * Fri Dec 27 2002 Thomas Vander Stichele <thomas at apestaart dot org>
269 - add virtual provides for audio sources and sinks
270
271 * Sun Dec 15 2002 Christian Schaller <Uraeus@linuxrising.org>
272 - Update mpeg2dec REQ to be 0.3.1
273
274 * Tue Dec 10 2002 Thomas Vander Stichele <thomas at apestaart dot org>
275 - only install schema once
276 - move out devel lib stuff to -devel package
277
278 * Sun Dec 08 2002 Thomas Vander Stichele <thomas at apestaart dot org>
279 - fix location of libgstpng
280 - changes for parallel installability
281
282 * Thu Nov 28 2002 Christian Schaller <Uraeus@linuxrising.org>
283 - Put in libgstpng plugin
284 - rm the libgstmedia-info stuff until thomas think they are ready
285
286 * Fri Nov 01 2002 Thomas Vander Stichele <thomas at apestaart dot org>
287 - don't use compprep until ABI issues can be fixed
288
289 * Wed Oct 30 2002 Thomas Vander Stichele <thomas at apestaart dot org>
290 - added smpte plugin
291 - split out dvdnavread package
292 - fixed snapshot deps and added hermes conditionals
293
294 * Tue Oct 29 2002 Thomas Vander Stichele <thomas at apestaart dot org>
295 - added -play package, libs, and .pc files
296
297 * Thu Oct 24 2002 Christian Schaller <Uraeus@linuxrising.org>
298 - Added wavenc to audio formats package
299
300 * Sat Oct 20 2002 Christian Scchaller <Uraeus@linuxrising.org>
301 - Removed all .la files
302 - added separate non-openquicktime demuxer plugin
303 - added snapshot plugin
304 - added videotest plugin
305 - Split avi plugin out to avi and windec plugins since aviplugin do not depend on avifile
306 - Added cdplayer plugin
307
308 * Fri Sep 20 2002 Thomas Vander Stichele <thomas@apestaart.org>
309 - added gst-compprep calls
310
311 * Wed Sep 18 2002 Thomas Vander Stichele <thomas@apestaart.org>
312 - add gst-register-%{majorminor} calls everywhere again since auto-reregister doesn't work
313 - added gstreamer-audio-formats to mad's requires since it needs the typefind
314   to work properly
315
316 * Mon Sep 9 2002 Christian Schaller <Uraeus@linuxrising.org>
317 - Added v4l2 plugin
318 * Thu Aug 27 2002 Christian Schaller <Uraeus@linuxrising.org>
319 - Fixed USE_DV_TRUE to USE_LIBDV_TRUE
320 - Added Gconf and floatcast headers to gstreamer-plugins-devel package
321 - Added mixmatrix plugin to audio-effects package
322
323 * Thu Jul 11 2002 Thomas Vander Stichele <thomas@apestaart.org>
324 - fixed oss package to buildrequire instead of require glibc headers
325
326 * Mon Jul 08 2002 Thomas Vander Stichele <thomas@apestaart.org>
327 - fixed -devel package group
328
329 * Fri Jul 05 2002 Thomas Vander Stichele <thomas@apestaart.org>
330 - release 0.4.0 !
331 - added gstreamer-libs.pc
332 - removed all gst-register-%{majorminor} calls since this should be done automatically now
333
334 * Thu Jul 04 2002 Thomas Vander Stichele <thomas@apestaart.org>
335 - fix issue with SDL package
336 - make all packages STRICTLY require the right version to avoid
337   ABI issues
338 - make gst-plugins obsolete gst-plugin-libs
339 - also send output of gst-register-%{majorminor} to /dev/null to lower the noise
340
341 * Wed Jul 03 2002 Thomas Vander Stichele <thomas@apestaart.org>
342 - require glibc-devel instead of glibc-kernheaders since the latter is only
343   since 7.3 and glibc-devel pulls in the right package anyway
344
345 * Sun Jun 23 2002 Thomas Vander Stichele <thomas@apestaart.org>
346 - changed header location of plug-in libs
347
348 * Mon Jun 17 2002 Thomas Vander Stichele <thomas@apestaart.org>
349 - major cleanups
350 - adding gst-register-%{majorminor} on postun everywhere
351 - remove ldconfig since we don't actually install libs in system dirs
352 - removed misc package
353 - added video-effects
354 - dot every Summary
355 - uniformify all descriptions a little
356
357 * Thu Jun 06 2002 Thomas Vander Stichele <thomas@apestaart.org>
358 - various BuildRequires: additions
359
360 * Tue Jun 04 2002 Thomas Vander Stichele <thomas@apestaart.org>
361 - added USE_LIBADSPA_TRUE bits to ladspa package
362
363 * Mon Jun 03 2002 Thomas Vander Stichele <thomas@apestaart.org>
364 - Added libfame package
365
366 * Mon May 12 2002 Christian Fredrik Kalager Schaller <Uraeus@linuxrising.org>
367 - Added jack, dxr3, http packages
368 - Added visualisation plug-ins, effecttv and synaesthesia
369 - Created devel package
370 - Removed gstreamer-plugins-libs package (moved it into gstreamer-plugins)
371 - Replaced prefix/dirname with _macros
372
373 * Mon May 06 2002 Thomas Vander Stichele <thomas@apestaart.org>
374 - added gstreamer-GConf package
375
376 * Wed Mar 13 2002 Thomas Vander Stichele <thomas@apestaart.org>
377 - added more BuildRequires and Requires
378 - rearranged some plug-ins
379 - added changelog ;)