1 # This SPEC file is created in a way that tries to solve various demands.
2 # First of all it tries to create packages that will easily replace both the
3 # Fedora Core default packages and also replace the extra rpms provided
4 # by Fedora.us or freshrpms.net.
5 # At the same time they will only include plugins for which you have the needed
6 # packages installed at the time you run autogen.sh. This means that if you
7 # are not careful you might end up with less plugins than what the standard
8 # packages provide, which in turn means things might stop working for you.
9 # So make sure you have an idea of what you do before creating RPMS using this
12 %define register %{_bindir}/gst-register-%{majorminor} > /dev/null 2>&1 || :
13 %define gst_minver 0.7.6
14 %define gstp_minver 0.7.6
16 Name: gstreamer-plugins-base
18 Release: @GST_PLUGINS_VERSION_RELEASE@
19 Summary: GStreamer Streaming-media framework plug-ins.
21 %define majorminor @GST_MAJORMINOR@
23 Group: Applications/Multimedia
25 URL: http://gstreamer.net/
26 Vendor: GStreamer Backpackers Team <package@gstreamer.net>
27 Source: http://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-%{version}.tar.gz
28 BuildRoot: %{_tmppath}/%{name}-%{version}-root
30 %define _glib2 @GLIB2_REQ@
32 Requires: glib2 >= %_glib2
33 BuildRequires: glib2-devel >= %_glib2
34 Requires: gstreamer09 >= %{gst_minver}
35 BuildRequires: gstreamer09-devel >= %{gst_minver}
36 BuildRequires: gcc-c++
37 BuildRequires: XFree86-devel
39 @USE_GCONF_TRUE@Requires: GConf2
40 @USE_GCONF_TRUE@BuildRequires: GConf2-devel
41 @USE_GNOME_VFS_TRUE@Requires: gnome-vfs2 > 1.9.4.00
42 @USE_GNOME_VFS_TRUE@BuildRequires: gnome-vfs2-devel > 1.9.4.00
43 @USE_VORBIS_TRUE@Requires: libogg >= 1.0
44 @USE_VORBIS_TRUE@Requires: libvorbis >= 1.0
45 @USE_VORBIS_TRUE@BuildRequires: libogg-devel >= 1.0
46 @USE_VORBIS_TRUE@BuildRequires: libvorbis-devel >= 1.0
47 @USE_XVIDEO_TRUE@Requires: XFree86-libs
48 @USE_XVIDEO_TRUE@BuildRequires: XFree86-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
59 %setup -n gst-plugins-base-%{version}
62 --with-gdk-pixbuf-loader-dir=$RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.2.0/loaders \
69 rm -rf $RPM_BUILD_ROOT
71 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
73 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
75 # Clean out files that should not be part of the rpm.
76 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer-%{majorminor}/*.la
77 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer-%{majorminor}/*.a
78 rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
79 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
80 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer-%{majorminor}/libgstgdkpixbuf.so
83 rm -rf $RPM_BUILD_ROOT
91 %defattr(-, root, root)
92 %doc AUTHORS COPYING README REQUIREMENTS
95 %{_bindir}/gst-launch-ext-%{majorminor}
96 %{_bindir}/gst-visualise-%{majorminor}
97 %{_mandir}/man1/gst-launch-ext-%{majorminor}.*
98 %{_mandir}/man1/gst-visualise-%{majorminor}*
101 @USE_GCONF_TRUE@%{_sysconfdir}/gconf/schemas/gstreamer-%{majorminor}.schemas
104 %{_libdir}/libgstinterfaces-%{majorminor}.so.*
105 @USE_GCONF_TRUE@%{_libdir}/libgstgconf-%{majorminor}.so.*
106 %{_libdir}/libgstaudio-0.9.so.*
107 %{_libdir}/libgstaudiofilter-0.9.so.*
108 %{_libdir}/libgstriff-0.9.so.*
109 %{_libdir}/libgsttagedit-0.9.so.*
110 %{_libdir}/libgstvideo-0.9.so.*
111 %{_libdir}/libgstnet-0.9.so.*
113 # non-core plugins without external dependencies
114 %{_libdir}/gstreamer-%{majorminor}/libgstadder.so
115 %{_libdir}/gstreamer-%{majorminor}/libgstaudioconvert.so
116 %{_libdir}/gstreamer-%{majorminor}/libgstffmpegcolorspace.so
117 %{_libdir}/gstreamer-%{majorminor}/libgstsinesrc.so
118 %{_libdir}/gstreamer-%{majorminor}/libgstdecodebin.so
119 %{_libdir}/gstreamer-%{majorminor}/libgstplaybin.so
120 %{_libdir}/gstreamer-%{majorminor}/libgsttypefindfunctions.so
121 %{_libdir}/gstreamer-%{majorminor}/libgstvideotestsrc.so
122 %{_libdir}/gstreamer-%{majorminor}/libgstaudiorate.so
123 %{_libdir}/gstreamer-%{majorminor}/libgstsubparse.so
124 %{_libdir}/gstreamer-%{majorminor}/libgstvolume.so
125 %{_libdir}/gstreamer-%{majorminor}/libgstvideorate.so
126 %{_libdir}/gstreamer-%{majorminor}/libgstvideoscale.so
127 %{_libdir}/gstreamer-%{majorminor}/libgsttcp.so
129 @USE_THEORA_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgsttheora.so
130 @USE_GNOME_VFS_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstgnomevfs.so
131 @USE_VORBIS_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstvorbis.so
132 @USE_VORBIS_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstogg.so
133 @USE_XVIDEO_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstximagesink.so
134 @USE_XVIDEO_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstxvimagesink.so
137 %package -n gstreamer-plugins-base-devel
138 Summary: GStreamer Plugin Library Headers.
139 Group: Development/Libraries
140 Requires: gstreamer-plugins-base = %{version}
142 %description -n gstreamer-plugins-base-devel
143 GStreamer support libraries header files.
145 %files -n gstreamer-plugins-base-devel
146 %defattr(-, root, root)
147 # plugin helper library headers
148 %{_includedir}/gstreamer-%{majorminor}/gst/audio/audio.h
149 %{_includedir}/gstreamer-%{majorminor}/gst/audio/gstaudiofilter.h
150 %{_includedir}/gstreamer-%{majorminor}/gst/audio/multichannel.h
151 %{_includedir}/gstreamer-%{majorminor}/gst/floatcast/floatcast.h
152 %{_includedir}/gstreamer-%{majorminor}/gst/riff/riff-ids.h
153 %{_includedir}/gstreamer-%{majorminor}/gst/riff/riff-media.h
154 %{_includedir}/gstreamer-%{majorminor}/gst/riff/riff-read.h
155 %{_includedir}/gstreamer-%{majorminor}/gst/video/video.h
156 %{_includedir}/gstreamer-%{majorminor}/gst/video/videosink.h
157 %{_includedir}/gstreamer-%{majorminor}/gst/interfaces/colorbalance.h
158 %{_includedir}/gstreamer-%{majorminor}/gst/interfaces/colorbalancechannel.h
159 %{_includedir}/gstreamer-%{majorminor}/gst/interfaces/interfaces-enumtypes.h
160 %{_includedir}/gstreamer-%{majorminor}/gst/interfaces/mixer.h
161 %{_includedir}/gstreamer-%{majorminor}/gst/interfaces/mixeroptions.h
162 %{_includedir}/gstreamer-%{majorminor}/gst/interfaces/mixertrack.h
163 %{_includedir}/gstreamer-%{majorminor}/gst/interfaces/navigation.h
164 %{_includedir}/gstreamer-%{majorminor}/gst/interfaces/propertyprobe.h
165 %{_includedir}/gstreamer-%{majorminor}/gst/interfaces/tuner.h
166 %{_includedir}/gstreamer-%{majorminor}/gst/interfaces/tunerchannel.h
167 %{_includedir}/gstreamer-%{majorminor}/gst/interfaces/tunernorm.h
168 %{_includedir}/gstreamer-%{majorminor}/gst/interfaces/xoverlay.h
169 %{_includedir}/gstreamer-%{majorminor}/gst/audio/gstaudiosrc.h
170 %{_includedir}/gstreamer-%{majorminor}/gst/audio/gstbaseaudiosrc.h
172 # plugin interface headers
173 %{_includedir}/gstreamer-%{majorminor}/gst/audio/gstaudioclock.h
174 %{_includedir}/gstreamer-%{majorminor}/gst/audio/gstaudiosink.h
175 %{_includedir}/gstreamer-%{majorminor}/gst/audio/gstbaseaudiosink.h
176 %{_includedir}/gstreamer-%{majorminor}/gst/audio/gstringbuffer.h
177 %{_includedir}/gstreamer-%{majorminor}/gst/net/gstnetbuffer.h
178 %{_libdir}/libgstaudio-%{majorminor}.so
179 %{_libdir}/libgstaudiofilter-%{majorminor}.so
180 %{_libdir}/libgstriff-%{majorminor}.so
181 %{_libdir}/libgsttagedit-%{majorminor}.so
182 %{_libdir}/libgstvideo-%{majorminor}.so
183 %{_libdir}/libgstnet-%{majorminor}.so
187 @USE_GCONF_TRUE@%{_includedir}/gstreamer-%{majorminor}/gst/gconf/gconf.h
188 %{_includedir}/gstreamer-%{majorminor}/gst/tag/tag.h
190 @USE_GCONF_TRUE@%{_libdir}/pkgconfig/gstreamer-gconf-%{majorminor}.pc
191 %{_libdir}/pkgconfig/gstreamer-plugins-base-0.9.pc
193 @USE_GCONF_TRUE@%{_libdir}/libgstgconf-%{majorminor}.so
194 %{_libdir}/libgstinterfaces-%{majorminor}.so
195 @USE_ALSA_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstalsa.so
198 # Here are packages not in the base plugins package but not dependant
201 # Here are all the packages depending on external libs #
203 ### VIDEO 4 LINUX 2 ###
204 # @USE_GST_V4L2_TRUE@%package -n gstreamer-plugins-v4l2
205 # @USE_GST_V4L2_TRUE@Summary: GStreamer Video for Linux 2 plug-in.
206 # @USE_GST_V4L2_TRUE@Group: Applications/Multimedia
207 # @USE_GST_V4L2_TRUE@Requires: gstreamer-plugins09 = %{version}
208 # @USE_GST_V4L2_TRUE@BuildRequires: glibc-devel
209 # @USE_GST_V4L2_TRUE@Obsoletes: gstreamer-v4l2
210 # @USE_GST_V4L2_TRUE@
211 # @USE_GST_V4L2_TRUE@%description -n gstreamer-plugins-v4l2
212 # @USE_GST_V4L2_TRUE@Plug-in for accessing Video for Linux devices.
213 # @USE_GST_V4L2_TRUE@
214 # @USE_GST_V4L2_TRUE@%files -n gstreamer-plugins-v4l2
215 # @USE_GST_V4L2_TRUE@%defattr(-, root, root)
216 # @USE_GST_V4L2_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstvideo4linux2.so
217 # @USE_GST_V4L2_TRUE@
218 # @USE_GST_V4L2_TRUE@%post -n gstreamer-plugins-v4l2
219 # @USE_GST_V4L2_TRUE@%{register}
220 # @USE_GST_V4L2_TRUE@
221 # @USE_GST_V4L2_TRUE@%postun -n gstreamer-plugins-v4l2
222 # @USE_GST_V4L2_TRUE@%{register}
225 * Fri May 6 2005 Christian Schaller <christian at fluendo dot com>
226 - Added libgstaudiorate and libgstsubparse to spec file
228 * Thu May 5 2005 Christian Schaller <christian at fluendo dot com>
229 - first attempt at spec file for gst-plugins-base