]> git.pld-linux.org Git - packages/bmpx.git/blobdiff - bmpx.spec
- updated to 0.12.5
[packages/bmpx.git] / bmpx.spec
index 19f013b1753233e12772f542274e2ff50a31db1d..f1e663d6a7c7c4cf7dd42481b727c9f3af58ab6a 100644 (file)
--- a/bmpx.spec
+++ b/bmpx.spec
@@ -1,24 +1,21 @@
 #
 # 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.5
+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://dl.sourceforge.net/beepmp/%{name}-%{version}.tar.bz2
+# Source0-md5: fc9d1fabd48c5a2d70553603b74363aa
 Source1:       mp3license
-Patch0:                %{name}-embedded-images.patch
-URL:           http://bmpx.berlios.de/
+Patch1:                %{name}-desktop.patch
+URL:           http://beep-media-player.org/
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: cairo-devel >= 1.0.0
 BuildRequires: curl-devel
 BuildRequires: dbus-glib-devel
 BuildRequires: esound-devel >= 0.2.8
@@ -27,15 +24,26 @@ 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}-plugin-flow = %{epoch}:%{version}-%{release}
+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}
+Requires:      libhrel = 0.1-2
+%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
@@ -49,11 +57,24 @@ 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}
+Requires:      libchroma-devel
+Requires:      libhrel-devel
 
 %description devel
 Header files required for compiling BMPx media player plugins.
@@ -62,6 +83,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
@@ -75,9 +108,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
@@ -98,9 +131,99 @@ Transport plugin for BMPx.
 %description plugin-transport -l pl
 Wtyczka Transport dla BMPx.
 
+%package remote
+Summary:       BMPx python status watcher
+Summary(pl):   Obserwator statusu BMPx
+Group:         X11/Applications/Sound
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+
+%description remote
+BMPx python status watcher.
+
+%description remote -l pl
+Obserwator statusu 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+).
+
+%package -n libchroma
+Summary:       Chroma library
+Summary(pl):   Biblioteka Chroma
+Group:         X11/Development/Libraries
+Version:       0.1
+
+%description -n libchroma
+Chroma library.
+
+%description -n libchroma -l pl
+Biblioteka Chroma.
+
+%package -n libchroma-devel
+Summary:        Header files for Chroma library
+Summary(pl):    Pliki nag³ówkowe biblioteki Chroma
+Group:          X11/Development/Libraries
+Requires:       libchroma = %{epoch}:%{version}-%{release}
+Version:       0.1
+
+%description -n libchroma-devel
+Header files for Chroma library.
+
+%description -n libchroma-devel -l pl
+Pliki nag³ówkowe biblioteki Chroma.
+
+%package -n libhrel
+Summary:       Holyrel library
+Summary(pl):   Biblioteka Holyrel
+Group:         X11/Development/Libraries
+Version:       0.1
+Release:       2
+
+%description -n libhrel
+Holyrel library.
+
+%description -n libhrel -l pl
+Biblioteka Holyrel.
+
+%package -n libhrel-devel
+Summary:        Header files for Holyrel library
+Summary(pl):    Pliki nag³ówkowe biblioteki Holyrel
+Group:          X11/Development/Libraries
+Requires:       libhrel = %{epoch}:%{version}-%{release}
+Version:       0.1
+Release:       2
+
+%description -n libhrel-devel
+Header files for Holyrel library.
+
+%description -n libhrel-devel -l pl
+Pliki nag³ówkowe biblioteki Holyrel.
+
 %prep
-%setup -q -n %{name}-%{version}_%{_rc}
-%patch0 -p1
+%setup -q
+%patch1 -p1
 
 %build
 rm -rf autom4te.cache
@@ -116,7 +239,7 @@ rm -rf autom4te.cache
        --enable-xine \
 %endif
        --enable-shared \
-       --disable-static
+       --enable-static
 %{__make}
 
 %install
@@ -132,7 +255,8 @@ 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}
+rm -f $RPM_BUILD_ROOT%{_bindir}/{ctt,hash_*,hrel-demo}
 
 %find_lang %{name}
 
@@ -143,31 +267,64 @@ 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
+
+%post  libs -p /sbin/ldconfig
+%postun        libs -p /sbin/ldconfig
 
-/sbin/ldconfig
+%post  -n libchroma -p /sbin/ldconfig
+%postun        -n libchroma -p /sbin/ldconfig
+
+%post  -n libhrel -p /sbin/ldconfig
+%postun        -n libhrel -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
@@ -182,3 +339,37 @@ umask 022
 %defattr(644,root,root,755)
 %dir %{_libdir}/bmpx/plugins/transport
 %attr(755,root,root) %{_libdir}/bmpx/plugins/transport/*.so*
+
+%files remote
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/bmpx-remote
+
+%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
+
+%files -n libchroma
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libchroma.so.*.*.*
+
+%files -n libchroma-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libchroma.so
+%{_libdir}/libchroma.la
+%{_includedir}/libchroma
+
+%files -n libhrel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libhrel.so.*.*.*
+
+%files -n libhrel-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libhrel.so
+%{_libdir}/libhrel.la
+%{_pkgconfigdir}/hrel.pc
+%{_includedir}/libhrel
This page took 0.109023 seconds and 4 git commands to generate.