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