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

# spec file for package phonon-backend-gstreamer
# Copyright (c) 2015 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

%define _phonon_version 4.6.50
Name:           phonon-backend-gstreamer
Version:        4.8.2
Release:        0
Summary:        Phonon Multimedia Platform Abstraction
License:        LGPL-2.1 or LGPL-3.0
Group:          System/GUI/KDE
# PATCH-FIX-UPSTREAM Fix-finding-recent-versions-of-GStreamer.patch
Patch0:         Fix-finding-recent-versions-of-GStreamer.patch
BuildRequires:  automoc4
BuildRequires:  cmake
BuildRequires:  fdupes
BuildRequires:  kde4-filesystem
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(gstreamer-1.0)
BuildRequires:  pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(phonon) >= %{_phonon_version}
Requires:       libphonon4 >= %{_phonon_version}
Supplements:    packageand(gstreamer-plugins-base:phonon)
Obsoletes:      phonon-backend-gstreamer-0_10 < %{version}
Provides:       phonon-backend
Provides:       phonon-backend-gstreamer-0_10 = %{version}

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.

This is the GStreamer backend for Phonon.

%setup -q
%patch0 -p1

%cmake_kde4 -d build

%kde4_makeinstall -C build
%suse_update_desktop_file %{buildroot}%{_kde4_servicesdir}/phononbackends/gstreamer.desktop
%fdupes %{buildroot}%{_includedir}


%dir %{_kde4_servicesdir}/phononbackends