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