diff --git a/.cvsignore b/.cvsignore index 92c87ac..949e4d9 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1,2 @@ phonon-4.2.0.tar.bz2 +gstreamer-logo.svg diff --git a/phonon.spec b/phonon.spec index d6eda3e..1d1bbff 100644 --- a/phonon.spec +++ b/phonon.spec @@ -2,12 +2,13 @@ Summary: Multimedia framework api Name: phonon Version: 4.2.0 -Release: 5%{?dist} +Release: 6%{?dist} Group: System Environment/Libraries License: LGPLv2+ URL: http://phonon.kde.org/ Source0: ftp://ftp.kde.org/pub/kde/stable/phonon/%{version}/phonon-%{version}.tar.bz2 +Source1: http://gstreamer.freedesktop.org/data/images/artwork/gstreamer-logo.svg # Make PulseAudio the default again when listed by the backend. # Note that this currently only works for the Xine backend. Device selection in # the GStreamer backend is weird: there is a setting for "sink" which cannot be @@ -25,6 +26,7 @@ BuildRequires: gstreamer-plugins-base-devel BuildRequires: kde-filesystem BuildRequires: libxml2-devel BuildRequires: qt4-devel >= 4.4.0 +BuildRequires: ImageMagick ## hard-code phonon-backend-xine, for now, so yum doesn't choose -gstreamer by default Requires: phonon-backend-xine @@ -40,6 +42,8 @@ Requires: %{name} = %{version}-%{release} Provides: phonon-backend = %{version}-%{release} Obsoletes: %{name}-backend-gst < 4.2.0-4 Provides: %{name}-backend-gst = %{version}-%{release} +Requires(post): xdg-utils +Requires(postun): xdg-utils %description backend-gstreamer %{summary}. @@ -72,6 +76,12 @@ rm -rf %{buildroot} make install DESTDIR=%{buildroot} -C %{_target_platform} +install -D -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}-gstreamer.svg +for i in 16 22 32 48 64 128; do + mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps + convert -geometry ${i}x${i} %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/%{name}-gstreamer.png +done + %clean @@ -82,6 +92,11 @@ rm -rf %{buildroot} %postun -p /sbin/ldconfig +%post -n %{name}-backend-gstreamer +xdg-icon-resource forceupdate --theme hicolor 2> /dev/null || : + +%postun -n %{name}-backend-gstreamer +xdg-icon-resource forceupdate --theme hicolor 2> /dev/null || : %files %defattr(-,root,root,-) @@ -96,6 +111,8 @@ rm -rf %{buildroot} %defattr(-,root,root,-) %{_kde4_libdir}/kde4/plugins/phonon_backend/phonon_gstreamer.so %{_kde4_datadir}/kde4/services/phononbackends/gstreamer.desktop +%_datadir/icons/hicolor/*/*/*.png +%_datadir/icons/hicolor/*/*/*.svg %files devel %defattr(-,root,root,-) @@ -107,6 +124,9 @@ rm -rf %{buildroot} %changelog +* 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 diff --git a/sources b/sources index c1fa261..7524844 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ de80b0f055886a6946acc7886713e23e phonon-4.2.0.tar.bz2 +8e3924f417fea67f72b2105faed2119c gstreamer-logo.svg