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