File phonon.spec of Package phonon

#
# spec file for package phonon
#
# 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/
#


Name:           phonon
Version:        4.8.1
Release:        0
Summary:        Multimedia Platform Abstraction
License:        LGPL-2.0+
Group:          System/GUI/KDE
Url:            http://phonon.kde.org/
Source:         http://download.kde.org/stable/%{name}/%{version}/%{name}-%{version}.tar.xz
Source1:        baselibs.conf
BuildRequires:  automoc4
BuildRequires:  cmake
BuildRequires:  fdupes
BuildRequires:  kde4-filesystem
BuildRequires:  libpulse-devel
BuildRequires:  libqt4-devel
BuildRequires:  xz
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.

%package devel
Summary:        Phonon Multimedia Platform Abstraction
Group:          Development/Libraries/KDE
Requires:       libphonon4 = %{version}
Requires:       libqt4-devel

%description devel
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.

%package -n libphonon4
Summary:        Phonon Multimedia Platform Abstraction
Group:          System/Libraries
Recommends:     phonon-backend
Provides:       %{name} = %{version}
Obsoletes:      %{name} <= %{version}
%requires_ge    libqt4-x11

%description -n libphonon4
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
  %cmake_kde4 -d build -- -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=true
  %make_jobs

%install
  cd build
  %kde4_makeinstall
  install -d -m 0755 %{buildroot}%{_libdir}/kde4/plugins
  install -d -m 0755 %{buildroot}%{_libdir}/kde4/plugins/phonon_backend
  %fdupes %{buildroot}%{_includedir}

%post   -n libphonon4 -p /sbin/ldconfig

%postun -n libphonon4 -p /sbin/ldconfig

%files -n libphonon4
%defattr(-,root,root)
%{_libdir}/libphonon.so.*
%{_libdir}/libphononexperimental.so.*
%dir %{_libdir}/kde4/plugins
%dir %{_libdir}/kde4/plugins/phonon_backend
%{_datadir}/dbus-1/interfaces/org.kde.Phonon.AudioOutput.xml

%files devel
%defattr(-,root,root)
%{_datadir}/phonon/
%{_datadir}/qt4/mkspecs/modules/
%{_includedir}/phonon
%{_includedir}/KDE
%{_libdir}/libphonon.so
%{_libdir}/libphononexperimental.so
%{_libdir}/cmake/phonon/
%{_libdir}/pkgconfig/phonon.pc
%{_libdir}/qt4/plugins/designer/libphononwidgets.so

%changelog
openSUSE Build Service is sponsored by