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