X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=bmpx.spec;h=335ca5d3ca5e2848f024ba95e0156ab003c092ec;hb=516ae56dc83363f7f8832b691f4aba3466a68c8d;hp=b49fb4b0e2ab5f7d7761b48aeaad2849449f77ff;hpb=b99b86a02b17d88d76f3647a70c9ef31985ba834;p=packages%2Fbmpx.git diff --git a/bmpx.spec b/bmpx.spec index b49fb4b..335ca5d 100644 --- a/bmpx.spec +++ b/bmpx.spec @@ -1,73 +1,78 @@ -# 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: 2 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 +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}-invalid-conversion.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: curl-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: gcc-c++ >= 5:4.0.0 +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: 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 Requires(post,postun): desktop-file-utils Requires(post,postun): gtk+2 >= 2:2.10.0 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 _firefoxdir %{_datadir}/mozilla-firefox %define _chromedir %{_firefoxdir}/chrome %description @@ -76,14 +81,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 @@ -92,26 +97,28 @@ 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 +Summary(pl.UTF-8): Wtyczka BMPx dla Mozilli Firefox Group: X11/Applications Requires: %{name} = %{version}-%{release} -Requires: mozilla-firefox +Requires: mozilla-firefox >= 2.0.0.1-2 %description -n mozilla-firefox-plugin-bmpx This plugin registers the lastfm:// protocol to BMPx. -%description -n mozilla-firefox-plugin-bmpx -l pl -Ta wtyczka rejestruje protokó³ lastfm:// do BMPx. +%description -n mozilla-firefox-plugin-bmpx -l pl.UTF-8 +Ta wtyczka rejestruje protokół lastfm:// do BMPx. %prep %setup -q %patch0 -p1 +%patch1 -p1 +%patch2 -p1 %build %{__libtoolize} @@ -121,14 +128,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} @@ -137,17 +138,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} +unzip -q -o xpi/bmp.xpi -d $RPM_BUILD_ROOT%{_firefoxdir} sed -e 's@chrome/bmp\.jar@bmp\.jar@' $RPM_BUILD_ROOT%{_firefoxdir}/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%{_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} @@ -155,32 +155,21 @@ 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}/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 @@ -193,7 +182,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*/*