no good reason to require glib 1.3.15 so back to 1.3.12 put version checking for...
[platform/upstream/gstreamer.git] / gstreamer.spec.in
1 # File generated by dobey, DO NOT EDIT
2
3 Summary:        GStreamer Streaming-media framework runtime
4 Name:           gstreamer
5 Version:        @VERSION@
6 Release:        @GST_VERSION_RELEASE@
7
8 Copyright:      LGPL
9 Group:          Libraries/Multimedia
10 Source:         %{name}-%{version}.tar.gz
11 BuildRoot:      %{_tmppath}/%{name}-%{version}-root
12
13 %define         _glib2          @GLIB2_REQ@
14 %define         _libxml2        @LIBXML2_REQ@
15
16 Requires:       glib2 >= %_glib2
17 Requires:       libxml2 >= %_libxml2
18 BuildRequires:  glib2-devel >= %_glib2
19 BuildRequires:  libxml2 >= %_libxml2
20 BuildRequires:  nasm => 0.90
21
22 %description
23 GStreamer is a streaming-media framework, based on graphs of filters which
24 operate on media data. Applications using this library can do anything
25 from real-time sound processing to playing videos, and just about anything
26 else media-related.  Its plugin-based architecture means that new data
27 types or processing capabilities can be added simply by installing new 
28 plugins.
29
30 %files
31 %defattr(-, root, root)
32 %doc AUTHORS COPYING README TODO COPYING.LIB ABOUT-NLS REQUIREMENTS DOCBUILDING 
33 %{_bindir}/gst-complete
34 %{_bindir}/gst-compprep
35 %{_bindir}/gst-inspect
36 %{_bindir}/gst-launch
37 %{_bindir}/gst-register
38 %{_libdir}/libgstreamer-%{version}.so.*
39 %{_libdir}/gst/libgstautoplugcache*.so*
40 %{_libdir}/gst/libgstautoplugger*.so*
41 %{_libdir}/gst/libgstbasicscheduler*.so*
42 %{_libdir}/gst/libgststandardscheduler*.so*
43 %{_libdir}/gst/libgstelements*.so*
44 %{_libdir}/gst/libgsttypes*.so*
45 %{_libdir}/gst/libgststaticautoplug*.so*
46 %{_libdir}/gst/libgstcontrol*.so*
47 %{_libdir}/gst/libgstbytestream*.so*
48 %{_libdir}/gst/libgstgetbits*.so*
49 %{_libdir}/gst/libgstputbits*.so*
50 %{_libdir}/gst/libgstspider*.so*
51 %{_mandir}/man1/gst-complete.*
52 %{_mandir}/man1/gst-compprep.*
53 %{_mandir}/man1/gst-inspect.*
54 %{_mandir}/man1/gst-launch.*
55 %{_mandir}/man1/gst-register.*
56
57 %package devel
58 Summary: Libraries and include files for GStreamer streaming-media framework
59 Group: Development/Libraries
60 Requires: %{name} = %{version}
61
62 %description devel
63 GStreamer is a streaming-media framework, based on graphs of filters which
64 operate on media data. Applications using this library can do anything
65 from real-time sound processing to playing videos, and just about anything
66 else media-related.  Its plugin-based architecture means that new data
67 types or processing capabilities can be added simply by installing new   
68 plugins.
69
70 This package contains the libraries and includes files necessary to develop
71 applications and plugins for GStreamer.
72
73 %files devel
74 %defattr(-, root, root)
75 %doc html
76 %{_includedir}/gst
77 %{_libdir}/libgstreamer.a
78 %{_libdir}/libgstreamer.la
79 %{_libdir}/libgstreamer.so
80 %{_libdir}/pkgconfig/*
81 %{_datadir}/devhelp/specs/gstreamer.devhelp
82 %{_datadir}/devhelp/specs/gstreamer-libs.devhelp
83
84
85 %changelog
86 * Sun Mar 3 2002 Thomas Vander Stichele <thomas@apestaart.org>
87 - put html docs in canonical place, avoiding %doc erasure
88 - added devhelp support, current install of it is hackish
89
90 * Sat Mar 2 2002 Christian Schaller <Uraeus@linuxrising.org>
91 - Added documentation to build
92
93 * Mon Feb 11 2002 Thomas Vander Stichele <thomas@apestaart.org>
94 - added libgstbasicscheduler
95 - renamed libgst to libgstreamer
96
97 * Fri Jan 04 2002 Christian Schaller <Uraeus@linuxrising.org>
98 - Added configdir parameter as it seems the configdir gets weird otherwise
99
100 * Thu Jan 03 2002 Thomas Vander Stichele <thomas@apestaart.org>
101 - split off gstreamer-editor from core
102 - removed gstreamer-gnome-apps
103
104 * Sat Dec 29 2001 Rodney Dawes <dobey@free.fr>
105 - Cleaned up the spec file for the gstreamer core/plug-ins split
106 - Improve spec file
107
108 * Sat Dec 15 2001 Christian Schaller <Uraeus@linuxrising.org>
109 - Splitt of more plugins from the core and put them into their own modules
110 - Includes colorspace, xfree and wav
111 - Improved package Require lines
112 - Added mp3encode (lame based) to the SPEC
113
114 * Wed Dec 12 2001 Christian Schaller <Uraeus@linuxrising.org>
115 - Thomas merged mpeg plugins into one
116 * Sat Dec 08 2001 Christian Schaller <Uraeus@linuxrising.org>
117 - More minor cleanups including some fixed descriptions from Andrew Mitchell
118
119 * Fri Dec 07 2001 Christian Schaller <Uraeus@linuxrising.org>
120 - Added logging to the make statement
121
122 * Wed Dec 05 2001 Christian Schaller <Uraeus@linuxrising.org>
123 - Updated in preparation for 0.3.0 release
124
125 * Fri Jun 29 2001 Christian Schaller <Uraeus@linuxrising.org>
126 - Updated for 0.2.1 release
127 - Split out the GUI packages into their own RPM
128 - added new plugins (FLAC, festival, quicktime etc.)
129
130 * Sat Jun 09 2001 Christian Schaller <Uraeus@linuxrising.org>
131 - Visualisation plugins bundled out togheter
132 - Moved files sections up close to their respective descriptions
133
134 * Sat Jun 02 2001 Christian Schaller <Uraeus@linuxrising.org>
135 - Split the package into separate RPMS, plutting most plugins out by themselves.
136
137 * Fri Jun 01 2001 Christian Schaller <Uraeus@linuxrising.org>
138 - Updated with change suggestions from Dennis Bjorklund
139
140 * Tue Jan 09 2001 Erik Walthinsen <omega@cse.ogi.edu>
141 - updated to build -devel package as well
142
143 * Sun Jan 30 2000 Erik Walthinsen <omega@cse.ogi.edu>
144 - first draft of spec file
145
146 %prep
147 %setup
148
149 %build
150 CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
151 CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
152 FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \
153 %{?__libtoolize:[ -f configure.in ] && %{__libtoolize} --copy --force} ; \
154 ./configure \
155   --prefix=%{_prefix} \
156   --exec-prefix=%{_exec_prefix} \
157   --bindir=%{_bindir} \
158   --sbindir=%{_sbindir} \
159   --sysconfdir=%{_sysconfdir} \
160   --datadir=%{_datadir} \
161   --includedir=%{_includedir} \
162   --libdir=%{_libdir} \
163   --libexecdir=%{_libexecdir} \
164   --localstatedir=%{_localstatedir} \
165   --sharedstatedir=%{_sharedstatedir} \
166   --mandir=%{_mandir} \
167   --infodir=%{_infodir} \
168   --with-configdir=/etc/gstreamer \
169   --disable-tests --disable-examples --disable-debug-color \
170   --enable-docs-build --with-html-dir=$RPM_BUILD_DIR/%{name}-%{version}/html
171 if [ "$SMP" != "" ]; then
172   (make "MAKE=make -k -j $SMP"; exit 0)
173 else
174   make
175 fi
176
177 %install  
178 [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
179 # adding devhelp stuff here for now, need to integrate better
180 # when devhelp allows it
181 mkdir -p $RPM_BUILD_ROOT/usr/share/devhelp/specs
182 cp $RPM_BUILD_DIR/%{name}-%{version}/docs/devhelp/*.devhelp $RPM_BUILD_ROOT/usr/share/devhelp/specs
183
184 %makeinstall
185
186 %clean
187 [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
188
189 %post
190 /sbin/ldconfig
191 %{_prefix}/bin/gst-register --gst-mask=0
192
193 %post devel
194 # adding devhelp links to work around different base not working
195 mkdir -p %{_datadir}/devhelp/books
196 ln -sf %{_datadir}/doc/%{name}-devel-%{version}/html/gstreamer %{_datadir}/devhelp/books
197 ln -sf %{_datadir}/doc/%{name}-devel-%{version}/html/gstreamer-libs %{_datadir}/devhelp/books
198
199 %postun
200 /sbin/ldconfig