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