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

#
# spec file for package phonon-backend-gstreamer
#
# Copyright (c) 2014 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 rversion 4.7.2git
%define _phonon_version 4.7.1

Name:           phonon-backend-gstreamer
Version:        4.7.2~git20140418
Release:        0
Summary:        Phonon Multimedia Platform Abstraction
License:        LGPL-2.1 or LGPL-3.0
Group:          System/GUI/KDE
Url:            http://phonon.kde.org/
#Source0:        http://download.kde.org/stable/phonon/%{filename}/%{version}/%{name}-%{version}.tar.xz
Source0:        %{name}-%{rversion}.tar.gz
BuildRequires:  alsa-devel
BuildRequires:  automoc4
BuildRequires:  cmake
BuildRequires:  fdupes
%if 0%{?suse_version} > 1310
BuildRequires:  pkgconfig(gstreamer-1.0)
BuildRequires:  pkgconfig(gstreamer-plugins-base-1.0)
%else 
BuildRequires:  gstreamer-0_10-plugins-base-devel
%endif
BuildRequires:  -post-build-checks
BuildRequires:  kde4-filesystem
BuildRequires:  phonon-devel
BuildRequires:  update-desktop-files
BuildRequires:  xz
BuildRequires:  pkgconfig(libxml-2.0)
Requires:       libphonon4 => %{_phonon_version}
%if 0%{?suse_version} > 1310
Supplements:    packageand(gstreamer-plugins-base:phonon)
%else
Supplements:    packageand(gstreamer-0_10-plugins-base:phonon)
%endif
Obsoletes:      phonon-backend-gstreamer-0_10 < %{version}
Provides:       phonon-backend = %{version}
Provides:       phonon-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 %{name}-%{rversion}

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  cd build
  %kde4_makeinstall
  %suse_update_desktop_file %{buildroot}%{_kde4_servicesdir}/phononbackends/gstreamer.desktop
  %fdupes %{buildroot}%{_includedir}

%files
%defattr(-,root,root)
%doc COPYING.LIB
%{_kde4_modulesdir}/plugins/phonon_backend/phonon_gstreamer.so
%{_kde4_servicesdir}/phononbackends/gstreamer.desktop
%{_kde4_iconsdir}/*/*/apps/phonon-gstreamer.*

%changelog
openSUSE Build Service is sponsored by