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