]> git.pld-linux.org Git - packages/bmpx.git/commitdiff
- desktop patch added, unifications, banner support, require some audio
authorfreetz <freetz@pld-linux.org>
Wed, 26 Oct 2005 16:23:15 +0000 (16:23 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  stuff to play something, expaned %%postun

Changed files:
    bmpx.spec -> 1.19

bmpx.spec

index 9f7e3f413bf7ea502c80b729319360875fb3cada..67c530d5dea92f033ad3bb602b43e6815678748b 100644 (file)
--- a/bmpx.spec
+++ b/bmpx.spec
@@ -1,9 +1,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
@@ -13,6 +13,7 @@ Source0:      http://download.berlios.de/bmpx/%{name}-%{version}.tar.gz
 # Source0-md5: 40965fe0e9707a49a773c91eff777fb2
 Source1:       mp3license
 Patch0:                %{name}-embedded-images.patch
+Patch1:                %{name}-desktop.patch
 URL:           http://bmpx.berlios.de/
 BuildRequires: autoconf
 BuildRequires: automake
@@ -34,6 +35,13 @@ BuildRequires:       xine-lib-devel
 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
@@ -99,6 +107,7 @@ Wtyczka Transport dla BMPx.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 rm -rf autom4te.cache
@@ -138,16 +147,33 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/bmpx/plugins/*/*.la
 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)
This page took 0.097083 seconds and 4 git commands to generate.