]> git.pld-linux.org Git - packages/bmpx.git/blobdiff - bmpx.spec
- R: python-dbus for remote-gtk package
[packages/bmpx.git] / bmpx.spec
index 54d8c95158728a1ed621aa30da95ef5321f01f45..292645d8d966a2090b4f3e9cde7422d61d211320 100644 (file)
--- a/bmpx.spec
+++ b/bmpx.spec
@@ -1,24 +1,22 @@
 #
 # Conditional build:
 %bcond_with    gstreamer       # build with GStreamer support (instead of XINE)
-
-%define                _rc     RC11
-
-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
-Release:       0.%{_rc}.1
+Version:       0.12.1
+Release:       1
 License:       GPL v2
 Group:         X11/Applications/Sound
-Source0:       http://download.berlios.de/bmpx/%{name}-%{version}_%{_rc}.tar.gz
-# Source0-md5: 0d41858036dad52b3a3a3d98c79ba872
+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
-BuildRequires: cairo-devel >= 1.0.0
 BuildRequires: curl-devel
 BuildRequires: dbus-glib-devel
 BuildRequires: esound-devel >= 0.2.8
@@ -27,14 +25,25 @@ BuildRequires:      gtk+2-devel >= 2:2.8.0
 BuildRequires: libglade2-devel >= 1:2.5.1
 BuildRequires: libvorbis-devel >= 1:1.0
 BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.194
 BuildRequires: taglib-devel
 %if %{with gstreamer}
+# there is no gstreamer 0.9.x in PLD cvs yet!
 BuildRequires: gstreamer-devel >= 0.9.1
 %else
 BuildRequires: xine-lib-devel
 %endif
+Requires:      %{name}-libs = %{epoch}:%{version}-%{release}
 Requires:      %{name}-plugin-container = %{epoch}:%{version}-%{release}
+Requires:      %{name}-plugin-flow = %{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
@@ -48,11 +57,22 @@ BMPx jest nast
 siê na utrzymaniu stabilnej podstawy odtwarzacza d¼wiêku, aby
 udostêpniæ odtwarzacz ze spójn± i ³atw± do zrozumienia obs³ug±.
 
+%package libs
+Summary:       BMPx player library
+Summary(pl):   Biblioteka odtwarzacza BMPx
+Group:         X11/Development/Libraries
+
+%description libs
+BMPx player library.
+
+%description libs -l pl
+Biblioteka odtwarzacza BMPx.
+
 %package devel
 Summary:       Header files for BMPx media player
 Summary(pl):   Pliki nag³ówkowe odtwarzacza multimedialnego BMPx
 Group:         X11/Development/Libraries
-#Requires:     %{name} = %{epoch}:%{version}-%{release}
+Requires:      %{name}-libs = %{epoch}:%{version}-%{release}
 
 %description devel
 Header files required for compiling BMPx media player plugins.
@@ -61,6 +81,18 @@ Header files required for compiling BMPx media player plugins.
 Pliki nag³ówkowe potrzebne do kompilowania wtyczek odtwarzacza
 multimedialnego BMPx.
 
+%package static
+Summary:       Static BMPx library
+Summary(pl):   Statyczna biblioteka BMPx
+Group:         X11/Development/Libraries
+Requires:      %{name}-devel = %{epoch}:%{version}-%{release}
+
+%description static
+Static BMPx library.
+
+%description static -l pl
+Statyczna biblioteka BMPx.
+
 %package plugin-container
 Summary:       Container plugin for BMPx
 Summary(pl):   Wtyczka Container dla BMPx
@@ -74,9 +106,9 @@ Plugin providing support for folders, m3u & pls playlist files, etc.
 Wtyczka dodaj±ca obs³ugê folderów, playlist w formacie m3u i pls, itp.
 
 %package plugin-flow
-Summary:        Flow plugin for BMPx
-Summary(pl):    Wtyczka Flow dla BMPx
-Group:          X11/Applications/Sound
+Summary:       Flow plugin for BMPx
+Summary(pl):   Wtyczka Flow dla BMPx
+Group:         X11/Applications/Sound
 Requires:       %{name} = %{epoch}:%{version}-%{release}
 
 %description plugin-flow
@@ -97,9 +129,36 @@ Transport plugin for BMPx.
 %description plugin-transport -l pl
 Wtyczka Transport dla BMPx.
 
+%package remote-curses
+Summary:       BMPx python status watcher
+Summary(pl):   Obserwator statusu BMPx w pythonie
+Group:         X11/Applications/Sound
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+
+%description remote-curses
+BMPx python status watcher (CLI interface).
+
+%description remote-curses -l pl
+Obserwator statusu BMPx w pythonie (interfejs CLI).
+
+%package remote-gtk
+Summary:       BMPx python status watcher
+Summary(pl):   Obserwator statusu BMPx w pythonie
+Group:         X11/Applications/Sound
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+Requires:      python-dbus
+Requires:      python-pygtk-glade
+
+%description remote-gtk
+BMPx python status watcher (GTK+ interface).
+
+%description remote-gtk -l pl
+Obserwator statusu BMPx w pythonie (interfejs GTK+).
+
 %prep
-%setup -q -n %{name}-%{version}_%{_rc}
+%setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 rm -rf autom4te.cache
@@ -115,7 +174,7 @@ rm -rf autom4te.cache
        --enable-xine \
 %endif
        --enable-shared \
-       --disable-static
+       --enable-static
 %{__make}
 
 %install
@@ -131,7 +190,7 @@ install -d $RPM_BUILD_ROOT%{_pixmapsdir}
 mv -f $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/bmpx.png \
        $RPM_BUILD_ROOT%{_pixmapsdir}
 
-rm -f $RPM_BUILD_ROOT%{_libdir}/bmpx/plugins/*/*.la
+rm -f $RPM_BUILD_ROOT%{_libdir}/bmpx/plugins/*/*.{a,la}
 
 %find_lang %{name}
 
@@ -142,31 +201,58 @@ rm -rf $RPM_BUILD_ROOT
 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
+if [ $1 = 0 ]; then
+    umask 022
+    [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
+fi
 
-/sbin/ldconfig
+%post  libs -p /sbin/ldconfig
+%postun        libs -p /sbin/ldconfig
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README
-%attr(755,root,root) %{_bindir}/bmp*
-%attr(755,root,root) %{_libdir}/libskinned.so.*.*.*
+%attr(755,root,root) %{_bindir}/bmpx
+%attr(755,root,root) %{_bindir}/bmp-dbus-*
 %dir %{_libdir}/bmpx
 %dir %{_libdir}/bmpx/plugins
 %{_mandir}/man*/*
-%{_desktopdir}/*
 %{_datadir}/bmpx
-%{_datadir}/bmp-remote
+%{_desktopdir}/*
 %{_pixmapsdir}/*
 
+%files libs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libskinned.so.*.*.*
+
 %files devel
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libskinned.so
+%{_libdir}/libskinned.la
 %{_includedir}/bmpx
 
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/*.a
+
 %files plugin-container
 %defattr(644,root,root,755)
 %dir %{_libdir}/bmpx/plugins/container
@@ -181,3 +267,12 @@ umask 022
 %defattr(644,root,root,755)
 %dir %{_libdir}/bmpx/plugins/transport
 %attr(755,root,root) %{_libdir}/bmpx/plugins/transport/*.so*
+
+%files remote-curses
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/bmpty
+
+%files remote-gtk
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/bmp-remote-pygtk
+%{_datadir}/bmp-remote
This page took 0.122118 seconds and 4 git commands to generate.