- optmize scriptlets

- Req: phonon >= %phonon_version_major
epel9
Rex Dieter 16 years ago
parent a1684f6c5e
commit cc0770267b

@ -1,7 +1,10 @@
%define phonon_version_major 4.3
Summary: Multimedia framework api Summary: Multimedia framework api
Name: phonon Name: phonon
Version: 4.3.1 Version: 4.3.1
Release: 8%{?dist} Release: 9%{?dist}
Group: Applications/Multimedia Group: Applications/Multimedia
License: LGPLv2+ License: LGPLv2+
URL: http://phonon.kde.org/ URL: http://phonon.kde.org/
@ -31,12 +34,14 @@ BuildRequires: xine-lib-devel
%{summary}. %{summary}.
%package backend-xine %package backend-xine
Summary: xine phonon backend Summary: Xine phonon backend
Group: Applications/Multimedia Group: Applications/Multimedia
Provides: phonon-backend%{?_isa} = %{version}-%{release} Provides: phonon-backend%{?_isa} = %{version}-%{release}
Requires: phonon%{?_isa} >= %{phonon_version_major}
%description backend-xine %description backend-xine
%{summary}. %{summary}.
%prep %prep
%setup -q -n phonon-%{version}%{?alphatag} %setup -q -n phonon-%{version}%{?alphatag}
%patch0 -p1 -b .xineonly %patch0 -p1 -b .xineonly
@ -59,10 +64,9 @@ rm -rf %{buildroot}
make install/fast DESTDIR=%{buildroot} -C %{_target_platform} make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
# move the oxygen-only phonon-xine icons to hicolor # move the oxygen-only phonon-xine icons to hicolor
if [ ! -d %{buildroot}%{_datadir}/icons/hicolor ] ; then mv %{buildroot}%{_datadir}/icons/oxygen
mv %{buildroot}%{_datadir}/icons/oxygen \
%{buildroot}%{_datadir}/icons/hicolor %{buildroot}%{_datadir}/icons/hicolor
fi
%clean %clean
rm -rf %{buildroot} rm -rf %{buildroot}
@ -71,6 +75,9 @@ rm -rf %{buildroot}
%post backend-xine %post backend-xine
touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null ||: touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null ||:
%posttrans backend-xine
gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null ||:
%postun backend-xine %postun backend-xine
if [ $1 -eq 0 ] ; then if [ $1 -eq 0 ] ; then
touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null ||: touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null ||:
@ -86,7 +93,12 @@ fi
%{_kde4_datadir}/kde4/services/phononbackends/xine.desktop %{_kde4_datadir}/kde4/services/phononbackends/xine.desktop
%{_datadir}/icons/hicolor/*/apps/phonon-xine.* %{_datadir}/icons/hicolor/*/apps/phonon-xine.*
%changelog %changelog
* Sun Jun 07 2009 Rex Dieter <rdieter@fedoraproject.org> - 4.3.1-9
- optmize scriptlets
- Req: phonon >= %%phonon_version_major
* Fri Jun 05 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> - 4.3.1-8 * Fri Jun 05 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> - 4.3.1-8
- restore patches to the xine backend - restore patches to the xine backend

Loading…
Cancel
Save