Sophie

Sophie

distrib > Mandriva > 2006.0 > i586 > by-pkgid > 9dad638f2d2a98140de407e1d173b3e8 > files > 2

gstreamer-0.8.11-2mdk.src.rpm

%define name gstreamer
%define version 0.8.11
%define release 2mdk
%define vname %{name}08

%define major 0.8
%define majorminor 0.8
%define libname %mklibname %{name} %{major}
%define 	_glib2		2.2.0
%define 	_libxml2	2.4.0
%define build_docs 1

Name: 		%name
Summary: 	GStreamer Streaming-media framework runtime
Version: 	%version
Release: 	%release
License: 	LGPL
Group: 		Sound
URL:            http://gstreamer.freedesktop.org/
Source0: 	http://gstreamer.freedesktop.org/src/gstreamer/%{name}-%{version}.tar.bz2
BuildRoot: 	%{_tmppath}/%{name}-%{version}-root
BuildRequires: 	glib2-devel >= %_glib2
BuildRequires: 	libxml2-devel >= %_libxml2
BuildRequires:	popt-devel
BuildRequires:	gettext-devel
%ifarch %ix86 
BuildRequires: 	nasm => 0.90
%endif
BuildRequires: 	bison
BuildRequires:  flex
%if %build_docs
BuildRequires: 	gtk-doc >= 0.7
BuildRequires: 	transfig
BuildRequires:  docbook-dtd42-xml
BuildRequires:  ghostscript
%endif

%description
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.

%package -n gstreamer-tools
Summary: GStreamer Streaming-media framework runtime
Group: 	Sound
Provides: %vname-tools = %version-%release
Provides: gstreamer
Obsoletes: gstreamer

%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
else media-related.  Its plugin-based architecture means that new data
types or processing capabilities can be added simply by installing new 
plugins.

%package -n %libname
Summary: Libraries for GStreamer streaming-media framework
Group: System/Libraries
Requires(post):	%name-tools >= %version-%release
Provides: libgstreamer%{majorminor} = %version-%release

%description -n %libname
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 libraries.

%package -n %libname-devel
Summary: Libraries and include files for GStreamer streaming-media framework
Group: Development/C
Requires: %{libname} = %{version}
Requires: libglib2-devel
Requires: libxml2-devel
Provides: libgstreamer-devel = %version-%release
Provides: libgstreamer%{majorminor}-devel = %version-%release

%description -n%libname-devel
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 libraries and includes files necessary to develop
applications and plugins for GStreamer.


%prep
rm -rf $RPM_BUILD_ROOT

%setup -q

%build
%configure2_5x  --enable-debug --disable-dependency-tracking \
  --with-cachedir=%{_var}/cache/%{name}-%{majorminor} \
  --with-configdir=%{_sysconfdir}/%{name} \
  --disable-tests --disable-examples \
%if %build_docs
  --enable-docs-build \
%else	
  --disable-docs-build \
%endif
 --with-html-dir=%_datadir/gtk-doc/html

make

