gst-plugins-good.spec.in 5.99 KB
Newer Older
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
1
2
%define majorminor  @GST_MAJORMINOR@
%define gstreamer   gstreamer09
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
3

4
%define gst_minver   0.9.6
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
5

Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
6
Name: 		%{gstreamer}-plugins-good
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
7
Version: 	@VERSION@
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
8
Release: 	@GST_PLUGINS_GOOD_VERSION_RELEASE@.gst
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
9
10
11
12
Summary: 	GStreamer plug-ins with good code and licensing

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

Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
18
19
Requires: 	  %{gstreamer} >= %{gst_minver}
BuildRequires: 	  %{gstreamer}-devel >= %{gst_minver}
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
20
21
22
23
24
25
26
27
28
29
30

BuildRequires:  gcc-c++

@USE_ESD_TRUE@BuildRequires: esound-devel >= 0.2.8
@USE_ESD_TRUE@Obsoletes:     gstreamer-esd
@USE_ESD_TRUE@
@USE_ESD_TRUE@Provides:		gstreamer-audiosrc
@USE_ESD_TRUE@Provides:		gstreamer-audiosink
@USE_FLAC_TRUE@BuildRequires: flac-devel >= 1.0.3
@USE_GCONF_TRUE@BuildRequires: 	GConf2-devel
@USE_JPEG_TRUE@BuildRequires: libjpeg-devel
31
32
@USE_LIBCACA_TRUE@BuildRequires: libcaca-devel
@USE_LIBDV_TRUE@BuildRequires: libdv-devel
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
33
@USE_LIBPNG_TRUE@BuildRequires: libpng-devel >= 1.2.0
Christian Schaller's avatar
Christian Schaller committed
34
# @USE_MIKMOD_TRUE@BuildRequires: mikmod
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
35
@USE_OSS_TRUE@BuildRequires: glibc-devel
Christian Schaller's avatar
Christian Schaller committed
36
@USE_PANGO_TRUE@BuildRequires:   pango-devel
Christian Schaller's avatar
Christian Schaller committed
37
38
# @USE_RAW1394_TRUE@BuildRequires: libraw1394-devel
# @USE_RAW1394_TRUE@BuildRequires: libavc1394-devel
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
39
@USE_SPEEX_TRUE@BuildRequires:	speex-devel
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
40
41

@USE_SHOUT2_TRUE@BuildRequires: libshout-devel >= 2.0
42
@USE_LADSPA_TRUE@BuildRequires: ladspa-devel
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
43
44
@USE_AALIB_TRUE@BuildRequires:  aalib-devel >= 1.3
@USE_AALIB_TRUE@Provides:       gstreamer-aasink = %{version}-%{release}
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
45
46

%description
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
47
GStreamer is a streaming media framework, based on graphs of filters which
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
48
49
50
51
52
53
54
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
55
%setup -q -n gst-plugins-good-%{version}
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
%build
%configure \
  --enable-debug \
  --enable-DEBUG 

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

export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
%makeinstall
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
                                                                                
# 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
rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer-%{majorminor}/libgstgdkpixbuf.so

Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
77
78
%find_lang gst-plugins-good-%{majorminor}

Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
79
80
81
%clean
rm -rf $RPM_BUILD_ROOT

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

# non-core plugins without external dependencies
%{_libdir}/gstreamer-%{majorminor}/libgstalaw.so
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
88
89
90
%{_libdir}/gstreamer-%{majorminor}/libgstalpha.so
%{_libdir}/gstreamer-%{majorminor}/libgstautodetect.so
%{_libdir}/gstreamer-%{majorminor}/libgstavi.so
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
91
%{_libdir}/gstreamer-%{majorminor}/libgsteffectv.so
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
92
93
%{_libdir}/gstreamer-%{majorminor}/libgstgoom.so
%{_libdir}/gstreamer-%{majorminor}/libgstlevel.so
Christian Schaller's avatar
Christian Schaller committed
94
%{_libdir}/gstreamer-%{majorminor}/libgstefence.so
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
95
96
97
%{_libdir}/gstreamer-%{majorminor}/libgstmulaw.so
%{_libdir}/gstreamer-%{majorminor}/libgstrtp.so
%{_libdir}/gstreamer-%{majorminor}/libgstrtsp.so
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
98
%{_libdir}/gstreamer-%{majorminor}/libgstsmpte.so
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
99
100
101
%{_libdir}/gstreamer-%{majorminor}/libgstudp.so
%{_libdir}/gstreamer-%{majorminor}/libgstvideobox.so
%{_libdir}/gstreamer-%{majorminor}/libgstvideoflip.so
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
102
103
%{_libdir}/gstreamer-%{majorminor}/libgstwavenc.so
%{_libdir}/gstreamer-%{majorminor}/libgstwavparse.so
104
%{_libdir}/gstreamer-%{majorminor}/libgstauparse.so
Christian Schaller's avatar
Christian Schaller committed
105
106
%{_libdir}/gstreamer-%{majorminor}/libgstdebug.so
%{_libdir}/gstreamer-%{majorminor}/libgstnavigationtest.so
107
%{_libdir}/gstreamer-%{majorminor}/libgstalphacolor.so
Christian Schaller's avatar
Christian Schaller committed
108
@USE_CAIRO_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstcairo.so
109
110
111
%{_libdir}/gstreamer-%{majorminor}/libgstflxdec.so
%{_libdir}/gstreamer-%{majorminor}/libgstmatroska.so
%{_libdir}/gstreamer-%{majorminor}/libgstvideomixer.so
Christian Schaller's avatar
Christian Schaller committed
112
%{_libdir}/gstreamer-%{majorminor}/libgstcutter.so
Christian Schaller's avatar
Christian Schaller committed
113
%{_libdir}/gstreamer-%{majorminor}/libgstmultipart.so
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
114
115

# gstreamer-plugins with external dependencies but in the main package
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
116
@USE_LIBCACA_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstcacasink.so
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
117
118
119
120
121
122
123
@USE_ESD_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstesd.so
@USE_FLAC_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstflac.so
@USE_JPEG_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstjpeg.so
# @USE_MIKMOD_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstmikmod.so
@USE_LIBPNG_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstpng.so
@USE_OSS_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstossaudio.so
## @USE_RAW1394_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgst1394.so
Christian Schaller's avatar
Christian Schaller committed
124
@USE_PANGO_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstpango.so
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
125
126
127
128
@USE_SPEEX_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstspeex.so
@USE_GCONF_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstgconfelements.so

# @USE_LADSPA_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstladspa.so
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
129
@USE_SHOUT2_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstshout2.so
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
130
131
132
133
134
@USE_AALIB_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstaasink.so
@USE_LIBDV_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstdv.so
@USE_DV1394_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgst1394.so


Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
135
136
# schema files
@USE_GCONF_TRUE@%{_sysconfdir}/gconf/schemas/gstreamer-%{majorminor}.schemas
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
137

Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
138
139
140
%post
@USE_GCONF_TRUE@export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
@USE_GCONF_TRUE@gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/gstreamer-%{majorminor}.schemas > /dev/null
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
141

Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
142
143
%postun
                                                                               
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
144
%changelog
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
145
146
* Fri Sep 02 2005 Thomas Vander Stichele <thomas at apestaart dot org>
- clean up for splitup