]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gstreamer0-10.git/blobdiff - gstreamer.spec.in
update SPEC file with latest changes, also add MAINTAINERS file to EXTRA_DIST, the...
[glsdk/gstreamer0-10.git] / gstreamer.spec.in
index b54d0ec0e6197c512d2f46dc58d1739e52649525..e904734a2bd9ed0cb0601ea59b0d8c49ac82aa89 100644 (file)
@@ -1,43 +1,54 @@
-Name:          gstreamer
+%define         majorminor      @GST_MAJORMINOR@
+%define                gstreamer       gstreamer
+
+Name:          %{gstreamer}
 Version:       @VERSION@
-Release:       @GST_VERSION_RELEASE@
-Summary:       GStreamer streaming media framework runtime.
+Release:       @PACKAGE_VERSION_RELEASE@
+Summary:       GStreamer streaming media framework runtime
 
-Group:                 Libraries/Multimedia
+Group:                 Applications/Multimedia
 License:       LGPL
-URL:           http://gstreamer.net/
-Vendor:         GStreamer Backpackers Team <package@gstreamer.net>
-Source:        http://gstreamer.net/releases/%{version}/src/%{name}-%{version}.tar.gz
-BuildRoot:     %{_tmppath}/%{name}-%{version}-root
+URL:           http://gstreamer.freedesktop.org/
+Vendor:         GStreamer Backpackers Team <package@gstreamer.freedesktop.org>
+Source:        http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
-%define                majorminor      @GST_MAJORMINOR@
 %define        _glib2          @GLIB2_REQ@
 %define        _libxml2        @LIBXML2_REQ@
 
 Requires:      glib2 >= %_glib2
 Requires:      libxml2 >= %_libxml2
 Requires:      popt > 1.6
-Prereq:                %{name}-tools >= %{version}
+
+# Provides:    gstreamer =%{version}-%{release}
+
 BuildRequires:         glib2-devel >= %_glib2
 BuildRequires:         libxml2-devel >= %_libxml2
 BuildRequires:         bison
 BuildRequires:         flex
-BuildRequires:         gtk-doc >= 1.0
+BuildRequires:         m4
+BuildRequires:         check
+BuildRequires:         gtk-doc >= 1.1
 BuildRequires:         gcc
+BuildRequires:         gettext
 BuildRequires:         zlib-devel
 BuildRequires:  popt > 1.6
-Prereq:                /sbin/ldconfig
 
 ### documentation requirements
-BuildRequires:  openjade
 BuildRequires:  python2
+BuildRequires:  openjade
+BuildRequires:  jadetex
+BuildRequires:  libxslt
 BuildRequires:  docbook-style-dsssl
+BuildRequires:  docbook-style-xsl
 BuildRequires:  docbook-utils
 BuildRequires: transfig
 BuildRequires:  xfig
+BuildRequires:  netpbm-progs
+BuildRequires:  ghostscript
 
 %description
-GStreamer is a streaming-media framework, based on graphs of filters which
+GStreamer is a streaming media framework, based on graphs of filters which
 operate on media data. Applications using this library can do anything
 from real-time sound processing to playing videos, and just about anything
 else media-related.  Its plugin-based architecture means that new data
@@ -45,7 +56,7 @@ types or processing capabilities can be added simply by installing new
 plugins.
 
 %package devel
-Summary:       Libraries/include files for GStreamer streaming media framework.
+Summary:       Libraries/include files for GStreamer streaming media framework
 Group:                 Development/Libraries
 
 Requires:      %{name} = %{version}-%{release}
@@ -63,28 +74,11 @@ plugins.
 This package contains the libraries and includes files necessary to develop
 applications and plugins for GStreamer.
 
-%package tools
-Summary:       tools for GStreamer streaming media framework.
-Group:                 Libraries/Multimedia
-Requires:      %{name}-common >= %{version}-%{release}
+%package -n %{gstreamer}-tools
+Summary:       tools for GStreamer streaming media framework
+Group:                 Applications/Multimedia
 
