Some random ramblings about interactivity
[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         _glib2          @GLIB2_REQ@
14 %define         _libxml2        @LIBXML2_REQ@
15
16 Requires:       glib2 >= %_glib2
17 Requires:       libxml2 >= %_libxml2
18 Requires:       popt > 1.6
19 BuildRequires:  glib2-devel >= %_glib2
20 BuildRequires:  libxml2-devel >= %_libxml2
21 BuildRequires:  nasm >= 0.90
22 BuildRequires:  bison
23 BuildRequires:  flex
24 BuildRequires:  gtk-doc >= 0.7
25 BuildRequires:  gcc
26 BuildRequires:  zlib-devel
27 BuildRequires:  popt > 1.6
28 Prereq:         /sbin/ldconfig
29
30 ### documentation requirements
31 BuildRequires:  openjade
32 BuildRequires:  python2
33 BuildRequires:  docbook-style-dsssl docbook-dtd31-sgml
34 BuildRequires:  transfig
35
36 %description
37 GStreamer is a streaming-media framework, based on graphs of filters which
38 operate on media data. Applications using this library can do anything
39 from real-time sound processing to playing videos, and just about anything
40 else media-related.  Its plugin-based architecture means that new data
41 types or processing capabilities can be added simply by installing new 
42 plugins.
43
44 %package devel
45 Summary:        Libraries/include files for GStreamer streaming media framework.
46 Group:          Development/Libraries
47
48 Requires:       %{name} = %{version}-%{release}
49 Requires:       glib2-devel >= %_glib2
50 Requires:       libxml2-devel >= %_libxml2
51
52 %description devel
53 GStreamer is a streaming-media framework, based on graphs of filters which
54 operate on media data. Applications using this library can do anything
55 from real-time sound processing to playing videos, and just about anything
56 else media-related.  Its plugin-based architecture means that new data
57 types or processing capabilities can be added simply by installing new   
58 plugins.
59
60 This package contains the libraries and includes files necessary to develop
61 applications and plugins for GStreamer.
62
63 %prep
64 %setup
65
66 %build
67 CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
68 CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
69 FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \
70 %{?__libtoolize:[ -f configure.in ] && %{__libtoolize} --copy --force} ; \
71 ./configure \
72   --prefix=%{_prefix} \
73   --exec-prefix=%{_exec_prefix} \
74   --bindir=%{_bindir} \
75   --sbindir=%{_sbindir} \
76   --sysconfdir=%{_sysconfdir} \
77   --datadir=%{_datadir} \
78   --includedir=%{_includedir} \
79   --libdir=%{_libdir} \
80   --libexecdir=%{_libexecdir} \
81   --localstatedir=%{_localstatedir} \
82   --sharedstatedir=%{_sharedstatedir} \
83   --mandir=%{_mandir} \
84   --infodir=%{_infodir} \
85   --enable-debug \
86   --with-configdir=/etc/gstreamer \
87   --disable-tests --disable-examples \
88   --enable-docs-build --with-html-dir=$RPM_BUILD_ROOT%{_datadir}/gtk-doc/html
89
90 if [ "$SMP" != "" ]; then
91   (make "MAKE=make -k -j $SMP"; exit 0)
92 else
93   make
94 fi
95
96 %install  
97 [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
98 # adding devhelp stuff here for now, need to integrate better
99 # when devhelp allows it
100 mkdir -p $RPM_BUILD_ROOT/usr/share/devhelp/specs
101 cp $RPM_BUILD_DIR/%{name}-%{version}/docs/devhelp/*.devhelp $RPM_BUILD_ROOT/usr/share/devhelp/specs
102
103 %makeinstall
104
105 %clean
106 [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
107
108 %post
109 /sbin/ldconfig
110 # registry handling is now done automatically
111 # %{_prefix}/bin/gst-register --gst-mask=0
112
113 %post devel
114 # adding devhelp links to work around different base not working
115 mkdir -p %{_datadir}/devhelp/books
116 ln -sf %{_datadir}/gtk-doc/html/gstreamer %{_datadir}/devhelp/books
117 ln -sf %{_datadir}/gtk-doc/html/gstreamer-libs %{_datadir}/devhelp/books
118
119 %postun
120 /sbin/ldconfig
121
122 %files
123 %defattr(-, root, root)
124 %doc AUTHORS COPYING README TODO COPYING.LIB ABOUT-NLS REQUIREMENTS DOCBUILDING RELEASE 
125 %{_bindir}/gst-complete
126 %{_bindir}/gst-compprep
127 %{_bindir}/gst-inspect
128 %{_bindir}/gst-launch
129 %{_bindir}/gst-md5sum
130 %{_bindir}/gst-register
131 %{_bindir}/gst-feedback
132 %{_libdir}/libgstreamer-%{version}.so.*
133 %{_libdir}/gst/libgstautoplugcache*.so*
134 %{_libdir}/gst/libgstautoplugger*.so*
135 %{_libdir}/gst/libgstbasicomega*.so*
136 %{_libdir}/gst/libgstfastomega*.so*
137 %{_libdir}/gst/libgstoptomega*.so*
138 %{_libdir}/gst/libgstbasicwingo*.so*
139 %{_libdir}/gst/libgstfastwingo*.so*
140 %{_libdir}/gst/libgstelements*.so*
141 %{_libdir}/gst/libgsttypes*.so*
142 %{_libdir}/gst/libgststaticautoplug*.so*
143 %{_libdir}/gst/libgstbytestream*.so*
144 %{_libdir}/gst/libgstgetbits*.so*
145 %{_libdir}/gst/libgstputbits*.so*
146 %{_libdir}/gst/libgstspider*.so*
147 %{_mandir}/man1/gst-complete.*
148 %{_mandir}/man1/gst-compprep.*
149 %{_mandir}/man1/gst-inspect.*
150 %{_mandir}/man1/gst-launch.*
151 %{_mandir}/man1/gst-md5sum.*
152 %{_mandir}/man1/gst-register.*
153
154 %{_libdir}/libgstcontrol*.so*
155
156 %files devel
157 %defattr(-, root, root)
158 %{_includedir}/%{name}-%{version}/gst
159 %{_libdir}/libgstreamer.a
160 %{_libdir}/libgstreamer.so
161 %{_libdir}/pkgconfig/gstreamer*.pc
162 ## we specify the API docs as regular files since %docs doesn't fail when
163 #  files aren't found anymore for RPM >= 4
164 #  we list all of the files we really need to trap incomplete doc builds
165 #  then we catch the rest with *, you can safely ignore the errors from this
166 ## gstreamer API
167 %{_datadir}/gtk-doc/html/gstreamer/autopluggers.html
168 %{_datadir}/gtk-doc/html/gstreamer/book1.html
169 %{_datadir}/gtk-doc/html/gstreamer/element-types.html
170 %{_datadir}/gtk-doc/html/gstreamer/gstautoplugfactory.html
171 %{_datadir}/gtk-doc/html/gstreamer/gstautoplug.html
172 %{_datadir}/gtk-doc/html/gstreamer/gstbin.html
173 %{_datadir}/gtk-doc/html/gstreamer/gstclock.html
174 %{_datadir}/gtk-doc/html/gstreamer/gstelement.html
175 %{_datadir}/gtk-doc/html/gstreamer/gst-index.html
176 %{_datadir}/gtk-doc/html/gstreamer/gstobject.html
177 %{_datadir}/gtk-doc/html/gstreamer/gstpad.html
178 %{_datadir}/gtk-doc/html/gstreamer/gstpipeline.html
179 %{_datadir}/gtk-doc/html/gstreamer/gstpluginfeature.html
180 # %{_datadir}/gtk-doc/html/gstreamer/gstreamer-cothreads.html
181 %{_datadir}/gtk-doc/html/gstreamer/gstreamer-gstbuffer.html
182 %{_datadir}/gtk-doc/html/gstreamer/gstreamer-gstbufferpool.html
183 %{_datadir}/gtk-doc/html/gstreamer/gstreamer-gstcaps.html
184 %{_datadir}/gtk-doc/html/gstreamer/gstreamer-gstcpu.html
185 %{_datadir}/gtk-doc/html/gstreamer/gstreamer-gstdata.html
186 %{_datadir}/gtk-doc/html/gstreamer/gstreamer-gstevent.html
187 %{_datadir}/gtk-doc/html/gstreamer/gstreamer-gst.html
188 %{_datadir}/gtk-doc/html/gstreamer/gstreamer-gstinfo.html
189 %{_datadir}/gtk-doc/html/gstreamer/gstreamer-gstparse.html
190 %{_datadir}/gtk-doc/html/gstreamer/gstreamer-gstplugin.html
191 %{_datadir}/gtk-doc/html/gstreamer/gstreamer-gstprops.html
192 %{_datadir}/gtk-doc/html/gstreamer/gstreamer-gststaticautoplug.html
193 %{_datadir}/gtk-doc/html/gstreamer/gstreamer-gststaticautoplugrender.html
194 %{_datadir}/gtk-doc/html/gstreamer/gstreamer-gsttee.html
195 %{_datadir}/gtk-doc/html/gstreamer/gstreamer-gsttype.html
196 %{_datadir}/gtk-doc/html/gstreamer/gstreamer-gstutils.html
197 %{_datadir}/gtk-doc/html/gstreamer/gstreamer.html
198 %{_datadir}/gtk-doc/html/gstreamer/gstschedulerfactory.html
199 %{_datadir}/gtk-doc/html/gstreamer/gstscheduler.html
200 %{_datadir}/gtk-doc/html/gstreamer/gstthread.html
201 %{_datadir}/gtk-doc/html/gstreamer/gsttimecache.html
202 %{_datadir}/gtk-doc/html/gstreamer/gsttypefactory.html
203 %{_datadir}/gtk-doc/html/gstreamer/gstxml.html
204 %{_datadir}/gtk-doc/html/gstreamer/index.sgml
205 ## gstreamer-libs API
206 %{_datadir}/gtk-doc/html/gstreamer-libs/book1.html
207 %{_datadir}/gtk-doc/html/gstreamer-libs/gstreamer-libs-gstcolorspace.html
208 %{_datadir}/gtk-doc/html/gstreamer-libs/gstreamer-libs-gstgetbits.html
209 %{_datadir}/gtk-doc/html/gstreamer-libs/gstreamer-libs.html
210 %{_datadir}/gtk-doc/html/gstreamer-libs/index.sgml
211 ## this catches all of the rest of the docs we might have forgotten
212 %{_datadir}/gtk-doc/html/*
213 %{_datadir}/devhelp/specs/gstreamer.devhelp
214 %{_datadir}/devhelp/specs/gstreamer-libs.devhelp
215
216
217 %changelog
218 * Sat Sep 21 2002 Thomas Vander Stichele <thomas@apestaart.org>
219 - added gst-md5sum
220
221 * Tue Sep 17 2002 Thomas Vander Stichele <thomas@apestaart.org>
222 - adding flex to buildrequires
223
224 * Fri Sep 13 2002 Christian F.K. Schaller <Uraeus@linuxrising.org>
225 - Fixed the schedulers after the renaming
226 * Sun Sep 08 2002 Thomas Vander Stichele <thomas@apestaart.org>
227 - added transfig to the BuildRequires:
228
229 * Sat Jun 22 2002 Thomas Vander Stichele <thomas@apestaart.org>
230 - moved header location
231
232 * Mon Jun 17 2002 Thomas Vander Stichele <thomas@apestaart.org>
233 - added popt
234 - removed .la
235
236 * Fri Jun 07 2002 Thomas Vander Stichele <thomas@apestaart.org>
237 - added release of gstreamer to req of gstreamer-devel
238 - changed location of API docs to be in gtk-doc like other gtk-doc stuff
239 - reordered SPEC file
240
241 * Mon Apr 29 2002 Thomas Vander Stichele <thomas@apestaart.org>
242 - moved html docs to gtk-doc standard directory
243
244 * Tue Mar 5 2002 Thomas Vander Stichele <thomas@apestaart.org>
245 - move version defines of glib2 and libxml2 to configure.ac
246 - add BuildRequires for these two libs
247
248 * Sun Mar 3 2002 Thomas Vander Stichele <thomas@apestaart.org>
249 - put html docs in canonical place, avoiding %doc erasure
250 - added devhelp support, current install of it is hackish
251
252 * Sat Mar 2 2002 Christian Schaller <Uraeus@linuxrising.org>
253 - Added documentation to build
254
255 * Mon Feb 11 2002 Thomas Vander Stichele <thomas@apestaart.org>
256 - added libgstbasicscheduler
257 - renamed libgst to libgstreamer
258
259 * Fri Jan 04 2002 Christian Schaller <Uraeus@linuxrising.org>
260 - Added configdir parameter as it seems the configdir gets weird otherwise
261
262 * Thu Jan 03 2002 Thomas Vander Stichele <thomas@apestaart.org>
263 - split off gstreamer-editor from core
264 - removed gstreamer-gnome-apps
265
266 * Sat Dec 29 2001 Rodney Dawes <dobey@free.fr>
267 - Cleaned up the spec file for the gstreamer core/plug-ins split
268 - Improve spec file
269
270 * Sat Dec 15 2001 Christian Schaller <Uraeus@linuxrising.org>
271 - Split of more plugins from the core and put them into their own modules
272 - Includes colorspace, xfree and wav
273 - Improved package Require lines
274 - Added mp3encode (lame based) to the SPEC
275
276 * Wed Dec 12 2001 Christian Schaller <Uraeus@linuxrising.org>
277 - Thomas merged mpeg plugins into one
278 * Sat Dec 08 2001 Christian Schaller <Uraeus@linuxrising.org>
279 - More minor cleanups including some fixed descriptions from Andrew Mitchell
280
281 * Fri Dec 07 2001 Christian Schaller <Uraeus@linuxrising.org>
282 - Added logging to the make statement
283
284 * Wed Dec 05 2001 Christian Schaller <Uraeus@linuxrising.org>
285 - Updated in preparation for 0.3.0 release
286
287 * Fri Jun 29 2001 Christian Schaller <Uraeus@linuxrising.org>
288 - Updated for 0.2.1 release
289 - Split out the GUI packages into their own RPM
290 - added new plugins (FLAC, festival, quicktime etc.)
291
292 * Sat Jun 09 2001 Christian Schaller <Uraeus@linuxrising.org>
293 - Visualisation plugins bundled out togheter
294 - Moved files sections up close to their respective descriptions
295
296 * Sat Jun 02 2001 Christian Schaller <Uraeus@linuxrising.org>
297 - Split the package into separate RPMS, 
298   putting most plugins out by themselves.
299
300 * Fri Jun 01 2001 Christian Schaller <Uraeus@linuxrising.org>
301 - Updated with change suggestions from Dennis Bjorklund
302
303 * Tue Jan 09 2001 Erik Walthinsen <omega@cse.ogi.edu>
304 - updated to build -devel package as well
305
306 * Sun Jan 30 2000 Erik Walthinsen <omega@cse.ogi.edu>
307 - first draft of spec file
308