gst-plugins-base.spec.in 8.66 KB
Newer Older
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
1 2 3 4 5 6
%define majorminor  @GST_MAJORMINOR@
%define gstreamer   gstreamer09
%define gstregister %{_bindir}/gst-register-%{majorminor}
%define register    %{gstregister} > /dev/null 2>&1 || :

%define gst_minver  0.9.1
7

Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
8 9 10 11
Name: 		%{gstreamer}-plugins-base
Version: 	@VERSION@
Release: 	@GST_PLUGINS_BASE_VERSION_RELEASE@.gst
Summary: 	GStreamer streaming media framework plug-ins
12 13 14

Group: 		Applications/Multimedia
License: 	LGPL
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
15 16
URL:		http://gstreamer.freedesktop.org/
Vendor:         GStreamer Backpackers Team <package@gstreamer.freedesktop.org>
17
Source:         http://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-%{version}.tar.gz
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
18
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
19

Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
20 21 22 23
Requires: 	  %{gstreamer} >= %{gst_minver}
BuildRequires: 	  %{gstreamer}-devel >= %{gst_minver}
Requires(post):   %{gstregister}
Requires(postun): %{gstregister}
24 25

BuildRequires:  gcc-c++
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
26
BuildRequires:  gtk-doc >= 1.3
27 28 29 30 31 32 33 34 35 36 37 38
BuildRequires:  XFree86-devel

@USE_GNOME_VFS_TRUE@Requires:      gnome-vfs2 > 1.9.4.00
@USE_GNOME_VFS_TRUE@BuildRequires: gnome-vfs2-devel > 1.9.4.00
@USE_VORBIS_TRUE@Requires:      libogg >= 1.0
@USE_VORBIS_TRUE@Requires:      libvorbis >= 1.0
@USE_VORBIS_TRUE@BuildRequires: libogg-devel >= 1.0
@USE_VORBIS_TRUE@BuildRequires: libvorbis-devel >= 1.0
@USE_XVIDEO_TRUE@Requires: 	XFree86-libs
@USE_XVIDEO_TRUE@BuildRequires: XFree86-devel

%description
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
39
GStreamer is a streaming media framework, based on graphs of filters which
40 41 42 43 44 45 46
operate on media data. Applications using this library can do anything
from real-time sound processing to playing videos, and just about anything
else media-related.  Its plugin-based architecture means that new data
types or processing capabilities can be added simply by installing new
plug-ins.

%prep
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
47
%setup -q -n gst-plugins-base-%{version}
48 49
%build
%configure \
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
50
  --enable-gtk-doc
51 52 53 54 55 56 57

make %{?_smp_mflags}
                                                                                
%install
rm -rf $RPM_BUILD_ROOT

%makeinstall
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
58

