File gstreamer-0_10-plugins-base.spec of Package gstreamer-0_10-plugins-base

#
# spec file for package gstreamer-0_10-plugins-base
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           gstreamer-0_10-plugins-base
%define _name gst-plugins-base
Version:        0.10.32
Release:        1
%define gst_branch 0.10
BuildRequires:  alsa-devel
BuildRequires:  cdparanoia-devel
BuildRequires:  check-devel
BuildRequires:  gnome-vfs2-devel
BuildRequires:  gstreamer-0_10-devel
BuildRequires:  gtk-doc
BuildRequires:  gtk2-devel
BuildRequires:  iso-codes-devel
BuildRequires:  krb5
%if %suse_version > 1110
BuildRequires:  libgudev-1_0-devel
%endif
BuildRequires:  libtheora-devel
BuildRequires:  libvisual-devel
BuildRequires:  libvorbis-devel
BuildRequires:  orc
BuildRequires:  python-devel
BuildRequires:  sgml-skel
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
%ifarch %ix86 ppc x86_64
BuildRequires:  valgrind-devel
%endif
%if %suse_version >= 1120
BuildRequires:  gobject-introspection-devel
%endif
License:        GPLv2+ ; LGPLv2.1+
Group:          Productivity/Multimedia/Other
Source:         %{_name}-%{version}.tar.bz2
Source2:        baselibs.conf
Url:            http://gstreamer.freedesktop.org/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        GStreamer Streaming-Media Framework Plug-Ins
Supplements:    gstreamer-0_10
# Name up to 10.3:
Provides:       gstreamer010-plugins-base = %{version}
Obsoletes:      gstreamer010-plugins-base < %{version}
# Generic name, never used in SuSE:
Provides:       gst-plugins-base = %{version}
# Nanes of splitted subpackages (<=10.2 and ==SLE10):
Provides:       gstreamer010-plugins-base-oil = %{version}-%{release} gstreamer010-plugins-base-visual = %{version}-%{release}
Obsoletes:      gstreamer010-plugins-base-oil < %{version}-%{release} gstreamer010-plugins-base-visual < %{version}-%{release}
Recommends:     %{name}-lang = %{version}
# Core modules may depend on new enough libraries:
Requires:       libgstinterfaces-0_10-0 >= %{version}
# For update from <= 11.1 (gstapp):
Conflicts:      gstreamer-0_10-plugins-bad < 0.10.10
PreReq:         filesystem
%define gstreamer010_plugins_base_req %(zgrep --text "^GST[_A-Z]*_REQ" %{S:0} | sort -u | sed 's/GST_REQ=/gstreamer-0_10 >= /')
Requires:       %gstreamer010_plugins_base_req
Recommends:     PackageKit-gstreamer-plugin

%description
GStreamer is a streaming media framework based on graphs of filters
that operate on media data. Applications using this library can do
anything media-related, from real-time sound processing to playing
videos. Its plug-in-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.

%package -n gstreamer-0_10-plugin-gnomevfs
License:        GPLv2+ ; LGPLv2.1+
Summary:        GStreamer Streaming-Media Framework Plug-Ins -- gnome-vfs plugin
Group:          Productivity/Multimedia/Other
# We want to have base modules installed:
Requires:       %{name}
Supplements:    packageand(%{name}:gnome-vfs2)

%description -n gstreamer-0_10-plugin-gnomevfs
GStreamer is a streaming media framework based on graphs of filters
that operate on media data. Applications using this library can do
anything media-related, from real-time sound processing to playing
videos. Its plug-in-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.

%package -n libgstinterfaces-0_10-0
License:        GPLv2+ ; LGPLv2.1+
# This is a library package bundle, which contains more shared
# libraries. Use the name of the lowest level one, because libgstbase
# may cause confusion (it is a part of libgstreamer-0_10-0).
# libgstapp is packaged separately, as it uses a different versioning
# Makefile variable.
Summary:        GStreamer Streaming-Media Framework Plug-Ins
Group:          System/Libraries
# We want to have base modules installed:
Requires:       %{name}
# Name of previous branch (<10.1 and <SLE10), if not updated:
Obsoletes:      gstreamer-plugin-libs < 0.10

