gstreamer/gstreamer.spec
Dominique Leuenberger 930ce7b99f Accepting request 592305 from home:iznogood:branches:multimedia:libs
- Update to version 1.12.5:
  + pad: fix some stream deactivation deadlocks/races.
  + registrychunks: don't read from unaligned memory when loading
    registry.
  + ptp: fix build failure with #undef USE_MEASUREMENT_FILTERING.
  + downloadbuffer: Don't hold the mutex while posting the
    download-complete message.
  + playbin3: Fix accessing invalid index in GstStream when
    received select-stream event.
  + id3v2: re-fix handling of ID3 v2.4 tags with extended headers.
  + audio: fix handling of U32BE format.
  + videodecoder: Reset QoS time after pushing segment. This fixes
    playbin gapless playback with videos.
  + subparse: push out of last chunk of text if last line has no
    newline.
  + aacparse: When parsing raw input, accept frames of any size.
    This fixes handling of encoded silence.
  + splitmuxsrc: Improve not-linked handling.
  + rtspsrc: also proxy multicast-iface property to RTCP udpsrc.
  + flacdec: flush flac decoder on lost sync, so that it can
    re-sync.
  + matroskamux: Only mark new clusters as keyframe if they start
    on a keyframe or we're muxing only audio.
  + matroskamux: Clip maximum cluster duration to the maximum
    possible value.
  + h264parse: reset internal 'state' variable properly.
  + x264enc: fix build with newer x264 with support for multiple
    bit depths.
  + x265enc: Fix tagging of keyframes on output buffers.
  + glimagesink: Correct PAR in output caps when transforming.
  + vtdec: destroy and create the GL context on start()/stop(),
    fixing a refcount loop.
  + player: fix criticals when reading info/track properties that
    are NULL.
  + lv2: fix inverted boolean properties.
  + rtponviftimestamp: fix state change function init/reset, fixing
    memory corruption or leaks on shutdown.
  + libav: some build issues fixes.
  + rtsp-server: Place netaddress meta on packets received via TCP.
    Fixes keep-alive via RTCP in TCP interleaved mode.
  + rtsp-server: gi annotation fixes.
  + gst-libav: internal ffmpeg copy was updated to ffmpeg 3.3.6.
  + Various fixes for memory leaks, deadlocks and crashes in all
    modules.

OBS-URL: https://build.opensuse.org/request/show/592305
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/gstreamer?expand=0&rev=117
2018-03-29 14:18:36 +00:00

226 lines
8.2 KiB
RPMSpec