-%description tools
-GStreamer is a streaming-media framework, based on graphs of filters which
-operate on media data. Applications using this library can do anything
-from real-time sound processing to playing videos, and just about anything
-else media-related.  Its plugin-based architecture means that new data
-types or processing capabilities can be added simply by installing new   
-plugins.
-
-This package contains the basic command-line tools used for GStreamer, like
-gst-register and gst-launch.  It is split off to allow parallel-installability
-in the future.
-
-%package common
-Summary:       common tools and files for GStreamer streaming media framework.
-Group:                 Libraries/Multimedia
-
-%description common
+%description -n %{gstreamer}-tools
 GStreamer is a streaming-media framework, based on graphs of filters which
 operate on media data. Applications using this library can do anything
 from real-time sound processing to playing videos, and just about anything
@@ -94,148 +88,129 @@ plugins.
 
 This package contains wrapper scripts for the command-line tools that work
 with different major/minor versions of GStreamer.
-
+                                                                                
 %prep
-%setup
+%setup -q -n gstreamer-%{version}
 
 %build
-CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
-CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
-FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \
-%{?__libtoolize:[ -f configure.in ] && %{__libtoolize} --copy --force} ; \
-./configure \
-  --prefix=%{_prefix} \
-  --exec-prefix=%{_exec_prefix} \
-  --bindir=%{_bindir} \
-  --sbindir=%{_sbindir} \
-  --sysconfdir=%{_sysconfdir} \
-  --datadir=%{_datadir} \
-  --includedir=%{_includedir} \
-  --libdir=%{_libdir} \
-  --libexecdir=%{_libexecdir} \
-  --localstatedir=%{_localstatedir} \
-  --sharedstatedir=%{_sharedstatedir} \
-  --mandir=%{_mandir} \
-  --infodir=%{_infodir} \
-  --enable-debug \
-  --with-cachedir=%{_localstatedir}/cache/gstreamer-%{majorminor} \
-  --disable-tests --disable-examples
-#  --enable-docs-build --with-html-dir=$RPM_BUILD_ROOT%{_datadir}/gtk-doc/html
-
-if [ "$SMP" != "" ]; then
-  (make "MAKE=make -k -j $SMP"; exit 0)
-else
-  make
-fi
+%configure \
+  --disable-tests --disable-examples \
+  --enable-gtk-doc \
+  --with-cachedir=%{_localstatedir}/cache/gstreamer-%{majorminor} 
+                                                                        
+make
 
 %install  