%install  
rm -rf $RPM_BUILD_ROOT  installed-docs
%makeinstall_std
mkdir -p $RPM_BUILD_ROOT%{_var}/cache/%{name}-%{majorminor}
#clean the files we don't want to install 
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}-%{majorminor}/*.la
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}-%{majorminor}/*.a
rm -f %buildroot/%_libdir/*a 
%find_lang %name-%majorminor
%if %build_docs
mv %buildroot%_datadir/doc/%name-%version/ installed-docs
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%post -n %libname
/sbin/ldconfig
%{_bindir}/gst-register-%majorminor > /dev/null 2> /dev/null

%postun -n %libname -p /sbin/ldconfig

%files tools -f %name-%majorminor.lang
%defattr(-, root, root)
%doc AUTHORS COPYING README NEWS
%dir %{_var}/cache/%{name}-%{majorminor}
%{_bindir}/gst-complete-%majorminor
%{_bindir}/gst-compprep-%majorminor
%{_bindir}/gst-feedback-%majorminor
%{_bindir}/gst-inspect-%majorminor
%{_bindir}/gst-launch-%majorminor
%{_bindir}/gst-md5sum-%majorminor
%{_bindir}/gst-register-%majorminor
%{_bindir}/gst-typefind-%majorminor
%{_bindir}/gst-xmlinspect-%majorminor
%{_bindir}/gst-xmllaunch-%majorminor
%{_mandir}/man1/gst-complete-%majorminor.1.*
%{_mandir}/man1/gst-compprep-%majorminor.1.*
%{_mandir}/man1/gst-feedback-%majorminor.1.*
%{_mandir}/man1/gst-inspect-%majorminor.1.*
%{_mandir}/man1/gst-launch-%majorminor.1.*
%{_mandir}/man1/gst-md5sum-%majorminor.1.*
%{_mandir}/man1/gst-register-%majorminor.1.*
%{_mandir}/man1/gst-typefind-%majorminor.1.*
%{_mandir}/man1/gst-xmlinspect-%majorminor.1.*
%{_mandir}/man1/gst-xmllaunch-%majorminor.1.*
# gw this must always be in a package named gstreamer-tools
#%files -n gstreamer-tools
#%defattr(-, root, root, -)
%{_bindir}/gst-complete
%{_bindir}/gst-compprep
%{_bindir}/gst-feedback
%{_bindir}/gst-inspect
%{_bindir}/gst-launch
%{_bindir}/gst-md5sum
%{_bindir}/gst-register
%{_bindir}/gst-typefind
%{_bindir}/gst-xmlinspect
%{_bindir}/gst-xmllaunch


%files -n %libname
%defattr(-, root, root)
%dir %{_libdir}/%{name}-%{majorminor}
%{_libdir}/libgstreamer-%{majorminor}.so.*
%{_libdir}/libgstcontrol-%{majorminor}.so.*
%{_libdir}/%{name}-%{majorminor}/libgstbasicomega*.so
%{_libdir}/%{name}-%{majorminor}/libgstbytestream.so
%{_libdir}/%{name}-%{majorminor}/libgstentrygthreadscheduler.so
%{_libdir}/%{name}-%{majorminor}/libgstentryomegascheduler.so
%{_libdir}/%{name}-%{majorminor}/libgstoptscheduler.so
%{_libdir}/%{name}-%{majorminor}/libgstoptomega*.so
%{_libdir}/%{name}-%{majorminor}/libgstbasicgthreadscheduler.so
%{_libdir}/%{name}-%{majorminor}/libgstdataprotocol.so
%{_libdir}/%{name}-%{majorminor}/libgstoptgthreadscheduler.so
%{_libdir}/%{name}-%{majorminor}/libgstelements*.so
%{_libdir}/%{name}-%{majorminor}/libgstgetbits*.so
%{_libdir}/%{name}-%{majorminor}/libgstspider*.so
%{_libdir}/%{name}-%{majorminor}/libgstindexers.so
%{_libdir}/%{name}-%{majorminor}/libgstfairgthreadscheduler.so

%files -n %libname-devel
%defattr(-, root, root)
%doc DEVEL DOCBUILDING REQUIREMENTS ChangeLog TODO
%if %build_docs
%doc installed-docs/*
%endif
%dir %{_includedir}/%{name}-%{majorminor}
%dir %{_includedir}/%{name}-%{majorminor}/gst
%{_includedir}/%{name}-%{majorminor}/gst/*.h
%dir %{_includedir}/%{name}-%{majorminor}/gst/bytestream
%{_includedir}/%{name}-%{majorminor}/gst/bytestream/*.h
%dir %{_includedir}/%{name}-%{majorminor}/gst/control
%{_includedir}/%{name}-%{majorminor}/gst/control/*.h
%dir %{_includedir}/%{name}-%{majorminor}/gst/dataprotocol/
%{_includedir}/%{name}-%{majorminor}/gst/dataprotocol/*.h
%dir %{_includedir}/%{name}-%{majorminor}/gst/getbits
%{_includedir}/%{name}-%{majorminor}/gst/getbits/getbits.h

%{_libdir}/libgstreamer-%{majorminor}.so
%{_libdir}/libgstcontrol-%{majorminor}.so
%{_datadir}/aclocal/gst-element-check-%{majorminor}.m4
%{_libdir}/pkgconfig/gstreamer-%{majorminor}.pc
%{_libdir}/pkgconfig/gstreamer-control-%{majorminor}.pc
%if %build_docs
## 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
%dir %{_datadir}/gtk-doc/html/%{name}-%{majorminor}
%{_datadir}/gtk-doc/html/%{name}-%{majorminor}/%{name}-%{majorminor}.devhelp
%{_datadir}/gtk-doc/html/%{name}-%{majorminor}/GstBin.html
%{_datadir}/gtk-doc/html/%{name}-%{majorminor}/GstClock.html
%{_datadir}/gtk-doc/html/%{name}-%{majorminor}/GstObject.html
%{_datadir}/gtk-doc/html/%{name}-%{majorminor}/GstPipeline.html
%{_datadir}/gtk-doc/html/%{name}-%{majorminor}/GstPluginFeature.html
%{_datadir}/gtk-doc/html/%{name}-%{majorminor}/%{name}-GstSystemClock.html
%{_datadir}/gtk-doc/html/%{name}-%{majorminor}/%{name}.html
%{_datadir}/gtk-doc/html/%{name}-%{majorminor}/%{name}-support.html
%{_datadir}/gtk-doc/html/%{name}-%{majorminor}/GstThread.html
%{_datadir}/gtk-doc/html/%{name}-%{majorminor}/GstXML.html
%{_datadir}/gtk-doc/html/%{name}-%{majorminor}/index.html
%{_datadir}/gtk-doc/html/%{name}-%{majorminor}/index.sgml
## gstreamer-libs API
%dir %{_datadir}/gtk-doc/html/%{name}-libs-%{majorminor}
%{_datadir}/gtk-doc/html/%{name}-libs-%{majorminor}/%{name}-libs-%{majorminor}.devhelp
%{_datadir}/gtk-doc/html/%{name}-libs-%{majorminor}/%{name}-libs-gstgetbits.html
%{_datadir}/gtk-doc/html/%{name}-libs-%{majorminor}/%{name}-libs.html
%{_datadir}/gtk-doc/html/%{name}-libs-%{majorminor}/index.html
%{_datadir}/gtk-doc/html/%{name}-libs-%{majorminor}/index.sgml
## this catches all of the rest of the docs we might have forgotten
%{_datadir}/gtk-doc/html/*
%endif

%changelog
* Wed Sep 14 2005 Frederic Crozat <fcrozat@mandriva.com> 0.8.11-2mdk 
- fix prereq

* Mon Sep 05 2005 Frederic Crozat <fcrozat@mandriva.com> 0.8.11-1mdk 
- Release 0.8.11

* Sun Jul 31 2005 Laurent MONTEL <lmontel@mandriva.com> 0.8.10-2mdk
- Fix provide

* Tue May 03 2005 Götz Waschk <waschk@mandriva.org> 0.8.10-1mdk
- New release 0.8.10

* Thu Feb 10 2005 Götz Waschk <waschk@linux-mandrake.com> 0.8.9-1mdk
- New release 0.8.9

* Mon Dec 27 2004 Goetz Waschk <waschk@linux-mandrake.com> 0.8.8-1mdk
- New release 0.8.8

* Tue Dec 21 2004 Götz Waschk <waschk@linux-mandrake.com> 0.8.7.2-1mdk
- add new file
- drop merged patch 0
- New prerelease 0.8.7.2

* Sun Dec 05 2004 Michael Scherer <misc@mandrake.org> 0.8.7-3mdk
- Rebuild for new python

* Tue Nov 23 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 0.8.7-2mdk
- Patch0 (CVS): fix URI escaping

* Tue Nov  9 2004 Goetz Waschk <waschk@linux-mandrake.com> 0.8.7-1mdk
- New release 0.8.7

* Thu Aug 26 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 0.8.5-2mdk
- Call gst-register in lib package scripts since main package no longer exists

* Mon Aug 16 2004 Goetz Waschk <waschk@linux-mandrake.com> 0.8.5-1mdk
- New release 0.8.5

* Wed Jul 21 2004 Götz Waschk <waschk@linux-mandrake.com> 0.8.4-1mdk
- add gst-xmlinspect man page
- drop merged patch
- New release 0.8.4

* Wed Jun 23 2004 Götz Waschk <waschk@linux-mandrake.com> 0.8.3-3mdk
- reenable docs
- replace patch with solution from CVS

* Sat Jun 19 2004 Christiaan Welvaart <cjw@daneel.dyndns.org> 0.8.3-2mdk
- add BuildRequires: gettext-devel

* Tue Jun  8 2004 Götz Waschk <waschk@linux-mandrake.com> 0.8.3-1mdk
- disable docs
- update patch with a different fix
- new version

* Wed Jun  2 2004 Götz Waschk <waschk@linux-mandrake.com> 0.8.1.3-1mdk
- new prerelease

* Fri May 28 2004 Götz Waschk <waschk@linux-mandrake.com> 0.8.1.2-2mdk
- reenable docs
- fix crash of all gstreamer apps (d'Oh)

* Wed May 26 2004 Götz Waschk <waschk@linux-mandrake.com> 0.8.1.2-1mdk
- update file list
- reallow libtoolize
- disable docs build, there was some problem
- drop patch
- fix URL
- New release 0.8.1.2

* Thu May 13 2004 Götz Waschk <waschk@linux-mandrake.com> 0.8.1-2mdk
- fix doc listing

* Thu Apr 15 2004 Götz Waschk <waschk@linux-mandrake.com> 0.8.1-1mdk
- fix file list
- new version

* Tue Apr  6 2004 Götz Waschk <waschk@linux-mandrake.com> 0.8.0-2mdk
- provide and obsolete gstreamer to fix upgrades

* Tue Apr  6 2004 Götz Waschk <waschk@linux-mandrake.com> 0.8.0-1mdk
- include unversioned command line tools
- rename package from gstreamer0.7
- new major
- fix post call
- new version

* Fri Feb  6 2004 Götz Waschk <waschk@linux-mandrake.com> 0.7.4-2mdk
- fix file list
- reenable docs

* Fri Feb  6 2004 Götz Waschk <waschk@linux-mandrake.com> 0.7.4-1mdk
- disable the docs build
- fix file list
- new version

* Mon Dec 22 2003 Götz Waschk <waschk@linux-mandrake.com> 0.7.3-2mdk
- patch dtds of the docbook manuals to allow build without network connection
- fix docs requirement

* Sun Dec 21 2003 Götz Waschk <waschk@linux-mandrake.com> 0.7.3-1mdk
- fix docs installation
- new version

* Mon Dec  1 2003 Götz Waschk <waschk@linux-mandrake.com> 0.7.2-1mdk
- move tools to the tools package
- fix requires
- fix file list
- rename to gstreamer0.7
- add translations
- add new binaries
- remove cputoolize call
- buildrequire xmlto for the docs
- fix doc installation
- drop patch
- new version

* Tue Nov  4 2003 Götz Waschk <waschk@linux-mandrake.com> 0.6.4-1mdk
- disable docs build (bug #6139)
- buildrequire xmlto for the docs
- drop patch
- new version

* Fri Sep 26 2003 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 0.6.3-2mdk
- cputoolize

* Wed Aug 27 2003 Götz Waschk <waschk@linux-mandrake.com> 0.6.3-1mdk
- patch to remove Werror flag
- new version

* Mon Jul 28 2003 Götz Waschk <waschk@linux-mandrake.com> 0.6.2-3mdk
- fix Bug 4357

* Wed Jul  9 2003 Götz Waschk <waschk@linux-mandrake.com> 0.6.2-2mdk
- rebuild for new rpm

* Tue Jun 10 2003 Götz Waschk <waschk@linux-mandrake.com> 0.6.2-1mdk
- add gst-typefind
- fix doc file listing
- fix devhelp installation
- new version

* Fri May 23 2003 Götz Waschk <waschk@linux-mandrake.com> 0.6.1-4mdk
- fix buildrequires

* Wed May 21 2003 Götz Waschk <waschk@linux-mandrake.com> 0.6.1-3mdk
- move plugins to libpackage to ease parallel installation

* Mon May  5 2003 Götz Waschk <waschk@linux-mandrake.com> 0.6.1-2mdk
- fix buildrequires

* Mon Apr 21 2003 Götz Waschk <waschk@linux-mandrake.com> 0.6.1-1mdk
- update file list
- new version

* Tue Apr  8 2003 Götz Waschk <waschk@linux-mandrake.com> 0.6.0-3mdk
- buildrequires flex

* Sun Feb  2 2003 Götz Waschk <waschk@linux-mandrake.com> 0.6.0-2mdk
- fix major

* Sun Feb  2 2003 Götz Waschk <waschk@linux-mandrake.com> 0.6.0-1mdk
- add gstreamer-control-0.6.pc
- new version

* Thu Jan 23 2003 Götz Waschk <waschk@linux-mandrake.com> 0.5.2-1mdk
- mklibname macro
- new major
- new version

* Tue Jan  7 2003 Götz Waschk <waschk@linux-mandrake.com> 0.5.1-1mdk
- sync file list
- new major version
- drop workarounds for older rpm
- relax buildrequires for docbook-style-xsl
- drop obsoleted patch
- new version

* Wed Dec 18 2002 Götz Waschk <waschk@linux-mandrake.com> 0.5.0-3mdk
- only buildrequire nasm on the x86 architecture

* Thu Dec 12 2002 Götz Waschk <waschk@linux-mandrake.com> 0.5.0-2mdk
- change cache dir from /var/lib/cache to /var/cache

* Wed Dec 11 2002 Götz Waschk <waschk@linux-mandrake.com> 0.5.0-1mdk
- provide gstreamer-tools for compatibility with offical package
- update the patch
- update file list 
- new version 

* Tue Nov 12 2002 Götz Waschk <waschk@linux-mandrake.com> 0.4.2-3mdk
- clean installed files we don't ship
- add missing gst-feedback man page

* Wed Nov  6 2002 Götz Waschk <waschk@linux-mandrake.com> 0.4.2-2mdk
- prereq libgstreamer to make the scripts work

* Tue Nov  5 2002 Götz Waschk <waschk@linux-mandrake.com> 0.4.2-1mdk
- sync with official spec file
- patch xsl stylesheet to fix generation of the manual
- add libgstcontrol library to libgstreamer package
- fix file listing
- drop the patch
- remove the buildconflict with libxslt-proc
- lower optimization to fix program
- new version

* Tue Jul  9 2002 Götz Waschk <waschk@linux-mandrake.com> 0.4.0-3mdk
- buildconflicts libxslt-proc
- some more docs
- update buildrequires for doc generation

* Sun Jul  7 2002 Götz Waschk <waschk@linux-mandrake.com> 0.4.0-2mdk
- some spec cleanup
- loosen dependancy on main package in lib package to ease upgrades

* Sat Jul  6 2002 Götz Waschk <waschk@linux-mandrake.com> 0.4.0-1mdk
- disable parallel build
- fix python location
- sync with official spec file
- 0.4.0

* Wed Jul  3 2002 Götz Waschk <waschk@linux-mandrake.com> 0.3.4-3mdk
- fix major version to please rpmlint
- spec file fixes

* Mon Jul 01 2002 Lenny Cartier <lenny@mandrakesoft.com> 0.3.4-2mdk
- oops forget changelog
- libification
- mode macros

* Tue Jun 25 2002 Charles A Edwards <eslrahc@bellsouth.net> 0.3.4-1mdk
- initial Mandrake build
- modified other spec