%description -n libgstinterfaces-0_10-0
GStreamer is a streaming media framework based on graphs of filters
that operate on media data. Applications using this library can do
anything media-related, from real-time sound processing to playing
videos. Its plug-in-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.

%package -n libgstapp-0_10-0
License:        GPLv2+ ; LGPLv2.1+
Summary:        GStreamer Streaming-Media Framework Plug-Ins
Group:          Productivity/Multimedia/Other
# We want to have base modules installed:
Requires:       %{name}

%description -n libgstapp-0_10-0
GStreamer is a streaming media framework based on graphs of filters
that operate on media data. Applications using this library can do
anything media-related, from real-time sound processing to playing
videos. Its plug-in-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.

%package devel
License:        GPLv2+ ; LGPLv2.1+
Summary:        Include files and libraries mandatory for development with gstreamer-0_10-plugins-base
Group:          Development/Libraries/C and C++
Requires:       libgstinterfaces-0_10-0 = %{version} libgstapp-0_10-0 = %{version} gstreamer-0_10-devel
Requires:       glib2-devel libxml2-devel zlib-devel
# Name up to 10.3:
Provides:       gstreamer010-plugins-base-devel = %{version}
Obsoletes:      gstreamer010-plugins-base-devel < %{version}
# libgstapp has moved from bad to base (<= 11.1)
Provides:       gstreamer-0_10-plugins-bad-devel = 0.10.10
Obsoletes:      gstreamer-0_10-plugins-bad-devel < 0.10.10
# Name up to 10.3:
Provides:       gstreamer010-plugins-bad-devel = 0.10.8
Obsoletes:      gstreamer010-plugins-bad-devel < 0.10.8
# Generic name, never used in SuSE:
Provides:       gst-plugins-base-devel = %{version}

%description devel
This package contains all necessary include files and libraries needed
to compile and link applications that use gstreamer-0_10-plugins-base.

%package doc
License:        GPLv2+ ; LGPLv2.1+
Summary:        Documentation for gstreamer-0_10-plugins-base
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}
# Name up to 10.3:
Provides:       gstreamer010-plugins-base-doc = %{version}
Obsoletes:      gstreamer010-plugins-base-doc < %{version}
# Generic name, never used in SuSE:
Provides:       gst-plugins-base-doc = %{version}

%description doc
This package contains documentation for the gstreamer-0_10-plugins-base
package.

%lang_package
%prep
%setup -q -n %{_name}-%{version}
translation-update-upstream po gst-plugins-base-0.10

%build
# FIXME: GTKDOC_CFLAGS, GST_OBJ_CFLAGS:
# Silently ignored compilation of uninstalled gtk-doc scanners without RPM_OPT_FLAGS.
%if %suse_version >= 1110
NOCONFIGURE=1 ./autogen.sh
%endif
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%configure\
	--disable-static\
	--enable-experimental\
	--enable-gtk-doc\
%if %suse_version >= 1120
        --enable-introspection\
%endif
	%{nil}
make %{?jobs:-j%jobs}

%install
%makeinstall
find %{buildroot} -type f -name "*.la" -exec %{__rm} -fv {} +
%find_lang %{_name}-%{gst_branch}

%clean
rm -rf $RPM_BUILD_ROOT

%post -n libgstinterfaces-0_10-0 -p /sbin/ldconfig

%postun -n libgstinterfaces-0_10-0 -p /sbin/ldconfig

%post -n libgstapp-0_10-0 -p /sbin/ldconfig

%postun -n libgstapp-0_10-0 -p /sbin/ldconfig