-[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
+rm -rf $RPM_BUILD_ROOT
 
-%makeinstall
-# Clean out files that should not be part of the rpm. 
-# This is the recommended way of dealing with it for RH8
-mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/cache/gstreamer-%{majorminor}
-rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}-%{majorminor}/*.la
-rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}-%{majorminor}/*.a
+# Install doc temporarily in order to be included later by rpm
+%makeinstall docdir="`pwd`/installed-doc"
+
+%find_lang gstreamer-%{majorminor}
+# Clean out files that should not be part of the rpm.
+rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer-%{majorminor}/*.la
+rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer-%{majorminor}/*.a
 rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
 
+# Create empty cache directory
+mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/cache/gstreamer-%{majorminor}
+
 %clean
-[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
+rm -rf $RPM_BUILD_ROOT
 
-%post
-/sbin/ldconfig
-%{_bindir}/gst-register-%{majorminor} > /dev/null 2> /dev/null
+%post -p /sbin/ldconfig
 
-%postun
-/sbin/ldconfig
+%postun -p /sbin/ldconfig
 
-%files
+%files -f gstreamer-%{majorminor}.lang
 %defattr(-, root, root, -)
-%doc AUTHORS COPYING README TODO COPYING.LIB ABOUT-NLS REQUIREMENTS DOCBUILDING RELEASE 
+%doc AUTHORS COPYING README RELEASE MAINTAINERS ChangeLog gstreamer.doap
 %{_libdir}/libgstreamer-%{majorminor}.so.*
-%{_libdir}/libgstcontrol-%{majorminor}.so.*
+%{_libdir}/libgstbase-%{majorminor}.so.*
+%{_libdir}/libgstcontroller-%{majorminor}.so.*
+%{_libdir}/libgstdataprotocol-%{majorminor}.so.*
+%{_libdir}/libgstnet-%{majorminor}.so.*
+%{_libdir}/libgstcheck-0.10.so.*
 %dir %{_libdir}/gstreamer-%{majorminor}
-%dir %{_localstatedir}/cache/gstreamer-%{majorminor}
-%{_libdir}/gstreamer-%{majorminor}/libgstbasicomega*.so*
-%{_libdir}/gstreamer-%{majorminor}/libgstoptscheduler.so*
-%{_libdir}/gstreamer-%{majorminor}/libgstoptomega*.so*
-%{_libdir}/gstreamer-%{majorminor}/libgstbasicgthreadscheduler*.so
-%{_libdir}/gstreamer-%{majorminor}/libgstoptgthreadscheduler*.so
-%{_libdir}/gstreamer-%{majorminor}/libgstelements*.so*
-%{_libdir}/gstreamer-%{majorminor}/libgstgetbits*.so*
-%{_libdir}/gstreamer-%{majorminor}/libgstspider*.so*
-%{_libdir}/gstreamer-%{majorminor}/libgstindexers.so*
-%{_libdir}/gstreamer-%{majorminor}/libgstbytestream.so
-%{_datadir}/locale/*
-
-%files tools
-%defattr(-, root, root, -)
-%{_bindir}/gst-xmlinspect-%{majorminor}
-%{_bindir}/gst-complete-%{majorminor}
-%{_bindir}/gst-compprep-%{majorminor}
+%{_libdir}/gstreamer-%{majorminor}/libgstcoreelements.so
+%{_libdir}/gstreamer-%{majorminor}/libgstcoreindexers.so
+
+%{_bindir}/gst-feedback-%{majorminor}
 %{_bindir}/gst-inspect-%{majorminor}
 %{_bindir}/gst-launch-%{majorminor}
-%{_bindir}/gst-md5sum-%{majorminor}
-%{_bindir}/gst-register-%{majorminor}
-%{_bindir}/gst-feedback-%{majorminor}
-%{_bindir}/gst-xmllaunch-%{majorminor}
 %{_bindir}/gst-typefind-%{majorminor}
-%{_mandir}/man1/gst-feedback-%{majorminor}.* 
-%{_mandir}/man1/gst-xmllaunch-%{majorminor}.*
-%{_mandir}/man1/gst-complete-%{majorminor}.*
-%{_mandir}/man1/gst-compprep-%{majorminor}.*
+%{_bindir}/gst-xmlinspect-%{majorminor}
+%{_bindir}/gst-xmllaunch-%{majorminor}
+%{_mandir}/man1/gst-feedback-%{majorminor}.*
 %{_mandir}/man1/gst-inspect-%{majorminor}.*
 %{_mandir}/man1/gst-launch-%{majorminor}.*
-%{_mandir}/man1/gst-md5sum-%{majorminor}.*
-%{_mandir}/man1/gst-register-%{majorminor}.*
+%{_mandir}/man1/gst-typefind-%{majorminor}.*
+%{_mandir}/man1/gst-xmlinspect-%{majorminor}.*
+%{_mandir}/man1/gst-xmllaunch-%{majorminor}.*
 
-%files common
+%dir %{_localstatedir}/cache/gstreamer-%{majorminor}
+
+%files -n %{gstreamer}-tools
 %defattr(-, root, root, -)
-%{_bindir}/gst-xmlinspect
-%{_bindir}/gst-complete
-%{_bindir}/gst-compprep
+%{_bindir}/gst-feedback
 %{_bindir}/gst-inspect
 %{_bindir}/gst-launch
-%{_bindir}/gst-md5sum
-%{_bindir}/gst-register
-%{_bindir}/gst-feedback
-%{_bindir}/gst-xmllaunch
 %{_bindir}/gst-typefind
+%{_bindir}/gst-xmlinspect
+%{_bindir}/gst-xmllaunch
 
 %files devel
 %defattr(-, root, root, -)
-%dir %{_includedir}/%{name}-%{majorminor}
-%dir %{_includedir}/%{name}-%{majorminor}/gst
-%{_includedir}/%{name}-%{majorminor}/gst/*.h
-%dir %{_includedir}/%{name}-%{majorminor}/gst/control
-%{_includedir}/%{name}-%{majorminor}/gst/control/*.h
-%dir %{_includedir}/%{name}-%{majorminor}/gst/getbits
-%{_includedir}/%{name}-%{majorminor}/gst/getbits/getbits.h
-%{_includedir}/%{name}-%{majorminor}/gst/bytestream/bytestream.h
-# %{_libdir}/libgstreamer.a
+# %doc installed-doc/faq installed-doc/pwg installed-doc/manual
+%dir %{_includedir}/gstreamer-%{majorminor}
+%dir %{_includedir}/gstreamer-%{majorminor}/gst
+%{_includedir}/gstreamer-%{majorminor}/gst/*.h
+%{_includedir}/gstreamer-%{majorminor}/gst/controller/gstcontroller.h
+%{_includedir}/gstreamer-%{majorminor}/gst/net/gstnet.h
+%{_includedir}/gstreamer-%{majorminor}/gst/net/gstnetclientclock.h
+%{_includedir}/gstreamer-%{majorminor}/gst/net/gstnettimepacket.h
+%{_includedir}/gstreamer-%{majorminor}/gst/net/gstnettimeprovider.h
+%{_includedir}/gstreamer-%{majorminor}/gst/base
+%{_includedir}/gstreamer-%{majorminor}/gst/dataprotocol
+%{_includedir}/gstreamer-%{majorminor}/gst/check/gstcheck.h
+%{_includedir}/gstreamer-%{majorminor}/gst/check/gstbufferstraw.h
+%{_includedir}/gstreamer-%{majorminor}/gst/controller/gstcontrolsource.h
+%{_includedir}/gstreamer-%{majorminor}/gst/controller/gstinterpolationcontrolsource.h
+%{_includedir}/gstreamer-%{majorminor}/gst/controller/gstlfocontrolsource.h
 %{_libdir}/libgstreamer-%{majorminor}.so
-%{_libdir}/libgstcontrol-%{majorminor}.so
+%{_libdir}/libgstdataprotocol-%{majorminor}.so
+%{_libdir}/libgstbase-%{majorminor}.so
+%{_libdir}/libgstcontroller-%{majorminor}.so
+%{_libdir}/libgstnet-%{majorminor}.so
+%{_libdir}/libgstcheck-%{majorminor}.so
+
 %{_datadir}/aclocal/gst-element-check-%{majorminor}.m4
 %{_libdir}/pkgconfig/gstreamer-%{majorminor}.pc
-%{_libdir}/pkgconfig/gstreamer-control-%{majorminor}.pc
-## we specify the API docs as regular files since %docs doesn't fail when
-#  files aren't found anymore for RPM >= 4
-#  we list all of the files we really need to trap incomplete doc builds
-#  then we catch the rest with *, you can safely ignore the errors from this
-## gstreamer API
-# %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/%{name}-%{majorminor}.devhelp
-# %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/element-types.html
-# %{_datadir}/gtk-doc/html/%{name}-%{majorminor}/gstreamer.html
-%{_datadir}/gtk-doc/html/%{name}-%{majorminor}/*
-## gstreamer-libs API
-# %dir %{_datadir}/gtk-doc/html/%{name}-libs-%{majorminor}
-%{_datadir}/gtk-doc/html/%{name}-libs-%{majorminor}/*
-## this catches all of the rest of the docs we might have forgotten
-# %{_datadir}/gtk-doc/html/*
+%{_libdir}/pkgconfig/gstreamer-base-%{majorminor}.pc
+%{_libdir}/pkgconfig/gstreamer-dataprotocol-%{majorminor}.pc
+%{_libdir}/pkgconfig/gstreamer-controller-%{majorminor}.pc
+%{_libdir}/pkgconfig/gstreamer-net-%{majorminor}.pc
+%{_libdir}/pkgconfig/gstreamer-check-%{majorminor}.pc
+
+%doc %{_datadir}/gtk-doc/html/gstreamer-%{majorminor}
+%doc %{_datadir}/gtk-doc/html/gstreamer-libs-%{majorminor}
+%doc %{_datadir}/gtk-doc/html/gstreamer-plugins-%{majorminor}
+                                                                                
+%changelog
+* Fri Dec 15 2006 Thomas Vander Stichele <thomas at apestaart dot org>
+- add doap file
+- further cleanups
 
+* Fri Sep 02 2005 Thomas Vander Stichele <thomas at apestaart dot org>
+- clean up a little
+
+* Thu Jun 09 2005 Thomas Vander Stichele <thomas at apestaart dot org>
+- clean up spec for 0.9 builds
+
+* Thu Feb 12 2004 Thomas Vander Stichele <thomas at apestaart dot org>
+- sync with 0.7.4 fedora spec
 
-%changelog
 * Thu Feb 05 2004 Thomas Vander Stichele <thomas at apestaart dot org>
 - bump gtk-doc required version to 1.0 for the new options used
 
@@ -361,4 +336,3 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
 
 * Sun Jan 30 2000 Erik Walthinsen <omega@cse.ogi.edu>
 - first draft of spec file
-