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) 2012 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/
#


Name:           gstreamer-0_10-plugins-qt
Version:        0.10.2
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:  doxygen
BuildRequires:  fdupes
BuildRequires:  flex
BuildRequires:  gstreamer-0_10-plugins-base-devel
BuildRequires:  libkde4-devel
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:       boost-devel
Requires:       gstreamer-0_10-plugins-base-devel
Requires:       libQtGStreamer-0_10-0 = %{version}
Provides:       libQtGStreamer-0_10-devel = %{version}
Obsoletes:      libQtGStreamer-0_10-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 C++/Qt Bindings for GStreamer.

%package -n libQtGLib-2_0-0
Summary:        C++/Qt bindings for GLib
Group:          System/Libraries

%description -n libQtGLib-2_0-0
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.

%package -n libQtGStreamer-0_10-0
Summary:        C++/Qt bindings for GStreamer
Group:          Productivity/Multimedia/Other
Requires:       %{name}

%description -n libQtGStreamer-0_10-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 contains C++/Qt Bindings for GStreamer.

%build
  %cmake_kde4 -d build -- -DQTGSTREAMER_STATIC=OFF -DQTGSTREAMER_EXAMPLES=OFF
  %make_jobs

%install
  cd build
  %make_install
  %fdupes -s %{buildroot}%{_includedir}

%post   -n libQtGLib-2_0-0 -p /sbin/ldconfig
%postun -n libQtGLib-2_0-0 -p /sbin/ldconfig

%post   -n libQtGStreamer-0_10-0 -p /sbin/ldconfig
%postun -n libQtGStreamer-0_10-0 -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-2_0-0
%defattr(-,root,root)
%{_libdir}/libQtGLib-2.0.so.*

%files -n libQtGStreamer-0_10-0
%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/
%{_libdir}/QtGStreamer/
%{_libdir}/libQtGStreamer-0.10.so
%{_libdir}/libQtGStreamerUi-0.10.so
%{_libdir}/libQtGStreamerUtils-0.10.so
%{_libdir}/libQtGLib-2.0.so
%{_libdir}/pkgconfig/QtGLib-2.0.pc
%{_libdir}/pkgconfig/QtGStreamer-0.10.pc
%{_libdir}/pkgconfig/QtGStreamerUi-0.10.pc
%{_libdir}/pkgconfig/QtGStreamerUtils-0.10.pc

%changelog
openSUSE Build Service is sponsored by