3 %bcond_without sid # build without sid support
5 Summary: Sound player with the WinAmp GUI, for Unix-based systems for GTK+
6 Summary(pl.UTF-8): Odtwarzacz dźwięku z interfejsem WinAmpa dla GTK+
11 Group: X11/Applications/Sound
12 Source0: http://files.backtrace.info/releases/0.40/%{name}-%{version}.tar.bz2
13 # Source0-md5: c741e05a82a82b14b6775d44a7c93c15
14 Patch0: %{name}-lib64.patch
15 Patch1: %{name}-libsoup24.patch
16 Patch2: %{name}-sidplay.patch
17 Patch3: %{name}-c++.patch
18 Patch4: %{name}-am.patch
19 URL: http://bmpx.backtrace.info/
20 BuildRequires: alsa-lib-devel >= 1.0.9
21 BuildRequires: autoconf >= 2.60
22 BuildRequires: automake >= 1:1.8
23 BuildRequires: boost-devel >= 1.35.0
24 BuildRequires: cairomm-devel >= 0.6.0
25 BuildRequires: cdparanoia-III-devel
26 BuildRequires: dbus-glib-devel >= 0.62
27 BuildRequires: docbook-dtd45-xml
28 BuildRequires: docbook-style-xsl
29 BuildRequires: gettext-tools
30 BuildRequires: gstreamer-plugins-base-devel >= 0.10.10
31 BuildRequires: gtkmm-devel >= 2.10.0
32 BuildRequires: hal-devel >= 0.5.7.1
33 BuildRequires: intltool >= 0.35.0
34 BuildRequires: libglademm-devel >= 2.6.0
35 BuildRequires: libmodplug-devel >= 0.7
36 BuildRequires: libofa-devel >= 0.9.3
37 BuildRequires: librsvg-devel >= 1:2.14.0
38 BuildRequires: libsexymm-devel >= 0.1.9
39 %{?with_sid:BuildRequires: libsidplay-devel}
40 BuildRequires: libsigc++-devel >= 2.0.0
41 BuildRequires: libsoup-devel >= 2.4.0
42 BuildRequires: libstdc++-devel >= 5:4.0.0
43 BuildRequires: libtool
44 BuildRequires: libxml2-devel >= 1:2.6.26
45 BuildRequires: libxslt-progs
46 BuildRequires: pkgconfig
47 BuildRequires: rpmbuild(macros) >= 1.311
48 BuildRequires: sqlite3-devel >= 3.3.11
49 BuildRequires: startup-notification-devel >= 0.8
50 BuildRequires: taglib-devel >= 1.4-2
52 BuildRequires: xorg-lib-libSM-devel
54 Requires(post,postun): desktop-file-utils
55 Requires(post,postun): gtk-update-icon-cache
56 Requires(post,postun): hicolor-icon-theme
57 Requires: gstreamer-audio-effects-base
58 Requires: gstreamer-audiosink
59 Suggests: gstreamer-aac
60 Suggests: gstreamer-audio-formats >= 0.10.3
61 Suggests: gstreamer-cdparanoia
62 Suggests: gstreamer-ffmpeg
63 Suggests: gstreamer-flac
64 Suggests: gstreamer-mad
65 Suggests: gstreamer-mms
66 Suggests: gstreamer-musepack
67 Suggests: gstreamer-plugins-bad
68 Suggests: gstreamer-sid
69 Suggests: gstreamer-vorbis
70 Obsoletes: bmpx-curses
72 Obsoletes: bmpx-plugin-container
73 Obsoletes: bmpx-plugin-flow
74 Obsoletes: bmpx-plugin-transport
75 Obsoletes: bmpx-plugins-base
76 Obsoletes: bmpx-remote
77 Obsoletes: bmpx-remote-gtk
78 Obsoletes: bmpx-static
79 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
81 %define _iceweaseldir %{_datadir}/iceweasel
82 %define _chromedir %{_iceweaseldir}/chrome
85 BMPx is the follow-up of the BMP project with a codebase rewritten
86 from scratch and aims to maintain a stable audio player foundation,
87 and to provide a player with a consistent and easy to understand usage
90 %description -l pl.UTF-8
91 BMPx jest następcą projektu BMP z przepisanym od zera kodem i skupia
92 się na utrzymaniu stabilnej podstawy odtwarzacza dźwięku, aby
93 udostępnić odtwarzacz ze spójną i łatwą do zrozumienia obsługą.
96 Summary: Header files for BMPx media player
97 Summary(pl.UTF-8): Pliki nagłówkowe odtwarzacza multimedialnego BMPx
98 Group: X11/Development/Libraries
99 Requires: dbus-glib-devel >= 0.62
100 Obsoletes: libchroma-devel
101 Obsoletes: libhrel-devel
104 Header files required for compiling BMPx media player plugins.
106 %description devel -l pl.UTF-8
107 Pliki nagłówkowe potrzebne do kompilowania wtyczek odtwarzacza
108 multimedialnego BMPx.
110 %package -n iceweasel-extension-bmpx
111 Summary: Iceweasel extension - BMPx
112 Summary(pl.UTF-8): Rozszerzenie dla przeglądarki Iceweasel - BMPx
113 Group: X11/Applications
114 Requires: %{name} = %{version}-%{release}
116 Provides: mozilla-firefox-plugin-bmpx
117 Obsoletes: mozilla-firefox-plugin-bmpx
119 %description -n iceweasel-extension-bmpx
120 Iceweasel extension which registers the lastfm:// protocol to BMPx.
122 %description -n iceweasel-extension-bmpx -l pl.UTF-8
123 Rozszerzenie dla przeglądarki Iceweasel, które rejestruje protokół
143 %{?with_sid:--enable-sid} \
144 --with-dbus-services-dir=%{_datadir}/dbus-1/services
148 rm -rf $RPM_BUILD_ROOT
149 install -d $RPM_BUILD_ROOT%{_chromedir}
152 DESTDIR=$RPM_BUILD_ROOT
154 unzip -q -o xpi/bmp.xpi -d $RPM_BUILD_ROOT%{_iceweaseldir}
155 sed -e 's@chrome/bmp\.jar@bmp\.jar@' $RPM_BUILD_ROOT%{_iceweaseldir}/chrome.manifest \
156 > $RPM_BUILD_ROOT%{_chromedir}/bmp.manifest
158 rm -f $RPM_BUILD_ROOT%{_iceweaseldir}/{install.rdf,chrome.manifest}
159 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
160 rm -f $RPM_BUILD_ROOT%{_libdir}/bmpx/plugins/{taglib,vfs/container,vfs/transport}/*.la
161 mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{th_TH,th}
166 rm -rf $RPM_BUILD_ROOT
170 %update_desktop_database_post
171 %update_icon_cache hicolor
175 %update_desktop_database_postun
176 %update_icon_cache hicolor
178 %files -f %{name}.lang
179 %defattr(644,root,root,755)
180 %doc AUTHORS ChangeLog NEWS README
181 %attr(755,root,root) %{_bindir}/bmp2
182 %attr(755,root,root) %{_bindir}/beep-media-player-2
183 %attr(755,root,root) %{_bindir}/bmp-play-files-2.0
184 %attr(755,root,root) %{_bindir}/bmp-play-uris-2.0
185 %attr(755,root,root) %{_libexecdir}/beep-media-player-2-bin
186 %attr(755,root,root) %{_libexecdir}/beep-media-player-2-sentinel
189 %dir %{_libdir}/bmpx/plugins
190 %dir %{_libdir}/bmpx/plugins/taglib
191 %dir %{_libdir}/bmpx/plugins/vfs
192 %dir %{_libdir}/bmpx/plugins/vfs/container
193 %dir %{_libdir}/bmpx/plugins/vfs/transport
194 %attr(755,root,root) %{_libdir}/bmpx/plugins/taglib/*.so*
195 %attr(755,root,root) %{_libdir}/bmpx/plugins/vfs/container/*.so*
196 %attr(755,root,root) %{_libdir}/bmpx/plugins/vfs/transport/*.so*
199 %{_datadir}/dbus-1/services/*.service
201 %{_desktopdir}/*.desktop
202 %{_iconsdir}/hicolor/*/*/*.png
205 %defattr(644,root,root,755)
206 %{_includedir}/bmp-2.0
207 %{_pkgconfigdir}/*.pc
209 %files -n iceweasel-extension-bmpx
210 %defattr(644,root,root,755)
211 %{_chromedir}/bmp.jar
212 %{_chromedir}/bmp.manifest