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

#
# spec file for package phonon-backend-xine
#
# Copyright (c) 2011 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:           phonon-backend-xine
BuildRequires:  alsa-devel automoc4 cmake kde4-filesystem phonon-devel update-desktop-files
BuildRequires:  xine-devel
BuildRequires:  fdupes
Version:        4.4.4
Release:        6
License:        LGPLv2.0+
Url:            http://phonon.kde.org/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Group:          System/GUI/KDE
Summary:        Phonon Multimedia Platform Abstraction
Source0:        %{name}-%{version}.tar.bz2
Requires:       libphonon4 >= %version
Supplements:    packageand(libxine1-codecs:phonon)
Provides:       phonon-backend = %version

%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

%build
  # compile everything for now, actually we should compile
  # against installed phonon, but this is always the same
  # in OBS setup
  %cmake_kde4 -d build
  %make_jobs

%install
  cd build
  %makeinstall
  %suse_update_desktop_file $RPM_BUILD_ROOT%_kde_share_dir/services/phononbackends/xine.desktop
  %fdupes $RPM_BUILD_ROOT/usr/include

%clean
rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-,root,root)
%_kde4_modules/plugins/phonon_backend/phonon_xine.so
%_kde_share_dir/services/phononbackends/xine.desktop
%_datadir/icons/*/*/apps/phonon-xine.*

%changelog
openSUSE Build Service is sponsored by