no cothreads doc so removing it from the spec
[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/libgstbytestream*.so*
138 %{_libdir}/gst/libgstgetbits*.so*
139 %{_libdir}/gst/libgstputbits*.so*
140 %{_libdir}/gst/libgstspider*.so*
141 %{_mandir}/man1/gst-complete.*
142 %{_mandir}/man1/gst-compprep.*
143 %{_mandir}/man1/gst-inspect.*
144 %{_mandir}/man1/gst-launch.*
145 %{_mandir}/man1/gst-register.*
146
147 %{_libdir}/libgstcontrol*.so*
148
149 %files devel
150 %defattr(-, root, root)
151 %{_includedir}/%{name}-%{version}/gst
152 %{_libdir}/libgstreamer.a
153 %{_libdir}/libgstreamer.so
154 %{_libdir}/pkgconfig/gstreamer*.pc
155 ## we specify the API docs as regular files since %docs doesn't fail when
156 #  files aren't found anymore for RPM >= 4
157 #  we list all of the files we really need to trap incomplete doc builds
158 #  then we catch the rest with *, you can safely ignore the errors from this
159 ## gstreamer API
160 %{_datadir}/gtk-doc/html/gstreamer/autopluggers.html
161 %{_datadir}/gtk-doc/html/gstreamer/book1.html
162 %{_datadir}/gtk-doc/html/gstreamer/element-types.html
163 %{_datadir}/gtk-doc/html/gstreamer/gstautoplugfactory.html
164 %{_datadir}/gtk-doc/html/gstreamer/gstautoplug.html
165 %{_datadir}/gtk-doc/html/gstreamer/gstbin.html
166 %{_datadir}/gtk-doc/html/gstreamer/gstclock.html
167 %{_datadir}/gtk-doc/html/gstreamer/gstelement.html
168 %{_datadir}/gtk-doc/html/gstreamer/gst-index.html
169 %{_datadir}/gtk-doc/html/gstreamer/gstobject.html
170 %{_datadir}/gtk-doc/html/gstreamer/gstpad.html
171 %{_datadir}/gtk-doc/html/gstreamer/gstpipeline.html
172 %{_datadir}/gtk-doc/html/gstreamer/gstpluginfeature.html
173 # %{_datadir}/gtk-doc/html/gstreamer/gstreamer-cothreads.html
174 %{_datadir}/gtk-doc/html/gstreamer/gstreamer-gstbuffer.html
175 %{_datadir}/gtk-doc/html/gstreamer/gstreamer-gstbufferpool.html
176 %{_datadir}/gtk-doc/html/gstreamer/gstreamer-gstcaps.html
177 %{_datadir}/gtk-doc/html/gstreamer/gstreamer-gstcpu.html
178 %{_datadir}/gtk-doc/html/gstreamer/gstreamer-gstdata.html
179 %{_datadir}/gtk-doc/html/gstreamer/gstreamer-gstevent.html
180 %{_datadir}/gtk-doc/html/gstreamer/gstreamer-gst.html
181 %{_datadir}/gtk-doc/html/gstreamer/gstreamer-gstinfo.html
182 %{_datadir}/gtk-doc/html/gstreamer/gstreamer-gstparse.html
183 %{_datadir}/gtk-doc/html/gstreamer/gstreamer-gstplugin.html
184 %{_datadir}/gtk-doc/html/gstreamer/gstreamer-gstprops.html
185 %{_datadir}/gtk-doc/html/gstreamer/gstreamer-gststaticautoplug.html
186 %{_datadir}/gtk-doc/html/gstreamer/gstreamer-gststaticautoplugrender.html
187 %{_datadir}/gtk-doc/html/gstreamer/gstreamer-gsttee.html
188 %{_datadir}/gtk-doc/html/gstreamer/gstreamer-gsttype.html
189 %{_datadir}/gtk-doc/html/gstreamer/gstreamer-gstutils.html
190 %{_datadir}/gtk-doc/html/gstreamer/gstreamer.html
191 %{_datadir}/gtk-doc/html/gstreamer/gstschedulerfactory.html
192 %{_datadir}/gtk-doc/html/gstreamer/gstscheduler.html
193 %{_datadir}/gtk-doc/html/gstreamer/gstthread.html
194 %{_datadir}/gtk-doc/html/gstreamer/gsttimecache.html
195 %{_datadir}/gtk-doc/html/gstreamer/gsttypefactory.html
196 %{_datadir}/gtk-doc/html/gstreamer/gstxml.html
197 %{_datadir}/gtk-doc/html/gstreamer/index.sgml
198 ## gstreamer-libs API
199 %{_datadir}/gtk-doc/html/gstreamer-libs/book1.html
200 %{_datadir}/gtk-doc/html/gstreamer-libs/gstreamer-libs-gstcolorspace.html
201 %{_datadir}/gtk-doc/html/gstreamer-libs/gstreamer-libs-gstgetbits.html
202 %{_datadir}/gtk-doc/html/gstreamer-libs/gstreamer-libs.html
203 %{_datadir}/gtk-doc/html/gstreamer-libs/index.sgml
204 ## this catches all of the rest of the docs we might have forgotten
205 %{_datadir}/gtk-doc/html/*
206 %{_datadir}/devhelp/specs/gstreamer.devhelp
207 %{_datadir}/devhelp/specs/gstreamer-libs.devhelp
208
209
210 %changelog
211 * Sat Jun 22 2002 Thomas Vander Stichele <thomas@apestaart.org>
212 - moved header location
213
214 * Mon Jun 17 2002 Thomas Vander Stichele <thomas@apestaart.org>
215 - added popt
216 - removed .la
217
218 * Fri Jun 07 2002 Thomas Vander Stichele <thomas@apestaart.org>
219 - added release of gstreamer to req of gstreamer-devel
220 - changed location of API docs to be in gtk-doc like other gtk-doc stuff
221 - reordered SPEC file
222
223 * Mon Apr 29 2002 Thomas Vander Stichele <thomas@apestaart.org>
224 - moved html docs to gtk-doc standard directory
225
226 * Tue Mar 5 2002 Thomas Vander Stichele <thomas@apestaart.org>
227 - move version defines of glib2 and libxml2 to configure.ac
228 - add BuildRequires for these two libs
229
230 * Sun Mar 3 2002 Thomas Vander Stichele <thomas@apestaart.org>
231 - put html docs in canonical place, avoiding %doc erasure
232 - added devhelp support, current install of it is hackish
233
234 * Sat Mar 2 2002 Christian Schaller <Uraeus@linuxrising.org>
235 - Added documentation to build
236
237 * Mon Feb 11 2002 Thomas Vander Stichele <thomas@apestaart.org>
238 - added libgstbasicscheduler
239 - renamed libgst to libgstreamer
240
241 * Fri Jan 04 2002 Christian Schaller <Uraeus@linuxrising.org>
242 - Added configdir parameter as it seems the configdir gets weird otherwise
243
244 * Thu Jan 03 2002 Thomas Vander Stichele <thomas@apestaart.org>
245 - split off gstreamer-editor from core
246 - removed gstreamer-gnome-apps
247
248 * Sat Dec 29 2001 Rodney Dawes <dobey@free.fr>
249 - Cleaned up the spec file for the gstreamer core/plug-ins split
250 - Improve spec file
251
252 * Sat Dec 15 2001 Christian Schaller <Uraeus@linuxrising.org>
253 - Split of more plugins from the core and put them into their own modules
254 - Includes colorspace, xfree and wav
255 - Improved package Require lines
256 - Added mp3encode (lame based) to the SPEC
257
258 * Wed Dec 12 2001 Christian Schaller <Uraeus@linuxrising.org>
259 - Thomas merged mpeg plugins into one
260 * Sat Dec 08 2001 Christian Schaller <Uraeus@linuxrising.org>
261 - More minor cleanups including some fixed descriptions from Andrew Mitchell
262
263 * Fri Dec 07 2001 Christian Schaller <Uraeus@linuxrising.org>
264 - Added logging to the make statement
265
266 * Wed Dec 05 2001 Christian Schaller <Uraeus@linuxrising.org>
267 - Updated in preparation for 0.3.0 release
268
269 * Fri Jun 29 2001 Christian Schaller <Uraeus@linuxrising.org>
270 - Updated for 0.2.1 release
271 - Split out the GUI packages into their own RPM
272 - added new plugins (FLAC, festival, quicktime etc.)
273
274 * Sat Jun 09 2001 Christian Schaller <Uraeus@linuxrising.org>
275 - Visualisation plugins bundled out togheter
276 - Moved files sections up close to their respective descriptions
277
278 * Sat Jun 02 2001 Christian Schaller <Uraeus@linuxrising.org>
279 - Split the package into separate RPMS, 
280   putting most plugins out by themselves.
281
282 * Fri Jun 01 2001 Christian Schaller <Uraeus@linuxrising.org>
283 - Updated with change suggestions from Dennis Bjorklund
284
285 * Tue Jan 09 2001 Erik Walthinsen <omega@cse.ogi.edu>
286 - updated to build -devel package as well
287
288 * Sun Jan 30 2000 Erik Walthinsen <omega@cse.ogi.edu>
289 - first draft of spec file
290