- 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
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 \
mv %{buildroot}%{_datadir}/icons/oxygen
%{buildroot}%{_datadir}/icons/hicolor
fi
%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 <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
- restore patches to the xine backend

Loading…
Cancel
Save