latest updates on spec file after thomas's refactoring
[platform/upstream/gstreamer.git] / gst-plugins-base.spec.in
1 %define majorminor  @GST_MAJORMINOR@
2 %define gstreamer   gstreamer09
3
4 %define gst_minver  0.9.6
5
6 Name:           %{gstreamer}-plugins-base
7 Version:        @VERSION@
8 Release:        @GST_PLUGINS_BASE_VERSION_RELEASE@.gst
9 Summary:        GStreamer streaming media framework plug-ins
10
11 Group:          Applications/Multimedia
12 License:        LGPL
13 URL:            http://gstreamer.freedesktop.org/
14 Vendor:         GStreamer Backpackers Team <package@gstreamer.freedesktop.org>
15 Source:         http://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-%{version}.tar.gz
16 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
17
18 Requires:         %{gstreamer} >= %{gst_minver}
19 BuildRequires:    %{gstreamer}-devel >= %{gst_minver}
20
21 BuildRequires:  gcc-c++
22 BuildRequires:  gtk-doc >= 1.3
23 BuildRequires:  XFree86-devel
24
25 @USE_GNOME_VFS_TRUE@Requires:      gnome-vfs2 > 1.9.4.00
26 @USE_GNOME_VFS_TRUE@BuildRequires: gnome-vfs2-devel > 1.9.4.00
27 @USE_VORBIS_TRUE@Requires:      libogg >= 1.0
28 @USE_VORBIS_TRUE@Requires:      libvorbis >= 1.0
29 @USE_VORBIS_TRUE@BuildRequires: libogg-devel >= 1.0
30 @USE_VORBIS_TRUE@BuildRequires: libvorbis-devel >= 1.0
31 @USE_XVIDEO_TRUE@Requires:      XFree86-libs
32 @USE_XVIDEO_TRUE@BuildRequires: XFree86-devel
33
34 %description
35 GStreamer is a streaming media framework, based on graphs of filters which
36 operate on media data. Applications using this library can do anything
37 from real-time sound processing to playing videos, and just about anything
38 else media-related.  Its plugin-based architecture means that new data
39 types or processing capabilities can be added simply by installing new
40 plug-ins.
41
42 %prep
43 %setup -q -n gst-plugins-base-%{version}
44 %build
45 %configure \
46   --enable-gtk-doc
47
48 make %{?_smp_mflags}
49                                                                                 
50 %install
51 rm -rf $RPM_BUILD_ROOT
52
53 %makeinstall
54
55 # Clean out files that should not be part of the rpm.
56 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer-%{majorminor}/*.la
57 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer-%{majorminor}/*.a
58 rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
59 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
60
61 %find_lang gst-plugins-base-%{majorminor}
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %post
67
68 %postun
69
70 %files -f gst-plugins-base-%{majorminor}.lang
71 %defattr(-, root, root)
72 %doc AUTHORS COPYING README REQUIREMENTS
73
74 # helper programs
75 %{_bindir}/gst-launch-ext-%{majorminor}
76 %{_bindir}/gst-visualise-%{majorminor}
77 %{_mandir}/man1/gst-launch-ext-%{majorminor}.*
78 %{_mandir}/man1/gst-visualise-%{majorminor}*
79
80 # libraries
81 %{_libdir}/libgstinterfaces-%{majorminor}.so.*
82 %{_libdir}/libgstaudio-%{majorminor}.so.*
83 %{_libdir}/libgstriff-%{majorminor}.so.*
84 %{_libdir}/libgsttag-%{majorminor}.so.*
85 %{_libdir}/libgstvideo-%{majorminor}.so.*
86 %{_libdir}/libgstrtp-%{majorminor}.so*
87 %{_libdir}/libgstnetbuffer-%{majorminor}.so*
88
89 # base plugins without external dependencies
90 %{_libdir}/gstreamer-%{majorminor}/libgstadder.so
91 %{_libdir}/gstreamer-%{majorminor}/libgstaudioconvert.so
92 %{_libdir}/gstreamer-%{majorminor}/libgstffmpegcolorspace.so
93 %{_libdir}/gstreamer-%{majorminor}/libgstdecodebin.so
94 %{_libdir}/gstreamer-%{majorminor}/libgstplaybin.so
95 %{_libdir}/gstreamer-%{majorminor}/libgsttypefindfunctions.so
96 %{_libdir}/gstreamer-%{majorminor}/libgstvideotestsrc.so
97 %{_libdir}/gstreamer-%{majorminor}/libgstaudiorate.so
98 %{_libdir}/gstreamer-%{majorminor}/libgstsubparse.so
99 %{_libdir}/gstreamer-%{majorminor}/libgstvolume.so
100 %{_libdir}/gstreamer-%{majorminor}/libgstvideorate.so
101 %{_libdir}/gstreamer-%{majorminor}/libgstvideoscale.so
102 %{_libdir}/gstreamer-%{majorminor}/libgsttcp.so
103 %{_libdir}/gstreamer-%{majorminor}/libgstvideo4linux.so
104 %{_libdir}/gstreamer-%{majorminor}/libgstaudioresample.so
105 %{_libdir}/gstreamer-%{majorminor}/libgstaudiotestsrc.so
106
107 # Here are packages not in the base plugins package but not dependant
108 # on an external lib
109
110 ### VIDEO 4 LINUX 2 ###
111 # @USE_GST_V4L2_TRUE@%package -n gstreamer-plugins-v4l2
112 # @USE_GST_V4L2_TRUE@Summary:       GStreamer Video for Linux 2 plug-in
113 # @USE_GST_V4L2_TRUE@Group:         Applications/Multimedia
114 # @USE_GST_V4L2_TRUE@Requires:      gstreamer-plugins09 = %{version}
115 # @USE_GST_V4L2_TRUE@BuildRequires: glibc-devel
116 # @USE_GST_V4L2_TRUE@Obsoletes:   gstreamer-v4l2
117 # @USE_GST_V4L2_TRUE@
118 # @USE_GST_V4L2_TRUE@%description -n gstreamer-plugins-v4l2
119 # @USE_GST_V4L2_TRUE@Plug-in for accessing Video for Linux devices.
120 # @USE_GST_V4L2_TRUE@
121 # @USE_GST_V4L2_TRUE@%files -n gstreamer-plugins-v4l2
122 # @USE_GST_V4L2_TRUE@%defattr(-, root, root)
123 # @USE_GST_V4L2_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstvideo4linux2.so
124 # @USE_GST_V4L2_TRUE@
125 # @USE_GST_V4L2_TRUE@%post -n gstreamer-plugins-v4l2
126 # @USE_GST_V4L2_TRUE@
127 # @USE_GST_V4L2_TRUE@%postun -n gstreamer-plugins-v4l2
128
129 # base plugins with dependencies
130 @USE_ALSA_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstalsa.so
131 @USE_THEORA_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgsttheora.so
132 @USE_GNOME_VFS_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstgnomevfs.so
133 @USE_VORBIS_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstvorbis.so
134 @USE_VORBIS_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstogg.so
135 @USE_XVIDEO_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstximage*.so
136 @USE_XVIDEO_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstxvimagesink.so
137 @USE_LIBVISUAL_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstlibvisual.so
138                                                                                 
139 %package devel
140 Summary:        GStreamer Plugin Library Headers
141 Group:          Development/Libraries
142 Requires:       %{gstreamer}-plugins-base = %{version}
143
144 %description devel
145 GStreamer Plugins Base library development and header files.
146
147 %files devel
148 %defattr(-, root, root)
149 # plugin helper library headers
150 %{_includedir}/gstreamer-%{majorminor}/gst/audio/audio.h
151 %{_includedir}/gstreamer-%{majorminor}/gst/audio/gstaudiofilter.h
152 %{_includedir}/gstreamer-%{majorminor}/gst/audio/multichannel.h
153 %{_includedir}/gstreamer-%{majorminor}/gst/floatcast/floatcast.h
154 %{_includedir}/gstreamer-%{majorminor}/gst/riff/riff-ids.h
155 %{_includedir}/gstreamer-%{majorminor}/gst/riff/riff-media.h
156 %{_includedir}/gstreamer-%{majorminor}/gst/riff/riff-read.h
157 %{_includedir}/gstreamer-%{majorminor}/gst/video/video.h
158 %{_includedir}/gstreamer-%{majorminor}/gst/interfaces/colorbalance.h
159 %{_includedir}/gstreamer-%{majorminor}/gst/interfaces/colorbalancechannel.h
160 %{_includedir}/gstreamer-%{majorminor}/gst/interfaces/interfaces-enumtypes.h
161 %{_includedir}/gstreamer-%{majorminor}/gst/interfaces/mixer.h
162 %{_includedir}/gstreamer-%{majorminor}/gst/interfaces/mixeroptions.h
163 %{_includedir}/gstreamer-%{majorminor}/gst/interfaces/mixertrack.h
164 %{_includedir}/gstreamer-%{majorminor}/gst/interfaces/navigation.h
165 %{_includedir}/gstreamer-%{majorminor}/gst/interfaces/propertyprobe.h
166 %{_includedir}/gstreamer-%{majorminor}/gst/interfaces/tuner.h
167 %{_includedir}/gstreamer-%{majorminor}/gst/interfaces/tunerchannel.h
168 %{_includedir}/gstreamer-%{majorminor}/gst/interfaces/tunernorm.h
169 %{_includedir}/gstreamer-%{majorminor}/gst/interfaces/xoverlay.h
170 %{_includedir}/gstreamer-%{majorminor}/gst/audio/gstaudiosrc.h
171 %{_includedir}/gstreamer-%{majorminor}/gst/audio/gstbaseaudiosrc.h
172 %{_includedir}/gstreamer-%{majorminor}/gst/audio/multichannel-enumtypes.h
173 %{_includedir}/gstreamer-%{majorminor}/gst/rtp/gstbasertpdepayload.h
174 %{_includedir}/gstreamer-%{majorminor}/gst/rtp/gstrtpbuffer.h
175 %{_includedir}/gstreamer-%{majorminor}/gst/audio/gstaudioclock.h
176 %{_includedir}/gstreamer-%{majorminor}/gst/audio/gstaudiosink.h
177 %{_includedir}/gstreamer-%{majorminor}/gst/audio/gstbaseaudiosink.h
178 %{_includedir}/gstreamer-%{majorminor}/gst/audio/gstringbuffer.h
179 %{_includedir}/gstreamer-%{majorminor}/gst/tag/tag.h
180 %{_includedir}/gstreamer-%{majorminor}/gst/rtp/gstbasertppayload.h
181 %{_includedir}/gstreamer-%{majorminor}/gst/video/gstvideofilter.h
182 %{_includedir}/gstreamer-%{majorminor}/gst/video/gstvideosink.h
183 %{_includedir}/gstreamer-%{majorminor}/gst/netbuffer/gstnetbuffer.h
184
185 %{_libdir}/libgstaudio-%{majorminor}.so
186 %{_libdir}/libgstriff-%{majorminor}.so
187 %{_libdir}/libgsttag-%{majorminor}.so
188 %{_libdir}/libgstvideo-%{majorminor}.so
189 %{_libdir}/libgstrtp-%{majorminor}.so
190 %{_libdir}/libgstinterfaces-%{majorminor}.so
191 %{_libdir}/libgstnetbuffer-%{majorminor}.so
192
193 # pkg-config files
194 %{_libdir}/pkgconfig/gstreamer-plugins-base-%{majorminor}.pc
195
196 # gtk-doc documentation
197 %doc %{_datadir}/gtk-doc/html/gst-plugins-base-libs-%{majorminor}
198 %doc %{_datadir}/gtk-doc/html/gst-plugins-base-plugins-%{majorminor}
199
200 %changelog
201 * Fri Sep 02 2005 Thomas Vander Stichele <thomas at apestaart dot org>
202 - clean up a little
203
204 * Fri May 6 2005 Christian Schaller <christian at fluendo dot com>
205 - Added libgstaudiorate and libgstsubparse to spec file
206
207 * Thu May 5 2005 Christian Schaller <christian at fluendo dot com>
208 - first attempt at spec file for gst-plugins-base