SPECS: bmpx.spec - desktop patch added, unifications, banner suppo...

freetz freetz at pld-linux.org
Wed Oct 26 18:23:21 CEST 2005


Author: freetz                       Date: Wed Oct 26 16:23:20 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- desktop patch added, unifications, banner support, require some audio
  stuff to play something, expaned %%postun

---- Files affected:
SPECS:
   bmpx.spec (1.18 -> 1.19) 

---- Diffs:

================================================================
Index: SPECS/bmpx.spec
diff -u SPECS/bmpx.spec:1.18 SPECS/bmpx.spec:1.19
--- SPECS/bmpx.spec:1.18	Wed Oct 26 17:44:43 2005
+++ SPECS/bmpx.spec	Wed Oct 26 18:23:15 2005
@@ -2,9 +2,9 @@
 #
 # Conditional build:
 %bcond_with	gstreamer	# build with GStreamer support (instead of XINE)
-
-Summary:	Sound player with the WinAmp GUI, for Unix-based systems for GTK+2
-Summary(pl):	Odtwarzacz dźwięku z interfejsem WinAmpa dla GTK+2
+#
+Summary:	Sound player with the WinAmp GUI, for Unix-based systems for GTK+
+Summary(pl):	Odtwarzacz dźwięku z interfejsem WinAmpa dla GTK+
 Name:		bmpx
 Version:	0.12.1
 Release:	1
@@ -14,6 +14,7 @@
 # Source0-md5:	40965fe0e9707a49a773c91eff777fb2
 Source1:	mp3license
 Patch0:		%{name}-embedded-images.patch
+Patch1:		%{name}-desktop.patch
 URL:		http://bmpx.berlios.de/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -35,6 +36,13 @@
 Requires:	%{name}-plugin-flow = %{epoch}:%{version}-%{release}
 Requires:	%{name}-plugin-container = %{epoch}:%{version}-%{release}
 Requires:	%{name}-plugin-transport = %{epoch}:%{version}-%{release}
+%if %{with gstreamer}
+Requires:	gstreamer-audio-effects
+Requires:	gstreamer-audio-formats
+Requires:	gstreamer-audiosink
+%else
+Requires:	xine-plugin-audio
+%endif
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -100,6 +108,7 @@
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 rm -rf autom4te.cache
@@ -139,16 +148,33 @@
 rm -rf $RPM_BUILD_ROOT
 
 %post
+/sbin/ldconfig
 umask 022
 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
 
-/sbin/ldconfig
+%if %{with gstreamer}
+%banner %{name} -e << EOF
+Remember to install appropriate GStreamer plugins for files
+you want to play:
+- gstreamer-flac (for FLAC)
+- gstreamer-mad (for MP3s)
+- gstreamer-vorbis (for Ogg Vorbis)
+EOF
+%else
+%banner %{name} -e << EOF
+Remember to install appropriate xine-decode plugins for files
+you want to play:
+- xine-decode-flac (for FLAC)
+- xine-decode-ogg (for Ogg Vorbis)
+EOF
+%endif
 
 %postun
-umask 022
-[ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
-
 /sbin/ldconfig
+if [ $1 = 0 ]; then
+    umask 022
+    [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
+fi
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
@@ -188,6 +214,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.19  2005/10/26 16:23:15  freetz
+- desktop patch added, unifications, banner support, require some audio
+  stuff to play something, expaned %%postun
+
 Revision 1.18  2005/10/26 15:44:43  qboosh
 - simplified setup
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/bmpx.spec?r1=1.18&r2=1.19&f=u




More information about the pld-cvs-commit mailing list