%define phonon_version_major 4.3 Summary: Multimedia framework api Name: phonon Version: 4.3.1 Release: 12%{?dist} Group: Applications/Multimedia License: LGPLv2+ URL: http://phonon.kde.org/ Source0: ftp://ftp.kde.org/pub/kde/stable/4.2.1/phonon-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # build only the xine backend Patch0: phonon-4.3.1-xineonly.patch # bump PulseAudio's priority in the xine backend Patch1: phonon-4.2.96-xine-pulseaudio.patch # make InitialPreference=9 Patch2: phonon-4.3.1-xine-InitialPreference.patch ## Upstream patches # fix for non-ascii filenames in xine backend Patch100: phonon-4.3.2-kdebug#172242.patch # escape '#' too Patch101: phonon-4.3.2-kdebug#172242-2.patch BuildRequires: automoc4 >= 0.9.86 BuildRequires: cmake >= 2.6.0 BuildRequires: glib2-devel BuildRequires: kde-filesystem BuildRequires: libxcb-devel BuildRequires: libxml2-devel BuildRequires: pkgconfig BuildRequires: qt4-devel >= 4.5.1 BuildRequires: xine-lib-devel %description %{summary}. %package backend-xine Summary: Xine phonon backend Group: Applications/Multimedia Provides: phonon-backend%{?_isa} = %{version}-%{release} Requires: phonon%{?_isa} >= %{phonon_version_major} %description backend-xine %{summary}. %prep %setup -q -n phonon-%{version}%{?alphatag} %patch0 -p1 -b .xineonly %patch1 -p1 -b .xine-pulseaudio %patch100 -p1 -b .xine_nonascii %patch101 -p1 -b .xine_nonascii-2 %build mkdir -p %{_target_platform} pushd %{_target_platform} %{cmake} .. popd make %{?_smp_mflags} -C %{_target_platform} %install rm -rf %{buildroot} make install/fast DESTDIR=%{buildroot} -C %{_target_platform} # move the oxygen-only phonon-xine icons to hicolor mv %{buildroot}%{_datadir}/icons/oxygen \ %{buildroot}%{_datadir}/icons/hicolor %clean rm -rf %{buildroot} %post backend-xine touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: %posttrans backend-xine gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: %postun backend-xine if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: fi %files backend-xine %defattr(-,root,root,-) %doc COPYING.LIB %defattr(-,root,root,-) %{_kde4_libdir}/kde4/plugins/phonon_backend/phonon_xine.so %{_kde4_datadir}/kde4/services/phononbackends/xine.desktop %{_datadir}/icons/hicolor/*/apps/phonon-xine.* %changelog * Sun Jul 26 2009 Fedora Release Engineering - 4.3.1-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Jun 18 2009 Rex Dieter - 4.3.1-11 - fix for '#' in filenames * Tue Jun 09 2009 Than Ngo - 4.3.1-10 - make InitialPreference=9 * Sun Jun 07 2009 Rex Dieter - 4.3.1-9 - optimize scriptlets - Req: phonon >= %%phonon_version_major * Fri Jun 05 2009 Kevin Kofler - 4.3.1-8 - restore patches to the xine backend * Fri Jun 05 2009 Than Ngo - 4.3.1-7 - only xine-backend * Wed May 20 2009 Rex Dieter - 4.3.1-6 - phonon-backend-gstreamer multilib conflict (#501816) * Wed May 20 2009 Rex Dieter - 4.3.1-5 - s/ImageMagick/GraphicsMagick/, avail on more secondary archs, is faster, yields better results. * Mon May 04 2009 Rex Dieter - 4.3.1-4 - fix Source0 Url - xine backend will not play files with non-ascii names (kdebug#172242) * Sat Apr 11 2009 Rex Dieter - 4.3.1-3 - optimize scriptlets - Provides/Requires: phonon-backend%%{_isa} ... * Tue Mar 3 2009 Lukáš Tinkl - 4.3.1-2 - backport GStreamer backend bugfixes (UTF-8 file handling, volume fader) * Fri Feb 27 2009 Than Ngo - 4.3.1-1 - 4.3.1 * Thu Feb 26 2009 Fedora Release Engineering - 4.3.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sun Feb 01 2009 Rex Dieter - 4.3.0-5 - put icons in the right subpkg * Thu Jan 29 2009 Rex Dieter - 4.3.0-4 - Requires: phonon-backend >= %%version - move icons to hicolor theme and into -backend subpkgs - BR: libxcb-devel - move phonon-gstreamer.svg to sources * Mon Jan 26 2009 Rex Dieter - 4.3.0-3 - BR: automoc4 >= 0.9.86 * Fri Jan 23 2009 Kevin Kofler - 4.3.0-2 - fix typo in postun scriptlet (introduced in 4.2.96-3) * Thu Jan 22 2009 Than Ngo - 4.3.0-1 - 4.3.0 * Thu Jan 08 2009 Rex Dieter - 4.2.96-3 - new tarball - put icons/scriptlets into main pkg - Requires: phonon-backend * Thu Jan 08 2009 Lorenzo Villani - 4.2.96-2 - add gstreaer-logo.svg * Thu Jan 08 2009 Lorenzo Villani - 4.2.96-1 - 4.2.96 - rebase phonon-4.2.0-pulseaudio.patch (-> phonon-4.2.96-pulseaudio.patch) - rebase phonon-4.2.70-xine-pulseaudio.patch (-> phonon-4.2.96-xine-pulseaudio.patch) * Fri Dec 12 2008 Rex Dieter 4.2.80-3 - rebuild for pkgconfig deps * Tue Nov 25 2008 Kevin Kofler 4.2.80-2 - phonon-backend-xine: don't Obsolete/Provide itself, Provides: phonon-backend * Tue Nov 25 2008 Than Ngo 4.2.80-1 - 4.2.80 * Fri Nov 21 2008 Lorenzo Villani - 4.2.80-0.1.20081121svn887051 - Use subversion (4.2.80) snapshot - phonon-backend-xine subpkg - make VERBOSE=1 - make install/fast - Xine backend is in phonon now, add xine-lib-devel as BR - BR cmake >= 2.6.0 - forward-port xine pulseaudio patch * Tue Sep 30 2008 Than Ngo 4.2.0-7 - fix tranparent issue by convert * Tue Sep 30 2008 Than Ngo 4.2.0-6 - add missing icon * Wed Sep 17 2008 Rex Dieter 4.2.0-5 - Requires: phonon-backend-xine * Sun Aug 10 2008 Kevin Kofler 4.2.0-4 - rename -backend-gst back to -backend-gstreamer (longer name as -backend-xine) The GStreamer backend isn't ready to be the default, and KDE 4.1 also defaults to the Xine backend when both are installed. - fix PulseAudio not being the default in the Xine backend (4.2 regression) * Sat Aug 02 2008 Rex Dieter 4.2.0-3 - -backend-gst: Obsoletes: -backend-gstreamer < 4.2.0-2 * Thu Jul 24 2008 Rex Dieter 4.2.0-2 - rename -backend-gstreamer -> backend-gst * Wed Jul 23 2008 Rex Dieter 4.2.0-1 - phonon-4.2.0 * Mon Jul 14 2008 Rex Dieter 4.2-0.4.beta2 - BR: automoc4 - -backend-gstreamer subpkg * Tue Jul 01 2008 Kevin Kofler 4.2-0.3.beta2 - drop automoc libsuffix patch, no longer needed * Fri Jun 20 2008 Rex Dieter 4.2-0.2.beta2 - phonon 4.2beta2 (aka 4.1.83) * Sat Jun 14 2008 Rex Dieter 4.2-0.1.20080614svn820634 - first try