]> git.pld-linux.org Git - packages/bmpx.git/blobdiff - bmpx.spec
- updated gettext BR
[packages/bmpx.git] / bmpx.spec
index c83c90442a291dc97a21ac20340ddfeba651a7c9..9853da9c41c76a28d616c7b300ec47d0fddc1a5f 100644 (file)
--- a/bmpx.spec
+++ b/bmpx.spec
@@ -1,73 +1,85 @@
-# TODO: use browser-plugins if plugin works with something else than firefox (e.g. seamonkey)
 #
 # Conditional build:
-%bcond_without gaim    # build without D-BUS gaim support
 %bcond_without sid     # build without sid support
-%bcond_without ofa     # build without MusicIP support
 #
 Summary:       Sound player with the WinAmp GUI, for Unix-based systems for GTK+
-Summary(pl):   Odtwarzacz d¼wiêku z interfejsem WinAmpa dla GTK+
+Summary(pl.UTF-8):     Odtwarzacz dźwięku z interfejsem WinAmpa dla GTK+
 Name:          bmpx
-Version:       0.36.0
-Release:       0.1
+Version:       0.40.14
+Release:       15
 License:       GPL v2
 Group:         X11/Applications/Sound
-Source0:       http://files.beep-media-player.org/releases/0.36/%{name}-%{version}.tar.bz2
-# Source0-md5: 4755c38432dd912dc8156ad217c2e5bf
-Source1:       mp3license
-Patch0:                %{name}-desktop.patch
-URL:           http://beep-media-player.org/
-BuildRequires: autoconf
-BuildRequires: automake
-BuildRequires: bison
-BuildRequires: boost-bind-devel
-BuildRequires: boost-call_traits-devel
-BuildRequires: boost-devel
-BuildRequires: boost-filesystem-devel
-BuildRequires: curl-devel
+Source0:       http://files.backtrace.info/releases/0.40/%{name}-%{version}.tar.bz2
+# Source0-md5: c741e05a82a82b14b6775d44a7c93c15
+Patch0:                %{name}-lib64.patch
+Patch1:                %{name}-libsoup24.patch
+Patch2:                %{name}-sidplay.patch
+Patch3:                %{name}-c++.patch
+Patch4:                %{name}-am.patch
+URL:           http://bmpx.backtrace.info/
+BuildRequires: alsa-lib-devel >= 1.0.9
+BuildRequires: autoconf >= 2.60
+BuildRequires: automake >= 1:1.8
+BuildRequires: boost-devel >= 1.35.0
+BuildRequires: cairomm-devel >= 0.6.0
+BuildRequires: cdparanoia-III-devel
 BuildRequires: dbus-glib-devel >= 0.62
-BuildRequires: esound-devel >= 0.2.8
-BuildRequires: fam-devel
-BuildRequires: flex
-%{?with_gaim:BuildRequires:    gaim-devel}
-BuildRequires: gstreamer-plugins-base-devel >= 0.10.9
-BuildRequires: gtkmm-devel >= 2.9.8
-BuildRequires: hal-devel >= 0.5.7
-BuildRequires: libglademm-devel >= 2.6.2
-BuildRequires: libnotify-devel >= 0.4.2
-BuildRequires: libmusicbrainz-devel >= 2.1.1
-%{?with_ofa:BuildRequires:     libofa-devel >= 0.9.3}
+BuildRequires: docbook-dtd45-xml
+BuildRequires: docbook-style-xsl
+BuildRequires: gettext-tools
+BuildRequires: gstreamer-plugins-base-devel >= 0.10.10
+BuildRequires: gtkmm-devel >= 2.10.0
+BuildRequires: hal-devel >= 0.5.7.1
+BuildRequires: intltool >= 0.35.0
+BuildRequires: libglademm-devel >= 2.6.0
+BuildRequires: libmodplug-devel >= 0.7
+BuildRequires: libofa-devel >= 0.9.3
+BuildRequires: librsvg-devel >= 1:2.14.0
+BuildRequires: libsexymm-devel >= 0.1.9
 %{?with_sid:BuildRequires:     libsidplay-devel}
+BuildRequires: libsigc++-devel >= 2.0.0
+BuildRequires: libsoup-devel >= 2.4.0
+BuildRequires: libstdc++-devel >= 5:4.0.0
 BuildRequires: libtool
-BuildRequires: libvorbis-devel >= 1:1.0
 BuildRequires: libxml2-devel >= 1:2.6.26
-BuildRequires: mpeg4ip-devel
-BuildRequires: neon-devel >= 0.25.5
+BuildRequires: libxslt-progs
+BuildRequires: pkgconfig
 BuildRequires: rpmbuild(macros) >= 1.311
-BuildRequires: rpm-pythonprov
+BuildRequires: sqlite3-devel >= 3.3.11
 BuildRequires: startup-notification-devel >= 0.8
