From cc0770267bca1d92705d4c63b07b59ce12677491 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Mon, 8 Jun 2009 00:42:36 +0000 Subject: [PATCH] - optmize scriptlets - Req: phonon >= %phonon_version_major --- phonon.spec | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/phonon.spec b/phonon.spec index 1e3344c..528b0c9 100644 --- a/phonon.spec +++ b/phonon.spec @@ -1,7 +1,10 @@ + +%define phonon_version_major 4.3 + Summary: Multimedia framework api Name: phonon Version: 4.3.1 -Release: 8%{?dist} +Release: 9%{?dist} Group: Applications/Multimedia License: LGPLv2+ URL: http://phonon.kde.org/ @@ -31,12 +34,14 @@ BuildRequires: xine-lib-devel %{summary}. %package backend-xine -Summary: xine phonon backend +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 @@ -59,10 +64,9 @@ rm -rf %{buildroot} make install/fast DESTDIR=%{buildroot} -C %{_target_platform} # move the oxygen-only phonon-xine icons to hicolor -if [ ! -d %{buildroot}%{_datadir}/icons/hicolor ] ; then - mv %{buildroot}%{_datadir}/icons/oxygen \ - %{buildroot}%{_datadir}/icons/hicolor -fi +mv %{buildroot}%{_datadir}/icons/oxygen + %{buildroot}%{_datadir}/icons/hicolor + %clean rm -rf %{buildroot} @@ -71,6 +75,9 @@ rm -rf %{buildroot} %post backend-xine touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null ||: +%posttrans backend-xine +gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null ||: + %postun backend-xine if [ $1 -eq 0 ] ; then touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null ||: @@ -86,7 +93,12 @@ fi %{_kde4_datadir}/kde4/services/phononbackends/xine.desktop %{_datadir}/icons/hicolor/*/apps/phonon-xine.* + %changelog +* Sun Jun 07 2009 Rex Dieter - 4.3.1-9 +- optmize scriptlets +- Req: phonon >= %%phonon_version_major + * Fri Jun 05 2009 Kevin Kofler - 4.3.1-8 - restore patches to the xine backend