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