1 %define majorminor @GST_MAJORMINOR@
2 %define gstreamer gstreamer
4 %define gst_minver 0.10.0
6 Name: %{gstreamer}-plugins-ugly
7 Version: @VERSION@
8 Release: @PACKAGE_VERSION_RELEASE@.gst
9 Summary: GStreamer streaming media framework "ugly" plug-ins
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-ugly/gst-plugins-ugly-%{version}.tar.gz
16 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
18 Requires: %{gstreamer} >= %{gst_minver}
19 BuildRequires: %{gstreamer}-devel >= %{gst_minver}
20 BuildRequires: gcc-c++
22 @USE_SIDPLAY_TRUE@BuildRequires: libsidplay-devel >= 1.36.0
23 @USE_A52DEC_TRUE@BuildRequires: a52dec-devel >= 0.7.3
24 # @USE_DVDNAV_TRUE@BuildRequires: libdvdnav-devel >= 0.1.3
25 @USE_DVDREAD_TRUE@BuildRequires: libdvdread-devel >= 0.9.0
26 @USE_LAME_TRUE@BuildRequires: lame-devel >= 3.89
27 @USE_MAD_TRUE@BuildRequires: libid3tag-devel >= 0.15.0
28 @USE_MAD_TRUE@BuildRequires: libmad-devel >= 0.15.0
29 @USE_MPEG2DEC_TRUE@BuildRequires: mpeg2dec-devel >= 0.4.0
31 @USE_SIDPLAY_TRUE@Provides: gstreamer-sid = %{version}-%{release}
32 @USE_LAME_TRUE@Provides: gstreamer-lame = %{version}-%{release}
33 @USE_MAD_TRUE@Provides: gstreamer-mad = %{version}-%{release}
34 @USE_A52DEC_TRUE@Provides: gstreamer-a52dec = %{version}-%{release}
35 # @USE_DVDNAV_TRUE@Provides: gstreamer-dvdnavsrc = %{version}-%{release}
36 @USE_DVDREAD_TRUE@Provides: gstreamer-dvdread = %{version}-%{release}
37 @USE_MPEG2DEC_TRUE@Provides: gstreamer-mpeg2dec = %{version}-%{release}
39 %description
40 GStreamer is a streaming media framework, based on graphs of elements which
41 operate on media data.
43 This package contains well-written plug-ins that can't be shipped in
44 gstreamer-plugins-good because:
45 - the license is not LGPL
46 - the license of the library is not LGPL
47 - there are possible licensing issues with the code.
49 # %package devel
50 # Summary: Development files for GStreamer Ugly Plugins
51 # Group: Development/Libraries
52 #
53 # Requires: %{name} = %{version}-%{release}
54 #
55 # %description devel
56 # GStreamer is a streaming media framework, based on graphs of elements which
57 # operate on media data.
58 #
59 # This package contains well-written plug-ins that can't be shipped in
60 # gstreamer-plugins-good because:
61 # - the license is not LGPL
62 # - the license of the library is not LGPL
63 # - there are possible licensing issues with the code.
64 #
65 # This package contains development files and documentation.
67 %prep
68 %setup -q -n gst-plugins-ugly-%{version}
69 %build
70 %configure \
71 --enable-debug \
72 --enable-gtk-doc
74 make %{?_smp_mflags}
76 %install
77 rm -rf $RPM_BUILD_ROOT
79 # Install doc temporarily in order to be included later by rpm
80 %makeinstall
82 # Clean out files that should not be part of the rpm.
83 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer-%{majorminor}/*.la
84 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer-%{majorminor}/*.a
85 rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
86 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
88 %find_lang gst-plugins-ugly-%{majorminor}
90 %clean
91 rm -rf $RPM_BUILD_ROOT
93 %files -f gst-plugins-ugly-%{majorminor}.lang
94 %defattr(-, root, root, -)
95 %doc AUTHORS COPYING README REQUIREMENTS gst-plugins-ugly.doap
96 %{_libdir}/gstreamer-%{majorminor}/libgstasf.so
97 %{_libdir}/gstreamer-%{majorminor}/libgstdvdlpcmdec.so
98 %{_libdir}/gstreamer-%{majorminor}/libgstiec958.so
99 %{_libdir}/gstreamer-%{majorminor}/libgstmpegaudioparse.so
100 %{_libdir}/gstreamer-%{majorminor}/libgstmpegstream.so
101 %{_libdir}/gstreamer-%{majorminor}/libgstrmdemux.so
102 %{_libdir}/gstreamer-%{majorminor}/libgstdvdsub.so
104 # plugins with dependencies
105 @USE_SIDPLAY_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstsid.so
106 @USE_LAME_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstlame.so
107 @USE_MAD_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstmad.so
108 @USE_A52DEC_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgsta52dec.so
109 # @USE_DVDNAV_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstdvdnavsrc.so
110 @USE_DVDREAD_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstdvdread.so
111 @USE_MPEG2DEC_TRUE@%{_libdir}/gstreamer-%{majorminor}/libgstmpeg2dec.so
112 %doc %{_datadir}/gtk-doc/html/gst-plugins-ugly-plugins-%{majorminor}/*
114 %changelog
115 * Fri Dec 15 2006 Thomas Vander Stichele <thomas at apestaart dot org>
116 - further cleanup
117 - add .doap file
119 * Fri Sep 02 2005 Thomas Vander Stichele <thomas at apestaart dot org>
120 - clean out for split into ugly