File phonon.spec of Package phonon

#
# spec file for package phonon
#
# 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
BuildRequires:  automoc4 cmake kde4-filesystem libpulse-devel libqt4-devel
BuildRequires:  fdupes
Version:        4.4.4
Release:        1
License:        LGPLv2.0+
Url:            http://phonon.kde.org/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Group:          System/GUI/KDE
Summary:        Multimedia Platform Abstraction
Source0:        %name-%{version}.tar.bz2
Source1:        baselibs.conf
%requires_ge    libqt4
Requires:       phonon-backend >= %version
Requires:       libphonon4 = %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.



Authors:
--------
    Matthias Kretz

%package devel
License:        LGPLv2.0+
Summary:        Phonon Multimedia Platform Abstraction
Group:          Development/Libraries/KDE
Requires:       %name = %version
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.



Authors:
--------
    Matthias Kretz

%package -n libphonon4
License:        LGPLv2.0+
Summary:        Phonon Multimedia Platform Abstraction
Group:          System/Libraries
%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
  %make_jobs

%install
  cd build
  %makeinstall
  install -d -m 0755 $RPM_BUILD_ROOT/%_libdir/kde4/plugins
  install -d -m 0755 $RPM_BUILD_ROOT/%_libdir/kde4/plugins/phonon_backend
  %fdupes $RPM_BUILD_ROOT%{_includedir}

%clean
rm -rf "$RPM_BUILD_ROOT"

%post -n libphonon4 -p /sbin/ldconfig

%postun -n libphonon4 -p /sbin/ldconfig

%files
%defattr(-,root,root)
%dir %_kde4_modules/plugins
%dir %_kde4_modules/plugins/phonon_backend
%{_datadir}/dbus-1/interfaces/org.kde.Phonon.AudioOutput.xml

%files -n libphonon4
%defattr(-,root,root)
%_libdir/libphonon.so.4
%_libdir/libphonon.so.4.4.0
%_libdir/libphononexperimental.so.4
%_libdir/libphononexperimental.so.4.4.0

%files devel
%defattr(-,root,root)
%{_includedir}/phonon
%dir %{_includedir}/KDE
%dir %{_datadir}/qt4/mkspecs/modules/
%{_includedir}/KDE/Phonon
%_libdir/libphonon.so
%_libdir/libphononexperimental.so
%_libdir/pkgconfig/phonon.pc
%dir %{_datadir}/phonon-buildsystem
%{_datadir}/qt4/mkspecs/modules/qt_phonon.pri
%{_datadir}/phonon-buildsystem/FindAutomoc4.cmake
%{_datadir}/phonon-buildsystem/FindPackageHandleStandardArgs.cmake
%{_datadir}/phonon-buildsystem/FindPhonon.cmake
%{_datadir}/phonon-buildsystem/FindPhononInternal.cmake
%{_datadir}/phonon-buildsystem/FindQt4.cmake
%{_datadir}/phonon-buildsystem/MacroEnsureVersion.cmake
%{_datadir}/phonon-buildsystem/MacroLogFeature.cmake
%{_datadir}/phonon-buildsystem/MacroOptionalFindPackage.cmake
%{_datadir}/phonon-buildsystem/MacroPushRequiredVars.cmake
%{_datadir}/phonon-buildsystem/PhononMacros.cmake
%{_datadir}/phonon-buildsystem/cmake_uninstall.cmake.in

%changelog