59 60 61 62 63
# Clean out files that should not be part of the rpm.
rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer-%{majorminor}/*.la
rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer-%{majorminor}/*.a
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
64 65

%find_lang gst-plugins-base-%{majorminor}
66 67 68 69 70 71

%clean
rm -rf $RPM_BUILD_ROOT

%post
%{register}
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
72

73 74 75
%postun
%{register}

Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
76
%files -f gst-plugins-base-%{majorminor}.lang
77 78 79 80 81 82 83 84 85 86 87
%defattr(-, root, root)
%doc AUTHORS COPYING README REQUIREMENTS

# helper programs
%{_bindir}/gst-launch-ext-%{majorminor}
%{_bindir}/gst-visualise-%{majorminor}
%{_mandir}/man1/gst-launch-ext-%{majorminor}.*
%{_mandir}/man1/gst-visualise-%{majorminor}*

# libraries
%{_libdir}/libgstinterfaces-%{majorminor}.so.*
Christian Schaller's avatar
Christian Schaller committed
88 89 90 91 92 93 94
%{_libdir}/libgstaudio-%{majorminor}.so.*
%{_libdir}/libgstaudiofilter-%{majorminor}.so.*
%{_libdir}/libgstriff-%{majorminor}.so.*
%{_libdir}/libgsttagedit-%{majorminor}.so.*
%{_libdir}/libgstvideo-%{majorminor}.so.*
%{_libdir}/libgstnet-%{majorminor}.so.*
%{_libdir}/libgstrtp-%{majorminor}.so.*
95

Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
96
# base plugins without external dependencies
97 98 99 100 101 102 103 104
%{_libdir}/gstreamer-%{majorminor}/libgstadder.so
%{_libdir}/gstreamer-%{majorminor}/libgstaudioconvert.so
%{_libdir}/gstreamer-%{majorminor}/libgstffmpegcolorspace.so
%{_libdir}/gstreamer-%{majorminor}/libgstsinesrc.so
%{_libdir}/gstreamer-%{majorminor}/libgstdecodebin.so
%{_libdir}/gstreamer-%{majorminor}/libgstplaybin.so
%{_libdir}/gstreamer-%{majorminor}/libgsttypefindfunctions.so
%{_libdir}/gstreamer-%{majorminor}/libgstvideotestsrc.so
105 106
%{_libdir}/gstreamer-%{majorminor}/libgstaudiorate.so
%{_libdir}/gstreamer-%{majorminor}/libgstsubparse.so
107 108
%{_libdir}/gstreamer-%{majorminor}/libgstvolume.so
%{_libdir}/gstreamer-%{majorminor}/libgstvideorate.so
109
%{_libdir}/gstreamer-%{majorminor}/libgstvideoscale.so
Christian Schaller's avatar
Christian Schaller committed
110
%{_libdir}/gstreamer-%{majorminor}/libgsttcp.so
Christian Schaller's avatar
Christian Schaller committed
111
%{_libdir}/gstreamer-%{majorminor}/libgstvideo4linux.so
112
%{_libdir}/gstreamer-%{majorminor}/libgstaudioresample.so
113

Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
# Here are packages not in the base plugins package but not dependant
# on an external lib

### VIDEO 4 LINUX 2 ###
# @USE_GST_V4L2_TRUE@%package -n gstreamer-plugins-v4l2
# @USE_GST_V4L2_TRUE@Summary:       GStreamer Video for Linux 2 plug-in
# @USE_GST_V4L2_TRUE@Group:         Applications/Multimedia
# @USE_GST_V4L2_TRUE@Requires:      gstreamer-plugins09 = %{version}
# @USE_GST_V4L2_TRUE@BuildRequires: glibc-devel
# @USE_GST_V4L2_TRUE@Obsoletes:	  gstreamer-v4l2
# @USE_GST_V4L2_TRUE@
# @USE_GST_V4L2_TRUE@%description -n gstreamer-plugins-v4l2
# @USE_GST_V4L2_TRUE@Plug-in for accessing Video for Linux devices.
# @USE_GST_V4L2_TRUE@
# @USE_GST_V4L2_TRUE@%files -n gstreamer-plugins-v4l2
# @USE_GST_V4L2_TRUE@%defattr(-, root, root)
# @USE_GST_V4L2_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstvideo4linux2.so
# @USE_GST_V4L2_TRUE@
# @USE_GST_V4L2_TRUE@%post -n gstreamer-plugins-v4l2
# @USE_GST_V4L2_TRUE@%{register}
# @USE_GST_V4L2_TRUE@
# @USE_GST_V4L2_TRUE@%postun -n gstreamer-plugins-v4l2
# @USE_GST_V4L2_TRUE@%{register}

# base plugins with dependencies
@USE_ALSA_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstalsa.so
140 141 142 143
@USE_THEORA_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgsttheora.so
@USE_GNOME_VFS_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstgnomevfs.so
@USE_VORBIS_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstvorbis.so
@USE_VORBIS_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstogg.so
144
@USE_XVIDEO_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstximage.so
145 146
@USE_XVIDEO_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstxvimagesink.so
                                                                                
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
147 148
%package devel
Summary: 	GStreamer Plugin Library Headers
149
Group: 		Development/Libraries
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
150
Requires: 	%{gstreamer}-plugins-base = %{version}
151

Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
152 153
%description devel
GStreamer Plugins Base library development and header files.
154

Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
155
%files devel
156 157 158 159 160 161 162 163 164 165 166
%defattr(-, root, root)
# plugin helper library headers
%{_includedir}/gstreamer-%{majorminor}/gst/audio/audio.h
%{_includedir}/gstreamer-%{majorminor}/gst/audio/gstaudiofilter.h
%{_includedir}/gstreamer-%{majorminor}/gst/audio/multichannel.h
%{_includedir}/gstreamer-%{majorminor}/gst/floatcast/floatcast.h
%{_includedir}/gstreamer-%{majorminor}/gst/riff/riff-ids.h
%{_includedir}/gstreamer-%{majorminor}/gst/riff/riff-media.h
%{_includedir}/gstreamer-%{majorminor}/gst/riff/riff-read.h
%{_includedir}/gstreamer-%{majorminor}/gst/video/video.h
%{_includedir}/gstreamer-%{majorminor}/gst/video/videosink.h
167 168 169 170 171 172 173 174 175 176 177 178
%{_includedir}/gstreamer-%{majorminor}/gst/interfaces/colorbalance.h
%{_includedir}/gstreamer-%{majorminor}/gst/interfaces/colorbalancechannel.h
%{_includedir}/gstreamer-%{majorminor}/gst/interfaces/interfaces-enumtypes.h
%{_includedir}/gstreamer-%{majorminor}/gst/interfaces/mixer.h
%{_includedir}/gstreamer-%{majorminor}/gst/interfaces/mixeroptions.h
%{_includedir}/gstreamer-%{majorminor}/gst/interfaces/mixertrack.h
%{_includedir}/gstreamer-%{majorminor}/gst/interfaces/navigation.h
%{_includedir}/gstreamer-%{majorminor}/gst/interfaces/propertyprobe.h
%{_includedir}/gstreamer-%{majorminor}/gst/interfaces/tuner.h
%{_includedir}/gstreamer-%{majorminor}/gst/interfaces/tunerchannel.h
%{_includedir}/gstreamer-%{majorminor}/gst/interfaces/tunernorm.h
%{_includedir}/gstreamer-%{majorminor}/gst/interfaces/xoverlay.h
Christian Schaller's avatar
Christian Schaller committed
179 180
%{_includedir}/gstreamer-%{majorminor}/gst/audio/gstaudiosrc.h
%{_includedir}/gstreamer-%{majorminor}/gst/audio/gstbaseaudiosrc.h
Christian Schaller's avatar
Christian Schaller committed
181 182 183
%{_includedir}/gstreamer-%{majorminor}/gst/audio/multichannel-enumtypes.h
%{_includedir}/gstreamer-%{majorminor}/gst/rtp/gstbasertpdepayload.h
%{_includedir}/gstreamer-%{majorminor}/gst/rtp/gstrtpbuffer.h
184 185 186 187
%{_includedir}/gstreamer-%{majorminor}/gst/audio/gstaudioclock.h
%{_includedir}/gstreamer-%{majorminor}/gst/audio/gstaudiosink.h
%{_includedir}/gstreamer-%{majorminor}/gst/audio/gstbaseaudiosink.h
%{_includedir}/gstreamer-%{majorminor}/gst/audio/gstringbuffer.h
188
%{_includedir}/gstreamer-%{majorminor}/gst/net/gstnetbuffer.h
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
189 190
%{_includedir}/gstreamer-%{majorminor}/gst/tag/tag.h

191 192 193 194 195 196
%{_libdir}/libgstaudio-%{majorminor}.so
%{_libdir}/libgstaudiofilter-%{majorminor}.so
%{_libdir}/libgstriff-%{majorminor}.so
%{_libdir}/libgsttagedit-%{majorminor}.so
%{_libdir}/libgstvideo-%{majorminor}.so
%{_libdir}/libgstnet-%{majorminor}.so
Christian Schaller's avatar
Christian Schaller committed
197
%{_libdir}/libgstrtp-%{majorminor}.so
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
198
%{_libdir}/libgstinterfaces-%{majorminor}.so
199 200

# pkg-config files
Christian Schaller's avatar
Christian Schaller committed
201
%{_libdir}/pkgconfig/gstreamer-plugins-base-%{majorminor}.pc
202

Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
203 204 205
# gtk-doc documentation
%doc %{_datadir}/gtk-doc/html/gst-plugins-base-libs-%{majorminor}
%doc %{_datadir}/gtk-doc/html/gst-plugins-base-plugins-%{majorminor}
206 207

%changelog
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
208 209 210
* Fri Sep 02 2005 Thomas Vander Stichele <thomas at apestaart dot org>
- clean up a little

211 212 213
* Fri May 6 2005 Christian Schaller <christian at fluendo dot com>
- Added libgstaudiorate and libgstsubparse to spec file

214 215
* Thu May 5 2005 Christian Schaller <christian at fluendo dot com>
- first attempt at spec file for gst-plugins-base