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