# # spec file for package gstreamer-plugins-base # # Copyright (c) 2012 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/ # %define build_v4l 0%{?suse_version} <= 1140 %define with_vfs 0 Name: gstreamer-plugins-base %define _name gst-plugins-base Version: 0.11.1 Release: 0 %define gst_branch 0.11 BuildRequires: alsa-devel BuildRequires: cdparanoia-devel BuildRequires: check-devel %if %{with_vfs} BuildRequires: gnome-vfs2-devel %endif BuildRequires: gstreamer-devel >= 0.11.1 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 %if %{build_v4l} BuildRequires: libv4l-devel %endif BuildRequires: libvisual-devel BuildRequires: libvorbis-devel BuildRequires: libxml2-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 BuildRequires: zlib-devel %if %suse_version >= 1120 BuildRequires: gobject-introspection-devel >= 0.9.12 %endif Source: http://gstreamer.freedesktop.org/src/gst-plugins-base/%{_name}-%{version}.tar.bz2 Source2: baselibs.conf Url: http://gstreamer.freedesktop.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-build Summary: GStreamer Streaming-Media Framework Plug-Ins License: GPL-2.0+ ; LGPL-2.1+ Group: Productivity/Multimedia/Other Supplements: gstreamer # Generic name, never used in SuSE: Provides: gst-plugins-base = %{version} Recommends: %{name}-lang = %{version} # Core modules may depend on new enough libraries: Requires: libgstinterfaces-0_11-0 >= %{version} PreReq: filesystem %define gstreamer_plugins_base_req %(zgrep --text "^GST[_A-Z]*_REQ" %{S:0} | sort -u | sed 's/GST_REQ=/gstreamer >= /') Requires: %gstreamer_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. %if %{with_vfs} %package -n gstreamer-plugin-gnomevfs 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-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. %endif %package -n libgstinterfaces-0_11-0 # 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_11-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} %description -n libgstinterfaces-0_11-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. %if %suse_version >= 1120 %package -n typelib-1_0-GstInterfaces-0_11 Summary: GStreamer Streaming-Media Framework Plug-Ins -- Introspection bindings Group: System/Libraries %description -n typelib-1_0-GstInterfaces-0_11 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. This package provides the GObject Introspection bindings for GStreamer plug-ins. %endif %package -n libgstapp-0_11-26 Summary: GStreamer Streaming-Media Framework Plug-Ins Group: System/Libraries # We want to have base modules installed: Requires: %{name} %description -n libgstapp-0_11-26 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. %if %suse_version >= 1120 %package -n typelib-1_0-GstApp-0_11 Summary: GStreamer Streaming-Media Framework Plug-Ins -- Introspection bindings Group: System/Libraries %description -n typelib-1_0-GstApp-0_11 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. This package provides the GObject Introspection bindings for GStreamer plug-ins. %endif %package devel Summary: Include files and libraries mandatory for development with gstreamer-plugins-base Group: Development/Libraries/C and C++ Requires: libgstapp-0_11-26 = %{version} Requires: libgstinterfaces-0_11-0 = %{version} %if %suse_version >= 1120 Requires: typelib-1_0-GstApp-0_11 = %{version} Requires: typelib-1_0-GstInterfaces-0_11 = %{version} %endif # 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-plugins-base. %package doc Summary: Documentation for gstreamer-plugins-base Group: Development/Libraries/C and C++ Requires: %{name} = %{version} # Generic name, never used in SuSE: Provides: gst-plugins-base-doc = %{version} %description doc This package contains documentation for the gstreamer-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. 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_11-0 -p /sbin/ldconfig %postun -n libgstinterfaces-0_11-0 -p /sbin/ldconfig %post -n libgstapp-0_11-26 -p /sbin/ldconfig %postun -n libgstapp-0_11-26 -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}/libgstplayback.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 %if %{build_v4l} %{_libdir}/gstreamer-%{gst_branch}/libgstvideo4linux.so %endif %{_libdir}/gstreamer-%{gst_branch}/libgstvideoconvert.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}.* %if %{with_vfs} %files -n gstreamer-plugin-gnomevfs %defattr(-, root, root) %{_libdir}/gstreamer-%{gst_branch}/libgstgnomevfs.so %endif %files lang -f %{_name}-%{gst_branch}.lang %files -n libgstinterfaces-0_11-0 %defattr(-, root, root) %{_libdir}/*.so.* %exclude %{_libdir}/libgstapp*.so.* # Files needed by libgsttag %dir %{_datadir}/gst-plugins-base %{_datadir}/gst-plugins-base/license-translations.dict %if %suse_version >= 1120 %files -n typelib-1_0-GstInterfaces-0_11 %defattr(-, root, root) %{_libdir}/girepository-1.0/*.typelib %exclude %{_libdir}/girepository-1.0/GstApp-*.typelib %endif %files -n libgstapp-0_11-26 %defattr(-, root, root) %{_libdir}/libgstapp*.so.* %if %suse_version >= 1120 %files -n typelib-1_0-GstApp-0_11 %defattr(-, root, root) %{_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