-BuildRequires: taglib-devel >= 1.4
+BuildRequires: taglib-devel >= 1.4-2
 BuildRequires: unzip
+BuildRequires: xorg-lib-libSM-devel
+BuildRequires: zip
 Requires(post,postun): desktop-file-utils
-Requires(post,postun): gtk+2 >= 2:2.10.0
+Requires(post,postun): gtk-update-icon-cache
 Requires(post,postun): hicolor-icon-theme
-Requires(post,postun): shared-mime-info
-Requires:      gstreamer-audio-effects-base >= 0.10.9
-Requires:      gstreamer-audio-formats >= 0.10.3
+Requires:      gstreamer-audio-effects-base
 Requires:      gstreamer-audiosink
+Suggests:      gstreamer-aac
+Suggests:      gstreamer-audio-formats >= 0.10.3
+Suggests:      gstreamer-cdparanoia
+Suggests:      gstreamer-ffmpeg
+Suggests:      gstreamer-flac
+Suggests:      gstreamer-mad
+Suggests:      gstreamer-mms
+Suggests:      gstreamer-musepack
+Suggests:      gstreamer-plugins-bad
+Suggests:      gstreamer-sid
+Suggests:      gstreamer-vorbis
 Obsoletes:     bmpx-curses
 Obsoletes:     bmpx-libs
 Obsoletes:     bmpx-plugin-container
 Obsoletes:     bmpx-plugin-flow
-Obsoletes:     bmpx-plugins-base
 Obsoletes:     bmpx-plugin-transport
+Obsoletes:     bmpx-plugins-base
 Obsoletes:     bmpx-remote
 Obsoletes:     bmpx-remote-gtk
 Obsoletes:     bmpx-static
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _firefoxdir     %{_libdir}/mozilla-firefox
-%define                _chromedir      %{_firefoxdir}/chrome
+%define                _iceweaseldir   %{_datadir}/iceweasel
+%define                _chromedir      %{_iceweaseldir}/chrome
 
 %description
 BMPx is the follow-up of the BMP project with a codebase rewritten
@@ -75,14 +87,14 @@ from scratch and aims to maintain a stable audio player foundation,
 and to provide a player with a consistent and easy to understand usage
 experience.
 
-%description -l pl
-BMPx jest nastêpc± projektu BMP z przepisanym od zera kodem i skupia
-siê na utrzymaniu stabilnej podstawy odtwarzacza d¼wiêku, aby
-udostêpniæ odtwarzacz ze spójn± i ³atw± do zrozumienia obs³ug±.
+%description -l pl.UTF-8
+BMPx jest następcą projektu BMP z przepisanym od zera kodem i skupia
+się na utrzymaniu stabilnej podstawy odtwarzacza dźwięku, aby
+udostępnić odtwarzacz ze spójną i łatwą do zrozumienia obsługą.
 
 %package devel
 Summary:       Header files for BMPx media player
-Summary(pl):   Pliki nag³ówkowe odtwarzacza multimedialnego BMPx
+Summary(pl.UTF-8):     Pliki nagłówkowe odtwarzacza multimedialnego BMPx
 Group:         X11/Development/Libraries
 Requires:      dbus-glib-devel >= 0.62
 Obsoletes:     libchroma-devel
@@ -91,26 +103,33 @@ Obsoletes: libhrel-devel
 %description devel
 Header files required for compiling BMPx media player plugins.
 
-%description devel -l pl
-Pliki nag³ówkowe potrzebne do kompilowania wtyczek odtwarzacza
+%description devel -l pl.UTF-8
+Pliki nagłówkowe potrzebne do kompilowania wtyczek odtwarzacza
 multimedialnego BMPx.
 
-%package -n mozilla-firefox-plugin-bmpx
-Summary:       BMPx plugin for Mozilla Firefox
-Summary(pl):   Wtyczka BMPx dla Mozilli Firefox
+%package -n iceweasel-extension-bmpx
+Summary:       Iceweasel extension - BMPx
+Summary(pl.UTF-8):     Rozszerzenie dla przeglądarki Iceweasel - BMPx
 Group:         X11/Applications
 Requires:      %{name} = %{version}-%{release}
-Requires:      mozilla-firefox
+Requires:      iceweasel
+Provides:      mozilla-firefox-plugin-bmpx
+Obsoletes:     mozilla-firefox-plugin-bmpx
 
-%description -n mozilla-firefox-plugin-bmpx
-This plugin registers the lastfm:// protocol to BMPx.
+%description -n iceweasel-extension-bmpx
+Iceweasel extension which registers the lastfm:// protocol to BMPx.
 
