File gstreamer-0_10-plugins-qt.spec of Package gstreamer-0_10-plugins-qt
#
# spec file for package gstreamer-0_10-plugins-qt
#
# Copyright (c) 2013 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 gstnum 0_10
%define glibnum 2_0
%define gstmin 0
%define glibmin 0
Name: gstreamer-%{gstnum}-plugins-qt
Version: 0.10.3
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.bz2
BuildRequires: bison
BuildRequires: boost-devel
BuildRequires: cmake >= 2.8.9
BuildRequires: doxygen
BuildRequires: flex
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-0.10)
BuildRequires: pkgconfig(gstreamer-app-0.10)
BuildRequires: pkgconfig(gstreamer-base-0.10)
BuildRequires: pkgconfig(gstreamer-interfaces-0.10)
BuildRequires: pkgconfig(gstreamer-pbutils-0.10)
BuildRequires: pkgconfig(gstreamer-plugins-base-0.10)
BuildRequires: pkgconfig(gstreamer-video-0.10)
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}
%package devel
Summary: Include files and libraries mandatory for development
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: libQtGStreamer-%{gstnum}-%{gstmin} = %{version}
Requires: pkgconfig(QtDeclarative)
Requires: pkgconfig(QtGLib-2.0) = %{version}
Requires: pkgconfig(QtOpenGL)
Requires: pkgconfig(gl)
Requires: pkgconfig(glesv2)
Requires: pkgconfig(gstreamer-0.10)
Requires: pkgconfig(gstreamer-app-0.10)
Requires: pkgconfig(gstreamer-base-0.10)
Requires: pkgconfig(gstreamer-interfaces-0.10)
Requires: pkgconfig(gstreamer-plugins-base-0.10)
Requires: pkgconfig(gstreamer-video-0.10)
Provides: libQtGStreamer-%{gstnum}-devel = %{version}
Obsoletes: libQtGStreamer-%{gstnum}-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.
%package -n libQtGLib-devel
Summary: C++/Qt bindings for GLib
Group: Development/Libraries/C and C++
Requires: boost-devel
Requires: libQtGLib-%{glibnum}-%{glibmin} = %{version}
Requires: pkgconfig(QtCore)
Requires: pkgconfig(glib-2.0)
Requires: pkgconfig(gobject-2.0)
%description -n libQtGLib-devel
GLib is a general-purpose utility library, which provides many useful
data types, macros, type conversions, string utilities, file utilities,
a main loop abstraction, and so on.
%package -n libQtGLib-%{glibnum}-%{glibmin}
Summary: C++/Qt bindings for GLib
Group: System/Libraries
%description -n libQtGLib-%{glibnum}-%{glibmin}
GLib is a general-purpose utility library, which provides many useful
data types, macros, type conversions, string utilities, file utilities,
a main loop abstraction, and so on.
This package contains C++/Qt bindings for GLib.
This package contains development files and headers for the C++/Qt
bindings for GLib.
%package -n libQtGStreamer-%{gstnum}-%{gstmin}
Summary: C++/Qt bindings for GStreamer
Group: Productivity/Multimedia/Other
Requires: %{name}
%description -n libQtGStreamer-%{gstnum}-%{gstmin}
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.
%build
mkdir build
cd build
cmake -DCMAKE_CXX_FLAGS="%{optflags}" \
-DCMAKE_C_FLAGS="%{optflags}" \
-DCMAKE_INSTALL_PREFIX="%{_prefix}" \
-DQTGSTREAMER_STATIC=OFF \
-DQTGSTREAMER_EXAMPLES=OFF \
-DCMAKE_BUILD_TYPE="Release" \
../
make %{?_smp_mflags}
%install
cd build
%make_install
%post -n libQtGLib-%{glibnum}-%{glibmin} -p /sbin/ldconfig
%postun -n libQtGLib-%{glibnum}-%{glibmin} -p /sbin/ldconfig
%post -n libQtGStreamer-%{gstnum}-%{gstmin} -p /sbin/ldconfig
%postun -n libQtGStreamer-%{gstnum}-%{gstmin} -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}/qt4/plugins/imports/QtGStreamer/
%{_libdir}/gstreamer-0.10/libgstqtvideosink.so
%files -n libQtGLib-%{glibnum}-%{glibmin}
%defattr(-,root,root)
%{_libdir}/libQtGLib-2.0.so.*
%files -n libQtGLib-devel
%defattr(-,root,root)
%dir %{_includedir}/QtGStreamer/
%{_includedir}/QtGStreamer/QGlib/
%{_libdir}/cmake/QtGStreamer/
%{_libdir}/libQtGLib-2.0.so
%{_libdir}/pkgconfig/QtGLib-2.0.pc
%files -n libQtGStreamer-%{gstnum}-%{gstmin}
%defattr(-,root,root)
%{_libdir}/libQtGStreamer-0.10.so.*
%{_libdir}/libQtGStreamerUi-0.10.so.*
%{_libdir}/libQtGStreamerUtils-0.10.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/QtGStreamer/QGst/
%{_libdir}/libQtGStreamer-0.10.so
%{_libdir}/libQtGStreamerUi-0.10.so
%{_libdir}/libQtGStreamerUtils-0.10.so
%{_libdir}/pkgconfig/QtGStreamer-0.10.pc
%{_libdir}/pkgconfig/QtGStreamerUi-0.10.pc
%{_libdir}/pkgconfig/QtGStreamerUtils-0.10.pc
%changelog