File gstreamer-plugins-qt.spec of Package gstreamer-plugins-qt
#
# spec file for package gstreamer-plugins-qt
#
# Copyright (c) 2017 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 gstnum 1.0
%define glibnum 2_0
%define gstmin 0
%define glibmin 0
Name: gstreamer-plugins-qt
Version: 1.2.0
Release: 0
Summary: C++/Qt bindings for GStreamer
License: LGPL-2.1+
Group: Productivity/Multimedia/Other
Url: http://gstreamer.freedesktop.org/wiki/QtGStreamer
Source: http://gstreamer.freedesktop.org/src/qt-gstreamer/qt-gstreamer-%{version}.tar.xz
# PATCH-FIX-UPSTREAM qt-gstreamer-fix-memleak.patch zaitor@opensuse.org -- Fix a memleak and sync issues
Patch0: qt-gstreamer-fix-memleak.patch
# PATCH-FIX-UPSTREAM qt-gstreamer-fixbuild-gst_1-6.patch zaitor@opensuse.org -- Fix build with gst 1.5 and newer.
Patch1: qt-gstreamer-fixbuild-gst_1-6.patch
# PATCH-FIX-UPSTREAM fix-boost-moc.patch idonmez@suse.com -- Fix build with boost 1.60
Patch2: fix-boost-moc.patch
BuildRequires: bison
%if 0%{?suse_version} > 1325
BuildRequires: libboost_headers-devel
%else
BuildRequires: boost-devel
%endif
BuildRequires: cmake >= 2.8.9
BuildRequires: doxygen
BuildRequires: flex
BuildRequires: kde4-filesystem
BuildRequires: pkgconfig(QtCore)
BuildRequires: pkgconfig(QtDeclarative)
BuildRequires: pkgconfig(QtOpenGL)
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(glesv2)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(gstreamer-1.0)
BuildRequires: pkgconfig(gstreamer-app-1.0)
BuildRequires: pkgconfig(gstreamer-base-1.0)
BuildRequires: pkgconfig(gstreamer-pbutils-1.0)
BuildRequires: pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires: pkgconfig(gstreamer-video-1.0)
Obsoletes: gstreamer-0_10-plugins-qt
Obsoletes: libQtGStreamer-0_10-0
Provides: libQtGLib-2_0-0 = %{version}
# FIXME drop the '<' on next version bump
Obsoletes: libQtGLib-2_0-0 <= %{version}
Provides: libQtGStreamer-1.0-0 = %{version}
# FIXME drop the '<' on next version bump
Obsoletes: libQtGStreamer-1.0-0 <= %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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.
This package contains C++/Qt bindings for GStreamer.
%prep
%setup -q -n qt-gstreamer-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%package devel
Summary: Include files and libraries mandatory for development
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
%if 0%{?suse_version} > 1325
Requires: libboost_headers-devel
%else
Requires: boost-devel
%endif
Requires: pkgconfig(QtCore)
Requires: pkgconfig(QtDeclarative)
Requires: pkgconfig(QtGui)
Provides: libQtGLib-devel = %{version}
# FIXME drop the '<' on next version bump
Obsoletes: libQtGLib-devel <= %{version}
%description 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 plug-in-based architecture
means that new data types or processing capabilities can be added by
installing new plug-ins.
This package contains development files and headers for the C++/Qt
bindings for GStreamer.
%build
%cmake_kde4 -d build -- -DQTGSTREAMER_STATIC=OFF -DQTGSTREAMER_EXAMPLES=OFF
%make_jobs
%install
%kde4_makeinstall -C build
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc COPYING HACKING NEWS README
%dir %{_libdir}/qt4/
%dir %{_libdir}/qt4/plugins/
%dir %{_libdir}/qt4/plugins/imports/
%{_libdir}/libQtGLib-2.0.so.*
%{_libdir}/libQtGStreamer-%{gstnum}.so.*
%{_libdir}/libQtGStreamerUi-%{gstnum}.so.*
%{_libdir}/libQtGStreamerUtils-%{gstnum}.so.*
%{_libdir}/qt4/plugins/imports/QtGStreamer/
%{_libdir}/gstreamer-%{gstnum}/libgstqtvideosink.so
%files devel
%defattr(-,root,root)
%{_libdir}/cmake/QtGStreamer/
%{_includedir}/QtGStreamer/
%{_libdir}/libQtGLib-2.0.so
%{_libdir}/libQtGStreamer-%{gstnum}.so
%{_libdir}/libQtGStreamerUi-%{gstnum}.so
%{_libdir}/libQtGStreamerUtils-%{gstnum}.so
%{_libdir}/pkgconfig/QtGLib-2.0.pc
%{_libdir}/pkgconfig/QtGStreamer-%{gstnum}.pc
%{_libdir}/pkgconfig/QtGStreamerUi-%{gstnum}.pc
%{_libdir}/pkgconfig/QtGStreamerUtils-%{gstnum}.pc
%changelog