added changelog
[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 * Tue Mar 5 2002 Thomas Vander Stichele <thomas@apestaart.org>
87 - move version defines of glib2 and libxml2 to configure.ac
88 - add BuildRequires for these two libs
89
90 * Sun Mar 3 2002 Thomas Vander Stichele <thomas@apestaart.org>
91 - put html docs in canonical place, avoiding %doc erasure
92 - added devhelp support, current install of it is hackish
93
94 * Sat Mar 2 2002 Christian Schaller <Uraeus@linuxrising.org>
95 - Added documentation to build
96
97 * Mon Feb 11 2002 Thomas Vander Stichele <thomas@apestaart.org>
98 - added libgstbasicscheduler
99 - renamed libgst to libgstreamer
100
101 * Fri Jan 04 2002 Christian Schaller <Uraeus@linuxrising.org>
102 - Added configdir parameter as it seems the configdir gets weird otherwise
103
104 * Thu Jan 03 2002 Thomas Vander Stichele <thomas@apestaart.org>
105 - split off gstreamer-editor from core
106 - removed gstreamer-gnome-apps
107
108 * Sat Dec 29 2001 Rodney Dawes <dobey@free.fr>
109 - Cleaned up the spec file for the gstreamer core/plug-ins split
110 - Improve spec file
111
112 * Sat Dec 15 2001 Christian Schaller <Uraeus@linuxrising.org>
113 - Splitt of more plugins from the core and put them into their own modules
114 - Includes colorspace, xfree and wav
115 - Improved package Require lines
116 - Added mp3encode (lame based) to the SPEC
117
118 * Wed Dec 12 2001 Christian Schaller <Uraeus@linuxrising.org>
119 - Thomas merged mpeg plugins into one
120 * Sat Dec 08 2001 Christian Schaller <Uraeus@linuxrising.org>
121 - More minor cleanups including some fixed descriptions from Andrew Mitchell
122
123 * Fri Dec 07 2001 Christian Schaller <Uraeus@linuxrising.org>
124 - Added logging to the make statement
125
126 * Wed Dec 05 2001 Christian Schaller <Uraeus@linuxrising.org>
127 - Updated in preparation for 0.3.0 release
128
129 * Fri Jun 29 2001 Christian Schaller <Uraeus@linuxrising.org>
130 - Updated for 0.2.1 release
131 - Split out the GUI packages into their own RPM
132 - added new plugins (FLAC, festival, quicktime etc.)
133
134 * Sat Jun 09 2001 Christian Schaller <Uraeus@linuxrising.org>
135 - Visualisation plugins bundled out togheter
136 - Moved files sections up close to their respective descriptions
137
138 * Sat Jun 02 2001 Christian Schaller <Uraeus@linuxrising.org>
139 - Split the package into separate RPMS, plutting most plugins out by themselves.
140
141 * Fri Jun 01 2001 Christian Schaller <Uraeus@linuxrising.org>
142 - Updated with change suggestions from Dennis Bjorklund
143
144 * Tue Jan 09 2001 Erik Walthinsen <omega@cse.ogi.edu>
145 - updated to build -devel package as well
146
147 * Sun Jan 30 2000 Erik Walthinsen <omega@cse.ogi.edu>
148 - first draft of spec file
149
150 %prep
151 %setup
152
153 %build
154 CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
155 CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
156 FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \
157 %{?__libtoolize:[ -f configure.in ] && %{__libtoolize} --copy --force} ; \
158 ./configure \
159   --prefix=%{_prefix} \
160   --exec-prefix=%{_exec_prefix} \
161   --bindir=%{_bindir} \
162   --sbindir=%{_sbindir} \
163   --sysconfdir=%{_sysconfdir} \
164   --datadir=%{_datadir} \
165   --includedir=%{_includedir} \
166   --libdir=%{_libdir} \
167   --libexecdir=%{_libexecdir} \
168   --localstatedir=%{_localstatedir} \
169   --sharedstatedir=%{_sharedstatedir} \
170   --mandir=%{_mandir} \
171   --infodir=%{_infodir} \
172   --with-configdir=/etc/gstreamer \
173   --disable-tests --disable-examples --disable-debug-color \
174   --enable-docs-build --with-html-dir=$RPM_BUILD_DIR/%{name}-%{version}/html
175 if [ "$SMP" != "" ]; then
176   (make "MAKE=make -k -j $SMP"; exit 0)
177 else
178   make
179 fi
180
181 %install  
182 [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
183 # adding devhelp stuff here for now, need to integrate better
184 # when devhelp allows it
185 mkdir -p $RPM_BUILD_ROOT/usr/share/devhelp/specs
186 cp $RPM_BUILD_DIR/%{name}-%{version}/docs/devhelp/*.devhelp $RPM_BUILD_ROOT/usr/share/devhelp/specs
187
188 %makeinstall
189
190 %clean
191 [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
192
193 %post
194 /sbin/ldconfig
195 %{_prefix}/bin/gst-register --gst-mask=0
196
197 %post devel
198 # adding devhelp links to work around different base not working
199 mkdir -p %{_datadir}/devhelp/books
200 ln -sf %{_datadir}/doc/%{name}-devel-%{version}/html/gstreamer %{_datadir}/devhelp/books
201 ln -sf %{_datadir}/doc/%{name}-devel-%{version}/html/gstreamer-libs %{_datadir}/devhelp/books
202
203 %postun
204 /sbin/ldconfig