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