adding buildreqs for dist
[platform/upstream/gstreamer.git] / gstreamer.spec.in
1 Summary:        GStreamer streaming media framework runtime
2 Name:           gstreamer
3 Version:        @VERSION@
4 Release:        @GST_VERSION_RELEASE@
5
6 Copyright:      LGPL
7 Group:          Libraries/Multimedia
8 Source:         %{name}-%{version}.tar.gz
9 BuildRoot:      %{_tmppath}/%{name}-%{version}-root
10
11 %define         _glib2          @GLIB2_REQ@
12 %define         _libxml2        @LIBXML2_REQ@
13
14 Requires:       glib2 >= %_glib2
15 Requires:       libxml2 >= %_libxml2
16 BuildRequires:  glib2-devel >= %_glib2
17 BuildRequires:  libxml2-devel >= %_libxml2
18 BuildRequires:  nasm >= 0.90
19 BuildRequires:  bison
20 BuildRequires:  gtk-doc >= 0.7
21 BuildRequires:  gcc
22 BuildRequires:  zlib-devel
23
24 ### documentation requirements
25 BuildRequires:  openjade
26 BuildRequires:  python2
27 BuildRequires:  docbook-style-dsssl docbook-dtd31-sgml
28
29 %description
30 GStreamer is a streaming-media framework, based on graphs of filters which
31 operate on media data. Applications using this library can do anything
32 from real-time sound processing to playing videos, and just about anything
33 else media-related.  Its plugin-based architecture means that new data
34 types or processing capabilities can be added simply by installing new 
35 plugins.
36
37 %files
38 %defattr(-, root, root)
39 %doc AUTHORS COPYING README TODO COPYING.LIB ABOUT-NLS REQUIREMENTS DOCBUILDING 
40 %{_bindir}/gst-complete
41 %{_bindir}/gst-compprep
42 %{_bindir}/gst-inspect
43 %{_bindir}/gst-launch
44 %{_bindir}/gst-register
45 %{_libdir}/libgstreamer-%{version}.so.*
46 %{_libdir}/gst/libgstautoplugcache*.so*
47 %{_libdir}/gst/libgstautoplugger*.so*
48 %{_libdir}/gst/libgstbasicscheduler*.so*
49 %{_libdir}/gst/libgststandardscheduler*.so*
50 %{_libdir}/gst/libgstelements*.so*
51 %{_libdir}/gst/libgsttypes*.so*
52 %{_libdir}/gst/libgststaticautoplug*.so*
53 %{_libdir}/gst/libgstcontrol*.so*
54 %{_libdir}/gst/libgstbytestream*.so*
55 %{_libdir}/gst/libgstgetbits*.so*
56 %{_libdir}/gst/libgstputbits*.so*
57 %{_libdir}/gst/libgstspider*.so*
58 %{_mandir}/man1/gst-complete.*
59 %{_mandir}/man1/gst-compprep.*
60 %{_mandir}/man1/gst-inspect.*
61 %{_mandir}/man1/gst-launch.*
62 %{_mandir}/man1/gst-register.*
63
64 %package devel
65 Summary: Libraries and include files for GStreamer streaming-media framework
66 Group: Development/Libraries
67 Requires: %{name} = %{version}
68 Requires: glib2-devel >= %_glib2
69 Requires: libxml2-devel >= %_libxml2
70
71 %description devel
72 GStreamer is a streaming-media framework, based on graphs of filters which
73 operate on media data. Applications using this library can do anything
74 from real-time sound processing to playing videos, and just about anything
75 else media-related.  Its plugin-based architecture means that new data
76 types or processing capabilities can be added simply by installing new   
77 plugins.
78
79 This package contains the libraries and includes files necessary to develop
80 applications and plugins for GStreamer.
81
82 %files devel
83 %defattr(-, root, root)
84 %{_includedir}/gst
85 %{_libdir}/libgstreamer.a
86 %{_libdir}/libgstreamer.la
87 %{_libdir}/libgstreamer.so
88 %{_libdir}/pkgconfig/*
89 %{_datadir}/gtk-doc/html/*
90 %{_datadir}/devhelp/specs/gstreamer.devhelp
91 %{_datadir}/devhelp/specs/gstreamer-libs.devhelp
92
93
94 %changelog
95 * Mon Apr 29 2002 Thomas Vander Stichele <thomas@apestaart.org>
96 - moved html docs to gtk-doc standard directory
97
98 * Tue Mar 5 2002 Thomas Vander Stichele <thomas@apestaart.org>
99 - move version defines of glib2 and libxml2 to configure.ac
100 - add BuildRequires for these two libs
101
102 * Sun Mar 3 2002 Thomas Vander Stichele <thomas@apestaart.org>
103 - put html docs in canonical place, avoiding %doc erasure
104 - added devhelp support, current install of it is hackish
105
106 * Sat Mar 2 2002 Christian Schaller <Uraeus@linuxrising.org>
107 - Added documentation to build
108
109 * Mon Feb 11 2002 Thomas Vander Stichele <thomas@apestaart.org>
110 - added libgstbasicscheduler
111 - renamed libgst to libgstreamer
112
113 * Fri Jan 04 2002 Christian Schaller <Uraeus@linuxrising.org>
114 - Added configdir parameter as it seems the configdir gets weird otherwise
115
116 * Thu Jan 03 2002 Thomas Vander Stichele <thomas@apestaart.org>
117 - split off gstreamer-editor from core
118 - removed gstreamer-gnome-apps
119
120 * Sat Dec 29 2001 Rodney Dawes <dobey@free.fr>
121 - Cleaned up the spec file for the gstreamer core/plug-ins split
122 - Improve spec file
123
124 * Sat Dec 15 2001 Christian Schaller <Uraeus@linuxrising.org>
125 - Splitt of more plugins from the core and put them into their own modules
126 - Includes colorspace, xfree and wav
127 - Improved package Require lines
128 - Added mp3encode (lame based) to the SPEC
129
130 * Wed Dec 12 2001 Christian Schaller <Uraeus@linuxrising.org>
131 - Thomas merged mpeg plugins into one
132 * Sat Dec 08 2001 Christian Schaller <Uraeus@linuxrising.org>
133 - More minor cleanups including some fixed descriptions from Andrew Mitchell
134
135 * Fri Dec 07 2001 Christian Schaller <Uraeus@linuxrising.org>
136 - Added logging to the make statement
137
138 * Wed Dec 05 2001 Christian Schaller <Uraeus@linuxrising.org>
139 - Updated in preparation for 0.3.0 release
140
141 * Fri Jun 29 2001 Christian Schaller <Uraeus@linuxrising.org>
142 - Updated for 0.2.1 release
143 - Split out the GUI packages into their own RPM
144 - added new plugins (FLAC, festival, quicktime etc.)
145
146 * Sat Jun 09 2001 Christian Schaller <Uraeus@linuxrising.org>
147 - Visualisation plugins bundled out togheter
148 - Moved files sections up close to their respective descriptions
149
150 * Sat Jun 02 2001 Christian Schaller <Uraeus@linuxrising.org>
151 - Split the package into separate RPMS, plutting most plugins out by themselves.
152
153 * Fri Jun 01 2001 Christian Schaller <Uraeus@linuxrising.org>
154 - Updated with change suggestions from Dennis Bjorklund
155
156 * Tue Jan 09 2001 Erik Walthinsen <omega@cse.ogi.edu>
157 - updated to build -devel package as well
158
159 * Sun Jan 30 2000 Erik Walthinsen <omega@cse.ogi.edu>
160 - first draft of spec file
161
162 %prep
163 %setup
164
165 %build
166 CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
167 CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
168 FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \
169 %{?__libtoolize:[ -f configure.in ] && %{__libtoolize} --copy --force} ; \
170 ./configure \
171   --prefix=%{_prefix} \
172   --exec-prefix=%{_exec_prefix} \
173   --bindir=%{_bindir} \
174   --sbindir=%{_sbindir} \
175   --sysconfdir=%{_sysconfdir} \
176   --datadir=%{_datadir} \
177   --includedir=%{_includedir} \
178   --libdir=%{_libdir} \
179   --libexecdir=%{_libexecdir} \
180   --localstatedir=%{_localstatedir} \
181   --sharedstatedir=%{_sharedstatedir} \
182   --mandir=%{_mandir} \
183   --infodir=%{_infodir} \
184   --enable-debug \
185   --with-configdir=/etc/gstreamer \
186   --disable-tests --disable-examples --disable-debug-color \
187   --enable-docs-build
188 if [ "$SMP" != "" ]; then
189   (make "MAKE=make -k -j $SMP"; exit 0)
190 else
191   make
192 fi
193
194 %install  
195 [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
196 # adding devhelp stuff here for now, need to integrate better
197 # when devhelp allows it
198 mkdir -p $RPM_BUILD_ROOT/usr/share/devhelp/specs
199 cp $RPM_BUILD_DIR/%{name}-%{version}/docs/devhelp/*.devhelp $RPM_BUILD_ROOT/usr/share/devhelp/specs
200
201 %makeinstall
202
203 %clean
204 [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
205
206 %post
207 /sbin/ldconfig
208 %{_prefix}/bin/gst-register --gst-mask=0
209
210 %post devel
211 # adding devhelp links to work around different base not working
212 mkdir -p %{_datadir}/devhelp/books
213 ln -sf %{_datadir}/gtk-doc/html/gstreamer %{_datadir}/devhelp/books
214 ln -sf %{_datadir}/gtk-doc/html/gstreamer-libs %{_datadir}/devhelp/books
215
216 %postun
217 /sbin/ldconfig