2011-08-17 23:41:16 +02:00
|
|
|
#
|
2012-01-23 14:29:30 +01:00
|
|
|
# spec file for package gstreamer
|
2011-08-17 23:41:16 +02:00
|
|
|
#
|
2018-03-01 08:48:33 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-08-17 23:41:16 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2012-02-20 10:52:29 +01:00
|
|
|
|
2012-01-24 10:44:58 +01:00
|
|
|
%define _name gstreamer
|
2018-03-01 08:48:33 +01:00
|
|
|
%define gst_branch 1.0
|
|
|
|
Name: gstreamer
|
2018-03-29 16:18:36 +02:00
|
|
|
Version: 1.12.5
|
2012-01-23 14:29:30 +01:00
|
|
|
Release: 0
|
2011-08-17 23:41:16 +02:00
|
|
|
Summary: Streaming-Media Framework Runtime
|
2018-03-01 08:48:33 +01:00
|
|
|
License: LGPL-2.1-or-later
|
2011-08-17 23:41:16 +02:00
|
|
|
Group: Productivity/Multimedia/Other
|
2018-03-01 08:48:33 +01:00
|
|
|
URL: http://gstreamer.freedesktop.org/
|
2017-09-21 17:56:17 +02:00
|
|
|
Source0: https://gstreamer.freedesktop.org/src/gstreamer/%{_name}-%{version}.tar.xz
|
2012-09-14 20:53:01 +02:00
|
|
|
Source1: gstreamer.macros
|
|
|
|
Source2: gstreamer.prov
|
2011-08-17 23:41:16 +02:00
|
|
|
Source99: baselibs.conf
|
|
|
|
# PATCH-FEATURE-UPSTREAM gstreamer-rpm-prov.patch bgo#588783 dimstar@opensuse.org -- Add --rpm parameter to allow creation of rpm provides, patch from fedora
|
|
|
|
Patch1: gstreamer-rpm-prov.patch
|
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: check-devel
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: flex
|
2018-03-21 10:18:12 +01:00
|
|
|
BuildRequires: gnome-patch-translation
|
2018-03-01 08:48:33 +01:00
|
|
|
BuildRequires: gobject-introspection-devel >= 1.31.1
|
|
|
|
BuildRequires: gtk-doc >= 1.12
|
2016-01-18 12:49:16 +01:00
|
|
|
BuildRequires: libcap-devel
|
2012-01-23 14:29:30 +01:00
|
|
|
BuildRequires: libtool
|
2011-08-17 23:41:16 +02:00
|
|
|
BuildRequires: libxml2-devel
|
2016-12-06 13:55:16 +01:00
|
|
|
BuildRequires: pkgconfig
|
2017-11-29 15:19:51 +01:00
|
|
|
BuildRequires: python3-base
|
2017-12-01 12:34:04 +01:00
|
|
|
BuildRequires: python3-xml
|
2018-03-21 10:18:12 +01:00
|
|
|
BuildRequires: translation-update-upstream
|
2017-05-17 21:46:26 +02:00
|
|
|
BuildRequires: pkgconfig(bash-completion) >= 2.0
|
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.40.0
|
2016-12-06 13:55:16 +01:00
|
|
|
BuildRequires: pkgconfig(libunwind)
|
2011-08-17 23:41:16 +02:00
|
|
|
# Ensure that the documentation corresponds with the installed version:
|
2012-04-21 14:53:22 +02:00
|
|
|
Requires: libgstreamer-1_0-0 = %{version}
|
2011-08-17 23:41:16 +02:00
|
|
|
# Core modules may depend on new enough libraries:
|
2012-04-21 14:53:22 +02:00
|
|
|
Requires: libgstreamer-1_0-0 >= %{version}
|
2016-01-20 11:04:58 +01:00
|
|
|
Requires(pre): permissions
|
2018-03-01 08:48:33 +01:00
|
|
|
Recommends: %{name}-lang = %{version}
|
|
|
|
# Generic name, never used in SuSE:
|
|
|
|
Provides: gstreamer-doc = %{version}
|
2011-08-17 23:41:16 +02:00
|
|
|
|
|
|
|
%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 plug-in-based architecture
|
|
|
|
means that new data types or processing capabilities can be added by
|
|
|
|
installing new plug-ins.
|
|
|
|
|
2012-04-21 14:53:22 +02:00
|
|
|
%package -n libgstreamer-1_0-0
|
2011-08-17 23:41:16 +02:00
|
|
|
Summary: Streaming-Media Framework Runtime
|
|
|
|
# We want to have core modules installed:
|
2016-12-06 13:55:16 +01:00
|
|
|
Group: System/Libraries
|
2011-08-17 23:41:16 +02:00
|
|
|
Requires: %{name}
|
|
|
|
|
2012-04-21 14:53:22 +02:00
|
|
|
%description -n libgstreamer-1_0-0
|
2011-08-17 23:41:16 +02:00
|
|
|
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 plug-in-based architecture
|
|
|
|
means that new data types or processing capabilities can be added by
|
|
|
|
installing new plug-ins.
|
|
|
|
|
2012-04-21 14:53:22 +02:00
|
|
|
%package -n typelib-1_0-Gst-1_0
|
2012-01-23 14:29:30 +01:00
|
|
|
Summary: Streaming-Media Framework Runtime -- Introspection bindings
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2012-04-21 14:53:22 +02:00
|
|
|
%description -n typelib-1_0-Gst-1_0
|
2012-01-23 14:29:30 +01:00
|
|
|
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 plug-in-based architecture
|
|
|
|
means that new data types or processing capabilities can be added by
|
|
|
|
installing new plug-ins.
|
|
|
|
|
|
|
|
This package provides the GObject Introspection bindings for GStreamer.
|
2016-09-02 09:12:55 +02:00
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: GStreamer Streaming-Media Framework Plug-Ins
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
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 plug-ins.
|
2012-01-23 14:29:30 +01:00
|
|
|
|
2011-08-17 23:41:16 +02:00
|
|
|
%package utils
|
|
|
|
Summary: Streaming-Media Framework Runtime
|
|
|
|
# Generic name, never used in SuSE:
|
2016-12-06 13:55:16 +01:00
|
|
|
Group: Productivity/Multimedia/Other
|
2011-08-17 23:41:16 +02:00
|
|
|
Provides: gstreamer:%{_bindir}/gst-launch-%{gst_branch} = %{version}
|
|
|
|
# Symbol for unversioned wrappers:
|
|
|
|
Provides: gstreamer-utils_versioned = %{version}
|
|
|
|
|
|
|
|
%description utils
|
|
|
|
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 plug-in-based architecture
|
|
|
|
means that new data types or processing capabilities can be added by
|
|
|
|
installing new plug-ins.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Include Files and Libraries mandatory for Development
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name} = %{version}
|
2012-01-23 14:29:30 +01:00
|
|
|
# gstreamer-utils is required for the gstreamer-provides rpm magic.
|
2012-09-14 20:53:01 +02:00
|
|
|
Requires: gstreamer-utils = %{version}
|
2012-04-21 14:53:22 +02:00
|
|
|
Requires: libgstreamer-1_0-0 = %{version}
|
|
|
|
Requires: typelib-1_0-Gst-1_0 = %{version}
|
2011-08-17 23:41:16 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains all necessary include files and libraries needed
|
|
|
|
to develop applications that require these.
|
|
|
|
|
|
|
|
%lang_package
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n gstreamer-%{version}
|
2012-04-21 14:53:22 +02:00
|
|
|
translation-update-upstream po gstreamer-%{gst_branch}
|
2013-03-04 21:49:49 +01:00
|
|
|
gnome-patch-translation-prepare po gstreamer-%{gst_branch}
|
2011-08-17 23:41:16 +02:00
|
|
|
%patch1 -p1
|
2013-03-04 21:49:49 +01:00
|
|
|
gnome-patch-translation-update po gstreamer-%{gst_branch}
|
2011-08-17 23:41:16 +02:00
|
|
|
|
|
|
|
%build
|
2016-01-18 12:49:16 +01:00
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing -fPIE"
|
|
|
|
export LDFLAGS="-pie"
|
2018-03-01 08:48:33 +01:00
|
|
|
export PYTHON=%{_bindir}/python3
|
2017-05-17 21:46:26 +02:00
|
|
|
%configure \
|
2016-01-18 12:49:16 +01:00
|
|
|
--with-ptp-helper-permissions=capabilities \
|
2017-05-17 21:46:26 +02:00
|
|
|
--with-package-name='openSUSE GStreamer package' \
|
|
|
|
--with-package-origin='http://download.opensuse.org' \
|
|
|
|
--enable-gtk-doc \
|
|
|
|
--enable-introspection \
|
|
|
|
--disable-benchmarks \
|
|
|
|
--disable-examples \
|
|
|
|
--disable-static \
|
2018-04-23 16:03:59 +02:00
|
|
|
--disable-tests \
|
|
|
|
--program-transform-name='s/gst-plugin-scanner/gst-plugin-scanner-%{_target_cpu}/'
|
|
|
|
sed -i 's/gst-plugin-scanner/gst-plugin-scanner-%{_target_cpu}/' config.h
|
2011-08-17 23:41:16 +02:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2018-03-01 08:48:33 +01:00
|
|
|
%make_install
|
2011-08-17 23:41:16 +02:00
|
|
|
%find_lang %{name}-%{gst_branch}
|
2018-03-01 08:48:33 +01:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2011-08-17 23:41:16 +02:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/gstreamer-%{gst_branch}/presets
|
|
|
|
# Install the rpm macros
|
2018-03-01 08:48:33 +01:00
|
|
|
install -m644 -D %{SOURCE1} %{buildroot}%{_libexecdir}/rpm/fileattrs/gstreamer.attr
|
|
|
|
install -m755 -D %{SOURCE2} %{buildroot}%{_libexecdir}/rpm/gstreamer-provides
|
2011-08-17 23:41:16 +02:00
|
|
|
%fdupes %{buildroot}
|
|
|
|
|
2016-01-20 11:04:58 +01:00
|
|
|
%verifyscript
|
|
|
|
%verify_permissions -e %{_libexecdir}/gstreamer-%{gst_branch}/gst-ptp-helper
|
|
|
|
|
|
|
|
%post
|
|
|
|
%set_permissions %{_libexecdir}/gstreamer-%{gst_branch}/gst-ptp-helper
|
|
|
|
|
2012-04-21 14:53:22 +02:00
|
|
|
%post -n libgstreamer-1_0-0 -p /sbin/ldconfig
|
|
|
|
%postun -n libgstreamer-1_0-0 -p /sbin/ldconfig
|
2011-08-17 23:41:16 +02:00
|
|
|
|
|
|
|
%files
|
2018-03-01 08:48:33 +01:00
|
|
|
%license COPYING
|
2011-08-17 23:41:16 +02:00
|
|
|
%dir %{_datadir}/gstreamer-%{gst_branch}
|
|
|
|
%dir %{_datadir}/gstreamer-%{gst_branch}/presets
|
|
|
|
%dir %{_libdir}/gstreamer-%{gst_branch}
|
2017-05-17 21:46:26 +02:00
|
|
|
%{_libdir}/gstreamer-%{gst_branch}/libgstcoreelements.so
|
|
|
|
%{_libdir}/gstreamer-%{gst_branch}/libgstcoretracers.so
|
2011-08-17 23:41:16 +02:00
|
|
|
%dir %{_libexecdir}/gstreamer-%{gst_branch}
|
2017-05-17 21:46:26 +02:00
|
|
|
%{_libexecdir}/gstreamer-%{gst_branch}/gst-completion-helper
|
2018-04-23 16:03:59 +02:00
|
|
|
%{_libexecdir}/gstreamer-%{gst_branch}/gst-plugin-scanner-%{_target_cpu}
|
2016-01-20 11:04:58 +01:00
|
|
|
%verify(not mode caps) %{_libexecdir}/gstreamer-%{gst_branch}/gst-ptp-helper
|
2015-11-18 16:11:40 +01:00
|
|
|
%{_datadir}/bash-completion/completions/
|
|
|
|
%{_datadir}/bash-completion/helpers/
|
2011-08-17 23:41:16 +02:00
|
|
|
|
|
|
|
%files lang -f %{name}-%{gst_branch}.lang
|
|
|
|
|
2012-04-21 14:53:22 +02:00
|
|
|
%files -n libgstreamer-1_0-0
|
2011-08-17 23:41:16 +02:00
|
|
|
%{_libdir}/*.so.*
|
2012-01-23 14:29:30 +01:00
|
|
|
|
2012-04-21 14:53:22 +02:00
|
|
|
%files -n typelib-1_0-Gst-1_0
|
|
|
|
%{_libdir}/girepository-1.0/Gst-1.0.typelib
|
|
|
|
%{_libdir}/girepository-1.0/GstBase-1.0.typelib
|
|
|
|
%{_libdir}/girepository-1.0/GstCheck-1.0.typelib
|
|
|
|
%{_libdir}/girepository-1.0/GstController-1.0.typelib
|
|
|
|
%{_libdir}/girepository-1.0/GstNet-1.0.typelib
|
2011-08-17 23:41:16 +02:00
|
|
|
|
|
|
|
%files utils
|
|
|
|
%{_bindir}/*-%{gst_branch}
|
2018-03-01 08:48:33 +01:00
|
|
|
%{_mandir}/man?/*-%{gst_branch}*%{ext_man}
|
2011-08-17 23:41:16 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_datadir}/aclocal/*.m4
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2012-09-14 20:53:01 +02:00
|
|
|
%{_libexecdir}/rpm/gstreamer-provides
|
|
|
|
%{_libexecdir}/rpm/fileattrs/gstreamer.attr
|
2011-08-17 23:41:16 +02:00
|
|
|
%{_datadir}/gir-1.0/*.gir
|
2016-09-02 09:12:55 +02:00
|
|
|
|
|
|
|
%files doc
|
2017-05-17 21:46:26 +02:00
|
|
|
%doc AUTHORS ChangeLog NEWS README RELEASE
|
2016-09-02 09:12:55 +02:00
|
|
|
%{_datadir}/gtk-doc/html/*
|
2011-08-17 23:41:16 +02:00
|
|
|
|
|
|
|
%changelog
|