-%description -n mozilla-firefox-plugin-bmpx -l pl
-Ta wtyczka rejestruje protokó³ lastfm:// do BMPx.
+%description -n iceweasel-extension-bmpx -l pl.UTF-8
+Rozszerzenie dla przeglądarki Iceweasel, które rejestruje protokół
+lastfm:// do BMPx.
 
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
 
 %build
 %{__libtoolize}
@@ -120,14 +139,8 @@ Ta wtyczka rejestruje protok
 %{__automake}
 %configure \
        --enable-hal \
-       --enable-gamin \
-       --enable-libnotify \
-       --enable-mp4v2 \
-       %{?with_ofa:--enable-ofa} \
+       --enable-modplug \
        %{?with_sid:--enable-sid} \
-       --enable-shared \
-       --enable-static \
-       %{?with_gaim:--enable-gaim} \
        --with-dbus-services-dir=%{_datadir}/dbus-1/services
 %{__make}
 
@@ -136,17 +149,16 @@ rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_chromedir}
 
 %{__make} install \
-       DESTDIR=$RPM_BUILD_ROOT \
-       m4datadir=%{_aclocaldir}
+       DESTDIR=$RPM_BUILD_ROOT
 
-unzip xpi/bmp.xpi -d $RPM_BUILD_ROOT%{_firefoxdir}
-sed -e 's@chrome/bmp\.jar@bmp\.jar@' $RPM_BUILD_ROOT%{_firefoxdir}/chrome.manifest \
+unzip -q -o xpi/bmp.xpi -d $RPM_BUILD_ROOT%{_iceweaseldir}
+sed -e 's@chrome/bmp\.jar@bmp\.jar@' $RPM_BUILD_ROOT%{_iceweaseldir}/chrome.manifest \
        > $RPM_BUILD_ROOT%{_chromedir}/bmp.manifest
 
-rm -f $RPM_BUILD_ROOT%{_firefoxdir}/{install.rdf,chrome.manifest}
-rm -f $RPM_BUILD_ROOT%{_datadir}/bmpx/data/GPL.txt
-rm -f $RPM_BUILD_ROOT%{_libdir}/bmpx/plugins/{taglib,vfs/container,vfs/transport}/*.{a,la}
-rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/th_TH
+rm -f $RPM_BUILD_ROOT%{_iceweaseldir}/{install.rdf,chrome.manifest}
+rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
+rm -f $RPM_BUILD_ROOT%{_libdir}/bmpx/plugins/{taglib,vfs/container,vfs/transport}/*.la
+mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{th_TH,th}
 
 %find_lang %{name}
 
@@ -154,32 +166,22 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/th_TH
 rm -rf $RPM_BUILD_ROOT
 
 %post
+/sbin/ldconfig
 %update_desktop_database_post
-%update_mime_database
 %update_icon_cache hicolor
 
-%banner %{name} -e << EOF
-Remember to install appropriate GStreamer plugins for files
-you want to play:
-- gstreamer-cdparanoia (for Audio-CD)
-- gstreamer-flac (for FLAC)
-- gstreamer-mad (for MP3s)
-- gstreamer-vorbis (for Ogg Vorbis)
-EOF
-
 %postun
+/sbin/ldconfig
 %update_desktop_database_postun
-%update_mime_database
 %update_icon_cache hicolor
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README
+%attr(755,root,root) %{_bindir}/bmp2
 %attr(755,root,root) %{_bindir}/beep-media-player-2
-%attr(755,root,root) %{_bindir}/bmp-enqueue-files-2.0 
-%attr(755,root,root) %{_bindir}/bmp-enqueue-uris-2.0
 %attr(755,root,root) %{_bindir}/bmp-play-files-2.0
-%attr(755,root,root) %{_bindir}/bmp-play-lastfm-2.0
+%attr(755,root,root) %{_bindir}/bmp-play-uris-2.0
 %attr(755,root,root) %{_libexecdir}/beep-media-player-2-bin
 %attr(755,root,root) %{_libexecdir}/beep-media-player-2-sentinel
 
@@ -192,7 +194,7 @@ EOF
 %attr(755,root,root) %{_libdir}/bmpx/plugins/taglib/*.so*
 %attr(755,root,root) %{_libdir}/bmpx/plugins/vfs/container/*.so*
 %attr(755,root,root) %{_libdir}/bmpx/plugins/vfs/transport/*.so*
-
+%{_docdir}/bmpx
 %{_datadir}/bmpx
 %{_datadir}/dbus-1/services/*.service
 %{_mandir}/man*/*
@@ -204,7 +206,7 @@ EOF
 %{_includedir}/bmp-2.0
 %{_pkgconfigdir}/*.pc
 
-%files -n mozilla-firefox-plugin-bmpx
+%files -n iceweasel-extension-bmpx
 %defattr(644,root,root,755)
 %{_chromedir}/bmp.jar
 %{_chromedir}/bmp.manifest
This page took 0.11246 seconds and 4 git commands to generate.