ignore file
[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
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-feedback-%{majorminor}
182 %{_bindir}/gst-xmllaunch-%{majorminor}
183 %{_bindir}/gst-typefind-%{majorminor}
184 %{_mandir}/man1/gst-feedback-%{majorminor}.* 
185 %{_mandir}/man1/gst-xmllaunch-%{majorminor}.*
186 %{_mandir}/man1/gst-complete-%{majorminor}.*
187 %{_mandir}/man1/gst-compprep-%{majorminor}.*
188 %{_mandir}/man1/gst-inspect-%{majorminor}.*
189 %{_mandir}/man1/gst-launch-%{majorminor}.*
190 %{_mandir}/man1/gst-md5sum-%{majorminor}.*
191 %{_mandir}/man1/gst-register-%{majorminor}.*
192
193 %files common
194 %defattr(-, root, root, -)
195 %{_bindir}/gst-xmlinspect
196 %{_bindir}/gst-complete
197 %{_bindir}/gst-compprep
198 %{_bindir}/gst-inspect
199 %{_bindir}/gst-launch
200 %{_bindir}/gst-md5sum
201 %{_bindir}/gst-register
202 %{_bindir}/gst-feedback
203 %{_bindir}/gst-xmllaunch
204 %{_bindir}/gst-typefind
205
206 %files devel
207 %defattr(-, root, root, -)
208 %dir %{_includedir}/%{name}-%{majorminor}
209 %dir %{_includedir}/%{name}-%{majorminor}/gst
210 %{_includedir}/%{name}-%{majorminor}/gst/*.h
211 %dir %{_includedir}/%{name}-%{majorminor}/gst/control
212 %{_includedir}/%{name}-%{majorminor}/gst/control/*.h
213 %dir %{_includedir}/%{name}-%{majorminor}/gst/getbits
214 %{_includedir}/%{name}-%{majorminor}/gst/getbits/getbits.h
215 %{_includedir}/%{name}-%{majorminor}/gst/bytestream/bytestream.h
216 # %{_libdir}/libgstreamer.a
217 %{_libdir}/libgstreamer-%{majorminor}.so
218 %{_libdir}/libgstcontrol-%{majorminor}.so
219 %{_datadir}/aclocal/gst-element-check-%{majorminor}.m4
220 %{_libdir}/pkgconfig/gstreamer-%{majorminor}.pc
221 %{_libdir}/pkgconfig/gstreamer-control-%{majorminor}.pc
222 ## we specify the API docs as regular files since %docs doesn't fail when
223 #  files aren't found anymore for RPM >= 4
224 #  we list all of the files we really need to trap incomplete doc builds
225 #  then we catch the rest with *, you can safely ignore the errors from this
226 ## gstreamer API
227 # %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/%{name}-%{majorminor}.devhelp
228 # %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/element-types.html
229 # %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gstreamer.html
230 %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/*
231 ## gstreamer-libs API
232 # %dir %{_datadir}/gtk-doc/html/%{name}-libs-%{majorminor}
233 %{_datadir}/gtk-doc/html/%{name}-libs-%{majorminor}/*
234 ## this catches all of the rest of the docs we might have forgotten
235 # %{_datadir}/gtk-doc/html/*
236
237
238 %changelog
239 * Wed Feb 04 2004 Thomas Vander Stichele <thomas at apestaart dot org>
240 - add -common package containing frontend wrapper binaries
241
242 * Mon Dec 01 2003 Thomas Vander Stichele <thomas at apestaart dot org>
243 - changed documentation buildrequires
244
245 * Sun Nov 09 2003 Christian Schaller <Uraeus@gnome.org>
246 - Fix spec to handle new bytestream library 
247
248 * Sun Aug 17 2003 Christian Schaller <uraeus@gnome.org>
249 - Remove docs build from RPM as the build is broken
250 - Fix stuff since more files are versioned now
251 - Remove wingo schedulers
252 - Remove putbits stuff
253
254 * Sun May 18 2003 Thomas Vander Stichele <thomas at apestaart dot org>
255 - devhelp files are now generated by gtk-doc, changed accordingly
256
257 * Sun Mar 16 2003 Christian F.K. Schaller <Uraeus@gnome.org>
258 - Add gthread scheduler
259
260 * Sat Dec 07 2002 Thomas Vander Stichele <thomas at apestaart dot org>
261 - define majorminor and use it everywhere
262 - full parallel installability
263
264 * Tue Nov 05 2002 Christian Schaller <Uraeus@linuxrising.org>
265 - Add optwingo scheduler
266 * Sat Oct 12 2002 Christian Schaller <Uraeus@linuxrising.org>
267 - Updated to work better with default RH8 rpm
268 - Added missing unspeced files
269 - Removed .a and .la files from buildroot
270
271 * Sat Sep 21 2002 Thomas Vander Stichele <thomas@apestaart.org>
272 - added gst-md5sum
273
274 * Tue Sep 17 2002 Thomas Vander Stichele <thomas@apestaart.org>
275 - adding flex to buildrequires
276
277 * Fri Sep 13 2002 Christian F.K. Schaller <Uraeus@linuxrising.org>
278 - Fixed the schedulers after the renaming
279 * Sun Sep 08 2002 Thomas Vander Stichele <thomas@apestaart.org>
280 - added transfig to the BuildRequires:
281
282 * Sat Jun 22 2002 Thomas Vander Stichele <thomas@apestaart.org>
283 - moved header location
284
285 * Mon Jun 17 2002 Thomas Vander Stichele <thomas@apestaart.org>
286 - added popt
287 - removed .la
288
289 * Fri Jun 07 2002 Thomas Vander Stichele <thomas@apestaart.org>
290 - added release of gstreamer to req of gstreamer-devel
291 - changed location of API docs to be in gtk-doc like other gtk-doc stuff
292 - reordered SPEC file
293
294 * Mon Apr 29 2002 Thomas Vander Stichele <thomas@apestaart.org>
295 - moved html docs to gtk-doc standard directory
296
297 * Tue Mar 5 2002 Thomas Vander Stichele <thomas@apestaart.org>
298 - move version defines of glib2 and libxml2 to configure.ac
299 - add BuildRequires for these two libs
300
301 * Sun Mar 3 2002 Thomas Vander Stichele <thomas@apestaart.org>
302 - put html docs in canonical place, avoiding %doc erasure
303 - added devhelp support, current install of it is hackish
304
305 * Sat Mar 2 2002 Christian Schaller <Uraeus@linuxrising.org>
306 - Added documentation to build
307
308 * Mon Feb 11 2002 Thomas Vander Stichele <thomas@apestaart.org>
309 - added libgstbasicscheduler
310 - renamed libgst to libgstreamer
311
312 * Fri Jan 04 2002 Christian Schaller <Uraeus@linuxrising.org>
313 - Added configdir parameter as it seems the configdir gets weird otherwise
314
315 * Thu Jan 03 2002 Thomas Vander Stichele <thomas@apestaart.org>
316 - split off gstreamer-editor from core
317 - removed gstreamer-gnome-apps
318
319 * Sat Dec 29 2001 Rodney Dawes <dobey@free.fr>
320 - Cleaned up the spec file for the gstreamer core/plug-ins split
321 - Improve spec file
322
323 * Sat Dec 15 2001 Christian Schaller <Uraeus@linuxrising.org>
324 - Split of more plugins from the core and put them into their own modules
325 - Includes colorspace, xfree and wav
326 - Improved package Require lines
327 - Added mp3encode (lame based) to the SPEC
328
329 * Wed Dec 12 2001 Christian Schaller <Uraeus@linuxrising.org>
330 - Thomas merged mpeg plugins into one
331 * Sat Dec 08 2001 Christian Schaller <Uraeus@linuxrising.org>
332 - More minor cleanups including some fixed descriptions from Andrew Mitchell
333
334 * Fri Dec 07 2001 Christian Schaller <Uraeus@linuxrising.org>
335 - Added logging to the make statement
336
337 * Wed Dec 05 2001 Christian Schaller <Uraeus@linuxrising.org>
338 - Updated in preparation for 0.3.0 release
339
340 * Fri Jun 29 2001 Christian Schaller <Uraeus@linuxrising.org>
341 - Updated for 0.2.1 release
342 - Split out the GUI packages into their own RPM
343 - added new plugins (FLAC, festival, quicktime etc.)
344
345 * Sat Jun 09 2001 Christian Schaller <Uraeus@linuxrising.org>
346 - Visualisation plugins bundled out togheter
347 - Moved files sections up close to their respective descriptions
348
349 * Sat Jun 02 2001 Christian Schaller <Uraeus@linuxrising.org>
350 - Split the package into separate RPMS, 
351   putting most plugins out by themselves.
352
353 * Fri Jun 01 2001 Christian Schaller <Uraeus@linuxrising.org>
354 - Updated with change suggestions from Dennis Bjorklund
355
356 * Tue Jan 09 2001 Erik Walthinsen <omega@cse.ogi.edu>
357 - updated to build -devel package as well
358
359 * Sun Jan 30 2000 Erik Walthinsen <omega@cse.ogi.edu>
360 - first draft of spec file
361