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
Version: 4.5.0
Release: 4
License: LGPLv2.0+
Summary: Multimedia Platform Abstraction
Url: http://phonon.kde.org/
Group: System/GUI/KDE
Source0: %{name}-%{version}.tar.bz2
Source1: baselibs.conf
Patch1: phonon-math-include.patch
Patch2: phonon-pulseaudio-1.0.patch
BuildRequires: QtZeitgeist-devel
BuildRequires: automoc4
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: kde4-filesystem
BuildRequires: libpulse-devel
BuildRequires: libqt4-devel
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
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.
%package -n libphonon4
License: LGPLv2.0+
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
%patch1
%if 0%{?suse_version} == 1210
%patch2
%endif
%build
%cmake_kde4 -d build
%make_jobs
%install
cd build
%make_install
install -d -m 0755 %{buildroot}%{_kde4_modulesdir}/plugins
install -d -m 0755 %{buildroot}%{_kde4_modulesdir}/plugins/phonon_backend
%fdupes %{buildroot}%{_kde4_includedir}
%clean
rm -rf %{buildroot}
%post -n libphonon4 -p /sbin/ldconfig
%postun -n libphonon4 -p /sbin/ldconfig
%files -n libphonon4
%defattr(-,root,root)
%{_kde4_libdir}/libphonon.so.*
%{_kde4_libdir}/libphononexperimental.so.*
%dir %{_kde4_modulesdir}/plugins
%dir %{_kde4_modulesdir}/plugins/phonon_backend
%{_datadir}/dbus-1/interfaces/org.kde.Phonon.AudioOutput.xml
%files devel
%defattr(-,root,root)
%{_datadir}/phonon-buildsystem/
%{_datadir}/qt4/mkspecs/modules/
%{_kde4_includedir}/phonon
%{_kde4_includedir}/KDE
%{_kde4_libdir}/libphonon.so
%{_kde4_libdir}/libphononexperimental.so
%{_kde4_libdir}/pkgconfig/phonon.pc
%{_kde4_libdir}/qt4/plugins/designer/libphononwidgets.so
%changelog