#
# spec file for package gstreamer
#
# Copyright (c) 2018 SUSE LINUX 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 _name gstreamer
%define gst_branch 1.0
Name: gstreamer
Version: 1.12.5
Release: 0
Summary: Streaming-Media Framework Runtime
License: LGPL-2.1-or-later
Group: Productivity/Multimedia/Other
URL: http://gstreamer.freedesktop.org/
Source0: https://gstreamer.freedesktop.org/src/gstreamer/%{_name}-%{version}.tar.xz
Source1: gstreamer.macros
Source2: gstreamer.prov
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
BuildRequires: gnome-patch-translation
BuildRequires: gobject-introspection-devel >= 1.31.1
BuildRequires: gtk-doc >= 1.12
BuildRequires: libcap-devel
BuildRequires: libtool
BuildRequires: libxml2-devel
BuildRequires: pkgconfig
BuildRequires: python3-base
BuildRequires: python3-xml
BuildRequires: translation-update-upstream
BuildRequires: pkgconfig(bash-completion) >= 2.0
BuildRequires: pkgconfig(glib-2.0) >= 2.40.0
BuildRequires: pkgconfig(libunwind)
# Ensure that the documentation corresponds with the installed version:
Requires: libgstreamer-1_0-0 = %{version}
# Core modules may depend on new enough libraries:
Requires: libgstreamer-1_0-0 >= %{version}
Requires(pre): permissions
Recommends: %{name}-lang = %{version}
# Generic name, never used in SuSE:
Provides: gstreamer-doc = %{version}
%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.
%package -n libgstreamer-1_0-0
Summary: Streaming-Media Framework Runtime
# We want to have core modules installed:
Group: System/Libraries
Requires: %{name}
%description -n libgstreamer-1_0-0
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 -n typelib-1_0-Gst-1_0
Summary: Streaming-Media Framework Runtime -- Introspection bindings
Group: System/Libraries
%description -n typelib-1_0-Gst-1_0
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.
%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.
%package utils
Summary: Streaming-Media Framework Runtime
# Generic name, never used in SuSE:
Group: Productivity/Multimedia/Other
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}
# gstreamer-utils is required for the gstreamer-provides rpm magic.
Requires: gstreamer-utils = %{version}
Requires: libgstreamer-1_0-0 = %{version}
Requires: typelib-1_0-Gst-1_0 = %{version}
%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}
translation-update-upstream po gstreamer-%{gst_branch}
gnome-patch-translation-prepare po gstreamer-%{gst_branch}
%patch1 -p1
gnome-patch-translation-update po gstreamer-%{gst_branch}
%build
export CFLAGS="%{optflags} -fno-strict-aliasing -fPIE"
export LDFLAGS="-pie"
export PYTHON=%{_bindir}/python3
%configure \
--with-ptp-helper-permissions=capabilities \
--with-package-name='openSUSE GStreamer package' \
--with-package-origin='http://download.opensuse.org' \
--enable-gtk-doc \
--enable-introspection \
--disable-benchmarks \
--disable-examples \
--disable-static \
--disable-tests
make %{?_smp_mflags}
%install
%make_install
%find_lang %{name}-%{gst_branch}
find %{buildroot} -type f -name "*.la" -delete -print
mkdir -p %{buildroot}%{_datadir}/gstreamer-%{gst_branch}/presets
# Install the rpm macros
install -m644 -D %{SOURCE1} %{buildroot}%{_libexecdir}/rpm/fileattrs/gstreamer.attr
install -m755 -D %{SOURCE2} %{buildroot}%{_libexecdir}/rpm/gstreamer-provides
%fdupes %{buildroot}
%verifyscript
%verify_permissions -e %{_libexecdir}/gstreamer-%{gst_branch}/gst-ptp-helper
%post
%set_permissions %{_libexecdir}/gstreamer-%{gst_branch}/gst-ptp-helper
%post -n libgstreamer-1_0-0 -p /sbin/ldconfig
%postun -n libgstreamer-1_0-0 -p /sbin/ldconfig
%files
%license COPYING
%dir %{_datadir}/gstreamer-%{gst_branch}
%dir %{_datadir}/gstreamer-%{gst_branch}/presets
%dir %{_libdir}/gstreamer-%{gst_branch}
%{_libdir}/gstreamer-%{gst_branch}/libgstcoreelements.so
%{_libdir}/gstreamer-%{gst_branch}/libgstcoretracers.so
%dir %{_libexecdir}/gstreamer-%{gst_branch}
%{_libexecdir}/gstreamer-%{gst_branch}/gst-completion-helper
%{_libexecdir}/gstreamer-%{gst_branch}/gst-plugin-scanner
%verify(not mode caps) %{_libexecdir}/gstreamer-%{gst_branch}/gst-ptp-helper
%{_datadir}/bash-completion/completions/
%{_datadir}/bash-completion/helpers/
%files lang -f %{name}-%{gst_branch}.lang
%files -n libgstreamer-1_0-0
%{_libdir}/*.so.*
%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
%files utils
%{_bindir}/*-%{gst_branch}
%{_mandir}/man?/*-%{gst_branch}*%{ext_man}
%files devel
%{_datadir}/aclocal/*.m4
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_libexecdir}/rpm/gstreamer-provides
%{_libexecdir}/rpm/fileattrs/gstreamer.attr
%{_datadir}/gir-1.0/*.gir
%files doc
%doc AUTHORS ChangeLog NEWS README RELEASE
%{_datadir}/gtk-doc/html/*
%changelog