update for latest changes
[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.net/releases/%{version}/src/%{name}-%{version}.tar.gz
11 BuildRoot:      %{_tmppath}/%{name}-%{version}-root
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 Prereq:         %{name}-tools >= %{version}
21 BuildRequires:  glib2-devel >= %_glib2
22 BuildRequires:  libxml2-devel >= %_libxml2
23 BuildRequires:  bison
24 BuildRequires:  flex
25 BuildRequires:  gtk-doc >= 0.7
26 BuildRequires:  gcc
27 BuildRequires:  zlib-devel
28 BuildRequires:  popt > 1.6
29 Prereq:         /sbin/ldconfig
30
31 ### documentation requirements
32 BuildRequires:  openjade
33 BuildRequires:  python2
34 BuildRequires:  docbook-style-dsssl docbook-dtd31-sgml
35 BuildRequires:  transfig xfig
36
37 %description
38 GStreamer is a streaming-media framework, based on graphs of filters which
39 operate on media data. Applications using this library can do anything
40 from real-time sound processing to playing videos, and just about anything
41 else media-related.  Its plugin-based architecture means that new data
42 types or processing capabilities can be added simply by installing new 
43 plugins.
44
45 %package devel
46 Summary:        Libraries/include files for GStreamer streaming media framework.
47 Group:          Development/Libraries
48
49 Requires:       %{name} = %{version}-%{release}
50 Requires:       glib2-devel >= %_glib2
51 Requires:       libxml2-devel >= %_libxml2
52
53 %description devel
54 GStreamer is a streaming-media framework, based on graphs of filters which
55 operate on media data. Applications using this library can do anything
56 from real-time sound processing to playing videos, and just about anything
57 else media-related.  Its plugin-based architecture means that new data
58 types or processing capabilities can be added simply by installing new   
59 plugins.
60
61 This package contains the libraries and includes files necessary to develop
62 applications and plugins for GStreamer.
63
64 %package tools
65 Summary:        tools for GStreamer streaming media framework.
66 Group:          Libraries/Multimedia
67
68 %description tools
69 GStreamer is a streaming-media framework, based on graphs of filters which
70 operate on media data. Applications using this library can do anything
71 from real-time sound processing to playing videos, and just about anything
72 else media-related.  Its plugin-based architecture means that new data
73 types or processing capabilities can be added simply by installing new   
74 plugins.
75
76 This package contains the basic command-line tools used for GStreamer, like
77 gst-register and gst-launch.  It is split off to allow parallel-installability
78 in the future.
79
80 %prep
81 %setup
82
83 %build
84 CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
85 CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
86 FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \
87 %{?__libtoolize:[ -f configure.in ] && %{__libtoolize} --copy --force} ; \
88 ./configure \
89   --prefix=%{_prefix} \
90   --exec-prefix=%{_exec_prefix} \
91   --bindir=%{_bindir} \
92   --sbindir=%{_sbindir} \
93   --sysconfdir=%{_sysconfdir} \
94   --datadir=%{_datadir} \
95   --includedir=%{_includedir} \
96   --libdir=%{_libdir} \
97   --libexecdir=%{_libexecdir} \
98   --localstatedir=%{_localstatedir} \
99   --sharedstatedir=%{_sharedstatedir} \
100   --mandir=%{_mandir} \
101   --infodir=%{_infodir} \
102   --enable-debug \
103   --with-cachedir=%{_localstatedir}/cache/gstreamer-%{majorminor} \
104   --disable-tests --disable-examples \
105   --enable-docs-build --with-html-dir=$RPM_BUILD_ROOT%{_datadir}/gtk-doc/html
106
107 if [ "$SMP" != "" ]; then
108   (make "MAKE=make -k -j $SMP"; exit 0)
109 else
110   make
111 fi
112
113 %install  
114 [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
115 # adding devhelp stuff here for now, need to integrate better
116 # when devhelp allows it
117 mkdir -p $RPM_BUILD_ROOT/usr/share/devhelp/specs
118 cp $RPM_BUILD_DIR/%{name}-%{version}/docs/devhelp/*.devhelp $RPM_BUILD_ROOT/usr/share/devhelp/specs
119
120 %makeinstall
121 # Clean out files that should not be part of the rpm. 
122 # This is the recommended way of dealing with it for RH8
123 mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/cache/gstreamer-%{majorminor}
124 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}-%{majorminor}/*.la
125 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}-%{majorminor}/*.a
126 rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
127 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
128
129 %clean
130 [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
131
132 %post
133 /sbin/ldconfig
134 %{_bindir}/gst-register --gst-mask=0 > /dev/null 2> /dev/null
135
136 %post devel
137 # adding devhelp links to work around different base not working
138 mkdir -p %{_datadir}/devhelp/books
139 ln -sf %{_datadir}/gtk-doc/html/gstreamer %{_datadir}/devhelp/books
140 ln -sf %{_datadir}/gtk-doc/html/gstreamer-libs %{_datadir}/devhelp/books
141
142 %postun
143 /sbin/ldconfig
144
145 %files
146 %defattr(-, root, root)
147 %doc AUTHORS COPYING README TODO COPYING.LIB ABOUT-NLS REQUIREMENTS DOCBUILDING RELEASE 
148 %{_libdir}/libgstreamer-%{majorminor}.so.*
149 %{_libdir}/libgstcontrol-%{majorminor}.so.*
150 %dir %{_libdir}/gstreamer-%{majorminor}
151 %dir %{_localstatedir}/cache/gstreamer-%{majorminor}
152 %{_libdir}/gstreamer-%{majorminor}/libgstautoplugcache*.so*
153 %{_libdir}/gstreamer-%{majorminor}/libgstautoplugger*.so*
154 %{_libdir}/gstreamer-%{majorminor}/libgstbasicomega*.so*
155 %{_libdir}/gstreamer-%{majorminor}/libgstfastomega*.so*
156 %{_libdir}/gstreamer-%{majorminor}/libgstoptomega*.so*
157 %{_libdir}/gstreamer-%{majorminor}/libgstbasicwingo*.so*
158 %{_libdir}/gstreamer-%{majorminor}/libgstfastwingo*.so*
159 %{_libdir}/gstreamer-%{majorminor}/libgstoptwingoscheduler*.so
160 %{_libdir}/gstreamer-%{majorminor}/libgstelements*.so*
161 %{_libdir}/gstreamer-%{majorminor}/libgsttypes*.so*
162 %{_libdir}/gstreamer-%{majorminor}/libgststaticautoplug*.so*
163 %{_libdir}/gstreamer-%{majorminor}/libgstbytestream*.so*
164 %{_libdir}/gstreamer-%{majorminor}/libgstgetbits*.so*
165 %{_libdir}/gstreamer-%{majorminor}/libgstputbits*.so*
166 %{_libdir}/gstreamer-%{majorminor}/libgstspider*.so*
167 %{_libdir}/gstreamer-%{majorminor}/libgstindexers.so
168
169 %files tools
170 %{_bindir}/gst-complete
171 %{_bindir}/gst-compprep
172 %{_bindir}/gst-inspect
173 %{_bindir}/gst-launch
174 %{_bindir}/gst-md5sum
175 %{_bindir}/gst-register
176 %{_bindir}/gst-feedback
177 %{_bindir}/gst-xmllaunch
178 %{_mandir}/man1/gst-feedback.*
179 %{_mandir}/man1/gst-xmllaunch.*
180 %{_mandir}/man1/gst-complete.*
181 %{_mandir}/man1/gst-compprep.*
182 %{_mandir}/man1/gst-inspect.*
183 %{_mandir}/man1/gst-launch.*
184 %{_mandir}/man1/gst-md5sum.*
185 %{_mandir}/man1/gst-register.*
186
187
188 %files devel
189 %defattr(-, root, root)
190 %dir %{_includedir}/%{name}-%{majorminor}
191 %dir %{_includedir}/%{name}-%{majorminor}/gst
192 %{_includedir}/%{name}-%{majorminor}/gst/*.h
193 %dir %{_includedir}/%{name}-%{majorminor}/gst/control
194 %{_includedir}/%{name}-%{majorminor}/gst/control/*.h
195 %dir %{_includedir}/%{name}-%{majorminor}/gst/bytestream
196 %{_includedir}/%{name}-%{majorminor}/gst/bytestream/bytestream.h
197 %dir %{_includedir}/%{name}-%{majorminor}/gst/getbits
198 %{_includedir}/%{name}-%{majorminor}/gst/getbits/getbits.h
199 %dir %{_includedir}/%{name}-%{majorminor}/gst/putbits
200 %{_includedir}/%{name}-%{majorminor}/gst/putbits/putbits.h
201 # %{_libdir}/libgstreamer.a
202 %{_libdir}/libgstreamer-%{majorminor}.so
203 %{_libdir}/libgstcontrol-%{majorminor}.so
204 %{_libdir}/pkgconfig/gstreamer-%{majorminor}.pc
205 ## we specify the API docs as regular files since %docs doesn't fail when
206 #  files aren't found anymore for RPM >= 4
207 #  we list all of the files we really need to trap incomplete doc builds
208 #  then we catch the rest with *, you can safely ignore the errors from this
209 ## gstreamer API
210 %dir %{_datadir}/gtk-doc/html/%{name}-%{majorminor}
211 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/autopluggers.html
212 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/book1.html
213 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/element-types.html
214 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gstautoplugfactory.html
215 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gstautoplug.html
216 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gstbin.html
217 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gstclock.html
218 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gstelement.html
219 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gst-index.html
220 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gstobject.html
221 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gstpad.html
222 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gstpipeline.html
223 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gstpluginfeature.html
224 # %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gstreamer-cothreads.html
225 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gstreamer-gstbuffer.html
226 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gstreamer-gstbufferpool.html
227 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gstreamer-gstcaps.html
228 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gstreamer-gstcpu.html
229 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gstreamer-gstdata.html
230 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gstreamer-gstevent.html
231 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gstreamer-gst.html
232 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gstreamer-gstinfo.html
233 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gstreamer-gstparse.html
234 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gstreamer-gstplugin.html
235 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gstreamer-gstprops.html
236 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gstreamer-gststaticautoplug.html
237 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gstreamer-gststaticautoplugrender.html
238 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gstreamer-gsttype.html
239 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gstreamer-gstutils.html
240 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gstreamer.html
241 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gstschedulerfactory.html
242 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gstscheduler.html
243 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gstthread.html
244 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gsttypefactory.html
245 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gstxml.html
246 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/index.sgml
247 ## gstreamer-libs API
248 %dir %{_datadir}/gtk-doc/html/%{name}-libs-%{majorminor}
249 %{_datadir}/gtk-doc/html/%{name}-libs-%{majorminor}/book1.html
250 %{_datadir}/gtk-doc/html/%{name}-libs-%{majorminor}/%{name}-libs-gstcolorspace.html
251 %{_datadir}/gtk-doc/html/%{name}-libs-%{majorminor}/%{name}-libs-gstgetbits.html
252 %{_datadir}/gtk-doc/html/%{name}-libs-%{majorminor}/%{name}-libs.html
253 %{_datadir}/gtk-doc/html/%{name}-libs-%{majorminor}/index.sgml
254 ## this catches all of the rest of the docs we might have forgotten
255 %{_datadir}/gtk-doc/html/*
256 %{_datadir}/devhelp/specs/%{name}-%{majorminor}.devhelp
257 %{_datadir}/devhelp/specs/%{name}-libs-%{majorminor}.devhelp
258
259
260 %changelog
261 * Sat Dec 07 2002 Thomas Vander Stichele <thomas at apestaart dot org>
262 - define majorminor and use it everywhere
263 - full parallel installability
264
265 * Tue Nov 05 2002 Christian Schaller <Uraeus@linuxrising.org>
266 - Add optwingo scheduler
267 * Sat Oct 12 2002 Christian Schaller <Uraeus@linuxrising.org>
268 - Updated to work better with default RH8 rpm
269 - Added missing unspeced files
270 - Removed .a and .la files from buildroot
271
272 * Sat Sep 21 2002 Thomas Vander Stichele <thomas@apestaart.org>
273 - added gst-md5sum
274
275 * Tue Sep 17 2002 Thomas Vander Stichele <thomas@apestaart.org>
276 - adding flex to buildrequires
277
278 * Fri Sep 13 2002 Christian F.K. Schaller <Uraeus@linuxrising.org>
279 - Fixed the schedulers after the renaming
280 * Sun Sep 08 2002 Thomas Vander Stichele <thomas@apestaart.org>
281 - added transfig to the BuildRequires:
282
283 * Sat Jun 22 2002 Thomas Vander Stichele <thomas@apestaart.org>
284 - moved header location
285
286 * Mon Jun 17 2002 Thomas Vander Stichele <thomas@apestaart.org>
287 - added popt
288 - removed .la
289
290 * Fri Jun 07 2002 Thomas Vander Stichele <thomas@apestaart.org>
291 - added release of gstreamer to req of gstreamer-devel
292 - changed location of API docs to be in gtk-doc like other gtk-doc stuff
293 - reordered SPEC file
294
295 * Mon Apr 29 2002 Thomas Vander Stichele <thomas@apestaart.org>
296 - moved html docs to gtk-doc standard directory
297
298 * Tue Mar 5 2002 Thomas Vander Stichele <thomas@apestaart.org>
299 - move version defines of glib2 and libxml2 to configure.ac
300 - add BuildRequires for these two libs
301
302 * Sun Mar 3 2002 Thomas Vander Stichele <thomas@apestaart.org>
303 - put html docs in canonical place, avoiding %doc erasure
304 - added devhelp support, current install of it is hackish
305
306 * Sat Mar 2 2002 Christian Schaller <Uraeus@linuxrising.org>
307 - Added documentation to build
308
309 * Mon Feb 11 2002 Thomas Vander Stichele <thomas@apestaart.org>
310 - added libgstbasicscheduler
311 - renamed libgst to libgstreamer
312
313 * Fri Jan 04 2002 Christian Schaller <Uraeus@linuxrising.org>
314 - Added configdir parameter as it seems the configdir gets weird otherwise
315
316 * Thu Jan 03 2002 Thomas Vander Stichele <thomas@apestaart.org>
317 - split off gstreamer-editor from core
318 - removed gstreamer-gnome-apps
319
320 * Sat Dec 29 2001 Rodney Dawes <dobey@free.fr>
321 - Cleaned up the spec file for the gstreamer core/plug-ins split
322 - Improve spec file
323
324 * Sat Dec 15 2001 Christian Schaller <Uraeus@linuxrising.org>
325 - Split of more plugins from the core and put them into their own modules
326 - Includes colorspace, xfree and wav
327 - Improved package Require lines
328 - Added mp3encode (lame based) to the SPEC
329
330 * Wed Dec 12 2001 Christian Schaller <Uraeus@linuxrising.org>
331 - Thomas merged mpeg plugins into one
332 * Sat Dec 08 2001 Christian Schaller <Uraeus@linuxrising.org>
333 - More minor cleanups including some fixed descriptions from Andrew Mitchell
334
335 * Fri Dec 07 2001 Christian Schaller <Uraeus@linuxrising.org>
336 - Added logging to the make statement
337
338 * Wed Dec 05 2001 Christian Schaller <Uraeus@linuxrising.org>
339 - Updated in preparation for 0.3.0 release
340
341 * Fri Jun 29 2001 Christian Schaller <Uraeus@linuxrising.org>
342 - Updated for 0.2.1 release
343 - Split out the GUI packages into their own RPM
344 - added new plugins (FLAC, festival, quicktime etc.)
345
346 * Sat Jun 09 2001 Christian Schaller <Uraeus@linuxrising.org>
347 - Visualisation plugins bundled out togheter
348 - Moved files sections up close to their respective descriptions
349
350 * Sat Jun 02 2001 Christian Schaller <Uraeus@linuxrising.org>
351 - Split the package into separate RPMS, 
352   putting most plugins out by themselves.
353
354 * Fri Jun 01 2001 Christian Schaller <Uraeus@linuxrising.org>
355 - Updated with change suggestions from Dennis Bjorklund
356
357 * Tue Jan 09 2001 Erik Walthinsen <omega@cse.ogi.edu>
358 - updated to build -devel package as well
359
360 * Sun Jan 30 2000 Erik Walthinsen <omega@cse.ogi.edu>
361 - first draft of spec file
362