File gstreamer-plugins-qt5.spec of Package gstreamer-plugins-qt5
#
# spec file for package gstreamer-plugins-qt5
#
# 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-qt5
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-OPENSUSE fix_gstconfig_detection.diff
Patch0: fix_gstconfig_detection.diff
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: kf5-filesystem
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5OpenGL)
BuildRequires: pkgconfig(Qt5Qml)
BuildRequires: pkgconfig(Qt5Quick)
BuildRequires: pkgconfig(Qt5Test)
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)
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
%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(Qt5Gui)
%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
%if "%{?_lib}" == "lib64"
SUFFIX="64"
%else
SUFFIX=""
%endif
%cmake_kf5 -d build -- -DQTGSTREAMER_STATIC=OFF -DQTGSTREAMER_EXAMPLES=OFF -DLIB_SUFFIX=$SUFFIX -DQT_VERSION=5 -DLIB_SUFFIX=$SUFFIX -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Declarative=true
%make_jobs
%install
%kf5_makeinstall -C build
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc COPYING HACKING NEWS README
%{_libdir}/libQt5GLib-2.0.so.*
%{_libdir}/libQt5GStreamer-%{gstnum}.so.*
%{_libdir}/libQt5GStreamerQuick-%{gstnum}.so.*
%{_libdir}/libQt5GStreamerUi-%{gstnum}.so.*
%{_libdir}/libQt5GStreamerUtils-%{gstnum}.so.*
%{_libdir}/qt5/qml/QtGStreamer/
%{_libdir}/gstreamer-%{gstnum}/libgstqt5videosink.so
%files devel
%defattr(-,root,root)
%{_libdir}/cmake/Qt5GStreamer/
%{_includedir}/Qt5GStreamer/
%{_libdir}/libQt5GLib-2.0.so
%{_libdir}/libQt5GStreamer-%{gstnum}.so
%{_libdir}/libQt5GStreamerQuick-%{gstnum}.so
%{_libdir}/libQt5GStreamerUi-%{gstnum}.so
%{_libdir}/libQt5GStreamerUtils-%{gstnum}.so
%{_libdir}/pkgconfig/Qt5GLib-2.0.pc
%{_libdir}/pkgconfig/Qt5GStreamer-%{gstnum}.pc
%{_libdir}/pkgconfig/Qt5GStreamerQuick-%{gstnum}.pc
%{_libdir}/pkgconfig/Qt5GStreamerUi-%{gstnum}.pc
%{_libdir}/pkgconfig/Qt5GStreamerUtils-%{gstnum}.pc
%changelog