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