File phonon.spec of Package phonon
#
# spec file for package phonon (Version 4.2.0)
#
# Copyright (c) 2008 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 libqt4-devel
%if %suse_version > 1010
BuildRequires: gstreamer-0_10-plugins-base-devel
%else
BuildRequires: alsa-devel
%endif
%if %suse_version > 1020
BuildRequires: fdupes
%endif
Version: 4.2.0
Release: 40
License: LGPL v2.0 or later
Url: http://phonon.kde.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Group: Development/Libraries/KDE
Summary: Phonon Multimedia Platform Abstraction
Source0: %name-%version.tar.bz2
%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: LGPL v2.0 or later
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: LGPL v2.0 or later
Summary: Phonon Multimedia Platform Abstraction
Group: Development/Libraries/KDE
%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.
Authors:
--------
Matthias Kretz
%if %suse_version > 1010
%package backend-gstreamer-0_10
License: LGPL v2.0 or later
Summary: Phonon Multimedia Platform Abstraction
Group: Development/Libraries/KDE
Provides: phonon-backend = %version
Requires: libphonon4 = %version
%description backend-gstreamer-0_10
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
%endif
%prep
%setup -q
%build
%cmake_kde4 -d build
%make_jobs
%install
cd build
%makeinstall
%if %suse_version > 1020
%fdupes $RPM_BUILD_ROOT/usr/include
%endif
%clean
rm -rf "$RPM_BUILD_ROOT"
%post -n libphonon4 -p /sbin/ldconfig
%postun -n libphonon4 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%if %suse_version > 1010
%dir %_kde4_modules/plugins
%dir %_kde4_modules/plugins/phonon_backend
%endif
/usr/share/dbus-1/interfaces/org.kde.Phonon.AudioOutput.xml
%files -n libphonon4
%defattr(-,root,root)
%_libdir/libphonon.so.4
%_libdir/libphonon.so.4.2.0
%_libdir/libphononexperimental.so.4
%_libdir/libphononexperimental.so.4.2.0
%files devel
%defattr(-,root,root)
/usr/include/phonon
%dir /usr/include/KDE
/usr/include/KDE/Phonon
%_libdir/libphonon.so
%_libdir/libphononexperimental.so
%_libdir/pkgconfig/phonon.pc
%if %suse_version > 1010
%files backend-gstreamer-0_10
%defattr(-,root,root)
%_kde4_modules/plugins/phonon_backend/phonon_gstreamer.so
%_kde_share_dir/services/phononbackends/gstreamer.desktop
%endif
%changelog
* Tue Oct 21 2008 dmueller@suse.de
- add versioned requires on libphonon4
* Wed Sep 10 2008 dmueller@suse.de
- fix build for older distros
* Tue Jul 22 2008 dmueller@suse.de
- update to 4.2.0:
* bugfixes
* Thu Jul 03 2008 aj@suse.de
- Add baselibs.conf for libphonon.
* Thu Jul 03 2008 dmueller@suse.de
- enable gstreamer-010 based backend
* Fri Jun 20 2008 dmueller@suse.de
- update to 4.1.83:
* more bugfixes, reworked audio device handling
* Tue May 27 2008 dmueller@suse.de
- Initial package (4.1.81)