%files
%defattr(-, root, root)
%doc AUTHORS COPYING COPYING.LIB NEWS README RELEASE REQUIREMENTS
%{_bindir}/gst-discoverer-%{gst_branch}
%{_bindir}/gst-visualise-%{gst_branch}
%{_libdir}/gstreamer-%{gst_branch}/libgstadder.so
%{_libdir}/gstreamer-%{gst_branch}/libgstalsa.so
%{_libdir}/gstreamer-%{gst_branch}/libgstapp.so
%{_libdir}/gstreamer-%{gst_branch}/libgstaudioconvert.so
%{_libdir}/gstreamer-%{gst_branch}/libgstaudioresample.so
%{_libdir}/gstreamer-%{gst_branch}/libgstaudiotestsrc.so
%{_libdir}/gstreamer-%{gst_branch}/libgstaudiorate.so
%{_libdir}/gstreamer-%{gst_branch}/libgstcdparanoia.so
%{_libdir}/gstreamer-%{gst_branch}/libgstdecodebin.so
%{_libdir}/gstreamer-%{gst_branch}/libgstdecodebin2.so
%{_libdir}/gstreamer-%{gst_branch}/libgstffmpegcolorspace.so
%if %suse_version > 1030
%{_libdir}/gstreamer-%{gst_branch}/libgstgio.so
%endif
%{_libdir}/gstreamer-%{gst_branch}/libgstlibvisual.so
%{_libdir}/gstreamer-%{gst_branch}/libgstogg.so
%{_libdir}/gstreamer-%{gst_branch}/libgstpango.so
%{_libdir}/gstreamer-%{gst_branch}/libgstplaybin.so
%{_libdir}/gstreamer-%{gst_branch}/libgstsubparse.so
%{_libdir}/gstreamer-%{gst_branch}/libgsttcp.so
%{_libdir}/gstreamer-%{gst_branch}/libgsttheora.so
%{_libdir}/gstreamer-%{gst_branch}/libgsttypefindfunctions.so
%{_libdir}/gstreamer-%{gst_branch}/libgstvideo4linux.so
%{_libdir}/gstreamer-%{gst_branch}/libgstvideorate.so
%{_libdir}/gstreamer-%{gst_branch}/libgstvideoscale.so
%{_libdir}/gstreamer-%{gst_branch}/libgstvideotestsrc.so
%{_libdir}/gstreamer-%{gst_branch}/libgstvolume.so
%{_libdir}/gstreamer-%{gst_branch}/libgstvorbis.so
%{_libdir}/gstreamer-%{gst_branch}/libgstximagesink.so
%{_libdir}/gstreamer-%{gst_branch}/libgstxvimagesink.so
%{_libdir}/gstreamer-%{gst_branch}/libgstgdp.so
%{_libdir}/gstreamer-%{gst_branch}/libgstencodebin.so
%doc %{_mandir}/man1/gst-visualise-%{gst_branch}.*

%files -n gstreamer-0_10-plugin-gnomevfs
%defattr(-, root, root)
%{_libdir}/gstreamer-%{gst_branch}/libgstgnomevfs.so

%files lang -f %{_name}-%{gst_branch}.lang

%files -n libgstinterfaces-0_10-0
%defattr(-, root, root)
%{_libdir}/*.so.*
%if %suse_version >= 1120
%{_libdir}/girepository-1.0/*.typelib
%exclude %{_libdir}/girepository-1.0/GstApp-*.typelib
%endif
%exclude %{_libdir}/libgstapp*.so.*

%files -n libgstapp-0_10-0
%defattr(-, root, root)
%{_libdir}/libgstapp*.so.*
%if %suse_version >= 1120
%{_libdir}/girepository-1.0/GstApp-*.typelib
%endif

%files devel
%defattr(-, root, root)
%{_includedir}/gstreamer-%{gst_branch}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%if %suse_version >= 1120
%{_datadir}/gir-1.0/*.gir
%endif

%files doc
%defattr(-, root, root)
%{_datadir}/gtk-doc/html/gst-plugins-base-libs-%{gst_branch}
%{_datadir}/gtk-doc/html/gst-plugins-base-plugins-%{gst_branch}

%changelog
openSUSE Build Service is sponsored by