fix spec file. fixes 150262
[platform/upstream/gstreamer.git] / gstreamer.spec.in
1 Name:           gstreamer
2 Version:        @VERSION@
3 Release:        @GST_VERSION_RELEASE@
4 Summary:        GStreamer streaming media framework runtime.
5
6 Group:          Libraries/Multimedia
7 License:        LGPL
8 URL:            http://gstreamer.net/
9 Vendor:         GStreamer Backpackers Team <package@gstreamer.net>
10 Source:         http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-%{version}.tar.gz
11 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
12
13 %define         majorminor      @GST_MAJORMINOR@
14 %define         _glib2          @GLIB2_REQ@
15 %define         _libxml2        @LIBXML2_REQ@
16
17 Requires:       glib2 >= %_glib2
18 Requires:       libxml2 >= %_libxml2
19 Requires:       popt > 1.6
20
21 # Provides:     gstreamer =%{version}-%{release}
22
23 BuildRequires:  glib2-devel >= %_glib2
24 BuildRequires:  libxml2-devel >= %_libxml2
25 BuildRequires:  bison
26 BuildRequires:  flex
27 BuildRequires:  m4
28 BuildRequires:  gtk-doc >= 1.1
29 BuildRequires:  gcc
30 BuildRequires:  gettext
31 BuildRequires:  zlib-devel
32 BuildRequires:  popt > 1.6
33 Prereq:         /sbin/ldconfig
34
35 ### documentation requirements
36 BuildRequires:  python2
37 BuildRequires:  openjade
38 BuildRequires:  jadetex
39 BuildRequires:  libxslt
40 BuildRequires:  docbook-style-dsssl
41 BuildRequires:  docbook-style-xsl
42 BuildRequires:  docbook-utils
43 BuildRequires:  transfig
44 BuildRequires:  xfig
45 BuildRequires:  netpbm-progs
46 BuildRequires:  ghostscript
47
48 %description
49 GStreamer is a streaming-media framework, based on graphs of filters which
50 operate on media data. Applications using this library can do anything
51 from real-time sound processing to playing videos, and just about anything
52 else media-related.  Its plugin-based architecture means that new data
53 types or processing capabilities can be added simply by installing new 
54 plugins.
55
56 %package devel
57 Summary:        Libraries/include files for GStreamer streaming media framework.
58 Group:          Development/Libraries
59
60 Requires:       %{name} = %{version}-%{release}
61 Requires:       glib2-devel >= %_glib2
62 Requires:       libxml2-devel >= %_libxml2
63 Provides:       gstreamer-devel = %{version}-%{release}
64
65 %description devel
66 GStreamer is a streaming-media framework, based on graphs of filters which
67 operate on media data. Applications using this library can do anything
68 from real-time sound processing to playing videos, and just about anything
69 else media-related.  Its plugin-based architecture means that new data
70 types or processing capabilities can be added simply by installing new   
71 plugins.
72
73 This package contains the libraries and includes files necessary to develop
74 applications and plugins for GStreamer.
75
76 %package -n gstreamer-tools
77 Summary:        tools for GStreamer streaming media framework.
78 Group:          Libraries/Multimedia
79
80 %description -n gstreamer-tools
81 GStreamer is a streaming-media framework, based on graphs of filters which
82 operate on media data. Applications using this library can do anything
83 from real-time sound processing to playing videos, and just about anything
84 else media-related.  Its plugin-based architecture means that new data
85 types or processing capabilities can be added simply by installing new   
86 plugins.
87
88 This package contains wrapper scripts for the command-line tools that work
89 with different major/minor versions of GStreamer.
90                                                                                 
91 %prep
92 %setup -n gstreamer-%{version}
93
94 %build
95 %configure \
96   --enable-debug \
97   --with-cachedir=%{_localstatedir}/cache/gstreamer-%{majorminor} \
98   --disable-tests --disable-examples --disable-docs-build
99                                                                                 
100 make %{?_smp_mflags}
101
102 %install  
103 rm -rf $RPM_BUILD_ROOT
104
105 # build documentation to a different location so it doesn't end up in
106 # a gstreamer-devel-(version) dir and doesn't get deleted by %doc scripts
107 %makeinstall docdir=$RPM_BUILD_ROOT%{_datadir}/gstreamer-%{majorminor}/doc
108                                                                                 
109 %find_lang gstreamer-%{majorminor}
110 # Clean out files that should not be part of the rpm.
111 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer-%{majorminor}/*.la
112 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer-%{majorminor}/*.a
113 rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
114 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
115 # Create empty cache directory
116 mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/cache/gstreamer-%{majorminor}
117                                                                                 
118 %clean
119 rm -rf $RPM_BUILD_ROOT
120
121 %post
122 /sbin/ldconfig
123 %{_bindir}/gst-register-%{majorminor} > /dev/null 2> /dev/null
124
125 %postun
126 /sbin/ldconfig
127
128 %files -f gstreamer-%{majorminor}.lang
129 %defattr(-, root, root, -)
130 %doc AUTHORS COPYING NEWS README TODO RELEASE
131 %doc ABOUT-NLS REQUIREMENTS DOCBUILDING
132 %{_libdir}/libgstreamer-%{majorminor}.so.*
133 %{_libdir}/libgstcontrol-%{majorminor}.so.*
134 %dir %{_libdir}/gstreamer-%{majorminor}
135 %{_libdir}/gstreamer-%{majorminor}/libgstbasicomega*.so*
136 %{_libdir}/gstreamer-%{majorminor}/libgstoptscheduler.so*
137 %{_libdir}/gstreamer-%{majorminor}/libgstoptomega*.so*
138 %{_libdir}/gstreamer-%{majorminor}/libgstbasicgthreadscheduler*.so
139 %{_libdir}/gstreamer-%{majorminor}/libgstoptgthreadscheduler*.so
140 %{_libdir}/gstreamer-%{majorminor}/libgstelements*.so*
141 %{_libdir}/gstreamer-%{majorminor}/libgstgetbits*.so*
142 %{_libdir}/gstreamer-%{majorminor}/libgstspider*.so*
143 %{_libdir}/gstreamer-%{majorminor}/libgstindexers.so*
144 %{_libdir}/gstreamer-%{majorminor}/libgstbytestream.so*
145 %{_libdir}/gstreamer-%{majorminor}/libgstdataprotocol.so*
146 %{_libdir}/gstreamer-%{majorminor}/libgstentrygthreadscheduler.so*
147 %{_libdir}/gstreamer-%{majorminor}/libgstentryomegascheduler.so*
148 %{_bindir}/gst-xmlinspect-%{majorminor}
149 %{_bindir}/gst-complete-%{majorminor}
150 %{_bindir}/gst-compprep-%{majorminor}
151 %{_bindir}/gst-inspect-%{majorminor}
152 %{_bindir}/gst-launch-%{majorminor}
153 %{_bindir}/gst-md5sum-%{majorminor}
154 %{_bindir}/gst-register-%{majorminor}
155 %{_bindir}/gst-xmllaunch-%{majorminor}
156 %{_bindir}/gst-typefind-%{majorminor}
157 %{_bindir}/gst-feedback*
158 %{_mandir}/man1/gst-xmlinspect-%{majorminor}.*
159 %{_mandir}/man1/gst-xmllaunch-%{majorminor}.*
160 %{_mandir}/man1/gst-complete-%{majorminor}.*
161 %{_mandir}/man1/gst-compprep-%{majorminor}.*
162 %{_mandir}/man1/gst-inspect-%{majorminor}.*
163 %{_mandir}/man1/gst-launch-%{majorminor}.*
164 %{_mandir}/man1/gst-md5sum-%{majorminor}.*
165 %{_mandir}/man1/gst-register-%{majorminor}.*
166 %{_mandir}/man1/gst-typefind-%{majorminor}.*
167 %{_mandir}/man1/gst-feedback-%{majorminor}.*
168 %dir %{_localstatedir}/cache/gstreamer-%{majorminor}
169
170 %files -n gstreamer-tools
171 %defattr(-, root, root, -)
172 %{_bindir}/gst-complete
173 %{_bindir}/gst-compprep
174 %{_bindir}/gst-feedback
175 %{_bindir}/gst-inspect
176 %{_bindir}/gst-launch
177 %{_bindir}/gst-md5sum
178 %{_bindir}/gst-register
179 %{_bindir}/gst-typefind
180 %{_bindir}/gst-xmlinspect
181 %{_bindir}/gst-xmllaunch
182
183 %files devel
184 %defattr(-, root, root, -)
185 %dir %{_includedir}/gstreamer-%{majorminor}
186 %dir %{_includedir}/gstreamer-%{majorminor}/gst
187 %{_includedir}/gstreamer-%{majorminor}/gst/*.h
188 %dir %{_includedir}/gstreamer-%{majorminor}/gst/control
189 %{_includedir}/gstreamer-%{majorminor}/gst/control/*.h
190 %dir %{_includedir}/gstreamer-%{majorminor}/gst/getbits
191 %{_includedir}/gstreamer-%{majorminor}/gst/getbits/getbits.h
192 %{_includedir}/gstreamer-%{majorminor}/gst/bytestream/*.h
193 %{_includedir}/gstreamer-%{majorminor}/gst/dataprotocol/dataprotocol.h
194 %{_libdir}/libgstreamer-%{majorminor}.so
195 %{_libdir}/libgstcontrol-%{majorminor}.so
196 %{_datadir}/aclocal/gst-element-check-%{majorminor}.m4
197 %{_libdir}/pkgconfig/gstreamer-%{majorminor}.pc
198 %{_libdir}/pkgconfig/gstreamer-control-%{majorminor}.pc
199                                                                                 
200 %doc %{_datadir}/gtk-doc/html/gstreamer-%{majorminor}
201 %doc %{_datadir}/gtk-doc/html/gstreamer-libs-%{majorminor}
202                                                                                 
203 %changelog
204 * Thu Feb 12 2004 Thomas Vander Stichele <thomas at apestaart dot org>
205 - sync with 0.7.4 fedora spec
206
207 * Thu Feb 05 2004 Thomas Vander Stichele <thomas at apestaart dot org>
208 - bump gtk-doc required version to 1.0 for the new options used
209
210 * Wed Feb 04 2004 Thomas Vander Stichele <thomas at apestaart dot org>
211 - add -common package containing frontend wrapper binaries
212
213 * Mon Dec 01 2003 Thomas Vander Stichele <thomas at apestaart dot org>
214 - changed documentation buildrequires
215
216 * Sun Nov 09 2003 Christian Schaller <Uraeus@gnome.org>
217 - Fix spec to handle new bytestream library 
218
219 * Sun Aug 17 2003 Christian Schaller <uraeus@gnome.org>
220 - Remove docs build from RPM as the build is broken
221 - Fix stuff since more files are versioned now
222 - Remove wingo schedulers
223 - Remove putbits stuff
224
225 * Sun May 18 2003 Thomas Vander Stichele <thomas at apestaart dot org>
226 - devhelp files are now generated by gtk-doc, changed accordingly
227
228 * Sun Mar 16 2003 Christian F.K. Schaller <Uraeus@gnome.org>
229 - Add gthread scheduler
230
231 * Sat Dec 07 2002 Thomas Vander Stichele <thomas at apestaart dot org>
232 - define majorminor and use it everywhere
233 - full parallel installability
234
235 * Tue Nov 05 2002 Christian Schaller <Uraeus@linuxrising.org>
236 - Add optwingo scheduler
237 * Sat Oct 12 2002 Christian Schaller <Uraeus@linuxrising.org>
238 - Updated to work better with default RH8 rpm
239 - Added missing unspeced files
240 - Removed .a and .la files from buildroot
241
242 * Sat Sep 21 2002 Thomas Vander Stichele <thomas@apestaart.org>
243 - added gst-md5sum
244
245 * Tue Sep 17 2002 Thomas Vander Stichele <thomas@apestaart.org>
246 - adding flex to buildrequires
247
248 * Fri Sep 13 2002 Christian F.K. Schaller <Uraeus@linuxrising.org>
249 - Fixed the schedulers after the renaming
250 * Sun Sep 08 2002 Thomas Vander Stichele <thomas@apestaart.org>
251 - added transfig to the BuildRequires:
252
253 * Sat Jun 22 2002 Thomas Vander Stichele <thomas@apestaart.org>
254 - moved header location
255
256 * Mon Jun 17 2002 Thomas Vander Stichele <thomas@apestaart.org>
257 - added popt
258 - removed .la
259
260 * Fri Jun 07 2002 Thomas Vander Stichele <thomas@apestaart.org>
261 - added release of gstreamer to req of gstreamer-devel
262 - changed location of API docs to be in gtk-doc like other gtk-doc stuff
263 - reordered SPEC file
264
265 * Mon Apr 29 2002 Thomas Vander Stichele <thomas@apestaart.org>
266 - moved html docs to gtk-doc standard directory
267
268 * Tue Mar 5 2002 Thomas Vander Stichele <thomas@apestaart.org>
269 - move version defines of glib2 and libxml2 to configure.ac
270 - add BuildRequires for these two libs
271
272 * Sun Mar 3 2002 Thomas Vander Stichele <thomas@apestaart.org>
273 - put html docs in canonical place, avoiding %doc erasure
274 - added devhelp support, current install of it is hackish
275
276 * Sat Mar 2 2002 Christian Schaller <Uraeus@linuxrising.org>
277 - Added documentation to build
278
279 * Mon Feb 11 2002 Thomas Vander Stichele <thomas@apestaart.org>
280 - added libgstbasicscheduler
281 - renamed libgst to libgstreamer
282
283 * Fri Jan 04 2002 Christian Schaller <Uraeus@linuxrising.org>
284 - Added configdir parameter as it seems the configdir gets weird otherwise
285
286 * Thu Jan 03 2002 Thomas Vander Stichele <thomas@apestaart.org>
287 - split off gstreamer-editor from core
288 - removed gstreamer-gnome-apps
289
290 * Sat Dec 29 2001 Rodney Dawes <dobey@free.fr>
291 - Cleaned up the spec file for the gstreamer core/plug-ins split
292 - Improve spec file
293
294 * Sat Dec 15 2001 Christian Schaller <Uraeus@linuxrising.org>
295 - Split of more plugins from the core and put them into their own modules
296 - Includes colorspace, xfree and wav
297 - Improved package Require lines
298 - Added mp3encode (lame based) to the SPEC
299
300 * Wed Dec 12 2001 Christian Schaller <Uraeus@linuxrising.org>
301 - Thomas merged mpeg plugins into one
302 * Sat Dec 08 2001 Christian Schaller <Uraeus@linuxrising.org>
303 - More minor cleanups including some fixed descriptions from Andrew Mitchell
304
305 * Fri Dec 07 2001 Christian Schaller <Uraeus@linuxrising.org>
306 - Added logging to the make statement
307
308 * Wed Dec 05 2001 Christian Schaller <Uraeus@linuxrising.org>
309 - Updated in preparation for 0.3.0 release
310
311 * Fri Jun 29 2001 Christian Schaller <Uraeus@linuxrising.org>
312 - Updated for 0.2.1 release
313 - Split out the GUI packages into their own RPM
314 - added new plugins (FLAC, festival, quicktime etc.)
315
316 * Sat Jun 09 2001 Christian Schaller <Uraeus@linuxrising.org>
317 - Visualisation plugins bundled out togheter
318 - Moved files sections up close to their respective descriptions
319
320 * Sat Jun 02 2001 Christian Schaller <Uraeus@linuxrising.org>
321 - Split the package into separate RPMS, 
322   putting most plugins out by themselves.
323
324 * Fri Jun 01 2001 Christian Schaller <Uraeus@linuxrising.org>
325 - Updated with change suggestions from Dennis Bjorklund
326
327 * Tue Jan 09 2001 Erik Walthinsen <omega@cse.ogi.edu>
328 - updated to build -devel package as well
329
330 * Sun Jan 30 2000 Erik Walthinsen <omega@cse.ogi.edu>
331 - first draft of spec file
332