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