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}-invalid-conversion.patch
17 URL: http://bmpx.backtrace.info/
18 BuildRequires: alsa-lib-devel >= 1.0.9
19 BuildRequires: autoconf >= 2.60
20 BuildRequires: automake >= 1:1.8
21 BuildRequires: boost-devel >= 1.35.0
22 BuildRequires: cairomm-devel >= 0.6.0
23 BuildRequires: cdparanoia-III-devel
24 BuildRequires: dbus-glib-devel >= 0.62
25 BuildRequires: gcc-c++ >= 5:4.0.0
26 BuildRequires: gstreamer-plugins-base-devel >= 0.10.10
27 BuildRequires: gtkmm-devel >= 2.10.0
28 BuildRequires: hal-devel >= 0.5.7.1
29 BuildRequires: intltool >= 0.35.0
30 BuildRequires: libglademm-devel >= 2.6.0
31 BuildRequires: libmodplug-devel >= 0.7
32 BuildRequires: libofa-devel >= 0.9.3
33 BuildRequires: librsvg-devel >= 1:2.14.0
34 BuildRequires: libsexymm-devel >= 0.1.9
35 %{?with_sid:BuildRequires: libsidplay-devel}
36 BuildRequires: libsigc++-devel >= 2.0.0
37 BuildRequires: libsoup-devel >= 2.4.0
38 BuildRequires: libtool
39 BuildRequires: libxml2-devel >= 1:2.6.26
40 BuildRequires: libxslt-progs
41 BuildRequires: pkgconfig
42 BuildRequires: rpmbuild(macros) >= 1.311
43 BuildRequires: sqlite3-devel >= 3.3.11
44 BuildRequires: startup-notification-devel >= 0.8
45 BuildRequires: taglib-devel >= 1.4-2
47 BuildRequires: xorg-lib-libSM-devel
49 Requires(post,postun): desktop-file-utils
50 Requires(post,postun): gtk+2 >= 2:2.10.0
51 Requires(post,postun): hicolor-icon-theme
52 Requires: gstreamer-audio-effects-base
53 Requires: gstreamer-audiosink
54 Suggests: gstreamer-aac
55 Suggests: gstreamer-audio-formats >= 0.10.3
56 Suggests: gstreamer-cdparanoia
57 Suggests: gstreamer-ffmpeg
58 Suggests: gstreamer-flac
59 Suggests: gstreamer-mad
60 Suggests: gstreamer-mms
61 Suggests: gstreamer-musepack
62 Suggests: gstreamer-plugins-bad
63 Suggests: gstreamer-sid
64 Suggests: gstreamer-vorbis
65 Obsoletes: bmpx-curses
67 Obsoletes: bmpx-plugin-container
68 Obsoletes: bmpx-plugin-flow
69 Obsoletes: bmpx-plugin-transport
70 Obsoletes: bmpx-plugins-base
71 Obsoletes: bmpx-remote
72 Obsoletes: bmpx-remote-gtk
73 Obsoletes: bmpx-static
74 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
76 %define _iceweaseldir %{_datadir}/iceweasel
77 %define _chromedir %{_iceweaseldir}/chrome
80 BMPx is the follow-up of the BMP project with a codebase rewritten
81 from scratch and aims to maintain a stable audio player foundation,
82 and to provide a player with a consistent and easy to understand usage
85 %description -l pl.UTF-8
86 BMPx jest następcą projektu BMP z przepisanym od zera kodem i skupia
87 się na utrzymaniu stabilnej podstawy odtwarzacza dźwięku, aby
88 udostępnić odtwarzacz ze spójną i łatwą do zrozumienia obsługą.
91 Summary: Header files for BMPx media player
92 Summary(pl.UTF-8): Pliki nagłówkowe odtwarzacza multimedialnego BMPx
93 Group: X11/Development/Libraries
94 Requires: dbus-glib-devel >= 0.62
95 Obsoletes: libchroma-devel
96 Obsoletes: libhrel-devel
99 Header files required for compiling BMPx media player plugins.
101 %description devel -l pl.UTF-8
102 Pliki nagłówkowe potrzebne do kompilowania wtyczek odtwarzacza
103 multimedialnego BMPx.
105 %package -n iceweasel-extension-bmpx
106 Summary: Iceweasel extension - BMPx
107 Summary(pl.UTF-8): Rozszerzenie dla przeglądarki Iceweasel - BMPx
108 Group: X11/Applications
109 Requires: %{name} = %{version}-%{release}
111 Provides: mozilla-firefox-plugin-bmpx
112 Obsoletes: mozilla-firefox-plugin-bmpx
114 %description -n iceweasel-extension-bmpx
115 Iceweasel extension which registers the lastfm:// protocol to BMPx.
117 %description -n iceweasel-extension-bmpx -l pl.UTF-8
118 Rozszerzenie dla przeglądarki Iceweasel, które rejestruje protokół
136 %{?with_sid:--enable-sid} \
137 --with-dbus-services-dir=%{_datadir}/dbus-1/services
141 rm -rf $RPM_BUILD_ROOT
142 install -d $RPM_BUILD_ROOT%{_chromedir}
145 DESTDIR=$RPM_BUILD_ROOT
147 unzip -q -o xpi/bmp.xpi -d $RPM_BUILD_ROOT%{_iceweaseldir}
148 sed -e 's@chrome/bmp\.jar@bmp\.jar@' $RPM_BUILD_ROOT%{_iceweaseldir}/chrome.manifest \
149 > $RPM_BUILD_ROOT%{_chromedir}/bmp.manifest
151 rm -f $RPM_BUILD_ROOT%{_iceweaseldir}/{install.rdf,chrome.manifest}
152 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
153 rm -f $RPM_BUILD_ROOT%{_libdir}/bmpx/plugins/{taglib,vfs/container,vfs/transport}/*.la
154 mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{th_TH,th}
159 rm -rf $RPM_BUILD_ROOT
163 %update_desktop_database_post
164 %update_icon_cache hicolor
168 %update_desktop_database_postun
169 %update_icon_cache hicolor
171 %files -f %{name}.lang
172 %defattr(644,root,root,755)
173 %doc AUTHORS ChangeLog NEWS README
174 %attr(755,root,root) %{_bindir}/bmp2
175 %attr(755,root,root) %{_bindir}/beep-media-player-2
176 %attr(755,root,root) %{_bindir}/bmp-play-files-2.0
177 %attr(755,root,root) %{_bindir}/bmp-play-uris-2.0
178 %attr(755,root,root) %{_libexecdir}/beep-media-player-2-bin
179 %attr(755,root,root) %{_libexecdir}/beep-media-player-2-sentinel
182 %dir %{_libdir}/bmpx/plugins
183 %dir %{_libdir}/bmpx/plugins/taglib
184 %dir %{_libdir}/bmpx/plugins/vfs
185 %dir %{_libdir}/bmpx/plugins/vfs/container
186 %dir %{_libdir}/bmpx/plugins/vfs/transport
187 %attr(755,root,root) %{_libdir}/bmpx/plugins/taglib/*.so*
188 %attr(755,root,root) %{_libdir}/bmpx/plugins/vfs/container/*.so*
189 %attr(755,root,root) %{_libdir}/bmpx/plugins/vfs/transport/*.so*
192 %{_datadir}/dbus-1/services/*.service
194 %{_desktopdir}/*.desktop
195 %{_iconsdir}/hicolor/*/*/*.png
198 %defattr(644,root,root,755)
199 %{_includedir}/bmp-2.0
200 %{_pkgconfigdir}/*.pc
202 %files -n iceweasel-extension-bmpx
203 %defattr(644,root,root,755)
204 %{_chromedir}/bmp.jar
205 %{_chromedir}/bmp.manifest