File phonon4qt5-backend-gstreamer.spec of Package phonon4qt5-backend-gstreamer

#
# spec file for package phonon4qt5-backend-gstreamer
#
# Copyright (c) 2016 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/
#


Name:           phonon4qt5-backend-gstreamer
Version:        4.9.0
Release:        0
Summary:        Phonon Multimedia Platform Abstraction
License:        LGPL-2.1 or LGPL-3.0
Group:          System/GUI/KDE
Url:            http://phonon.kde.org/
%define filename phonon-backend-gstreamer
%define _phonon4qt5_version 4.9.0
Source:         http://download.kde.org/stable/phonon/%{filename}/%{version}/%{filename}-%{version}.tar.xz
BuildRequires:  alsa-devel
BuildRequires:  cmake
BuildRequires:  kf5-filesystem
BuildRequires:  libxml2-devel
BuildRequires:  xz
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5OpenGL)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5X11Extras)
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(gstreamer-1.0)
BuildRequires:  pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:  pkgconfig(phonon4qt5) >= %{_phonon4qt5_version}
Requires:       libphonon4qt5 => %{_phonon4qt5_version}
Supplements:    packageand(gstreamer-plugins-base:phonon4qt5)
Obsoletes:      phonon4qt5-backend-gstreamer-0_10 < %{version}
Provides:       phonon4qt5-backend = %{version}
Provides:       phonon4qt5-backend-gstreamer = %{version}
Provides:       phonon4qt5-backend-gstreamer-0_10 = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Phonon is a cross-platform portable Multimedia Support Abstraction,
which allows you to play multiple audio or video formats with the same
quality on all platforms, no matter which underlying architecture is
used.

%prep
%setup -q -n phonon-gstreamer-%{version}

%build
  %cmake_kf5 -d build -- -DPHONON_BUILD_PHONON4QT5=ON
  %make_jobs

%install
  %kf5_makeinstall -C build
  # Icons conflict with phonon-gst, so remove them (for now)
  rm -rf %{buildroot}%{_datadir}/icons/*/*/apps/

%files
%defattr(-,root,root)
%doc COPYING*
%dir %{_kf5_plugindir}/phonon4qt5_backend
%{_kf5_plugindir}/phonon4qt5_backend/phonon_gstreamer.so

%changelog
openSUSE Build Service is sponsored by