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-style-xsl
28 BuildRequires: gcc-c++ >= 5:4.0.0
29 BuildRequires: gettext-devel
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: libtool
43 BuildRequires: libxml2-devel >= 1:2.6.26
44 BuildRequires: libxslt-progs
45 BuildRequires: pkgconfig
46 BuildRequires: rpmbuild(macros) >= 1.311
47 BuildRequires: sqlite3-devel >= 3.3.11
48 BuildRequires: startup-notification-devel >= 0.8
49 BuildRequires: taglib-devel >= 1.4-2
51 BuildRequires: xorg-lib-libSM-devel
53 Requires(post,postun): desktop-file-utils
54 Requires(post,postun): gtk+2 >= 2:2.10.0
55 Requires(post,postun): hicolor-icon-theme
56 Requires: gstreamer-audio-effects-base
57 Requires: gstreamer-audiosink
58 Suggests: gstreamer-aac
59 Suggests: gstreamer-audio-formats >= 0.10.3
60 Suggests: gstreamer-cdparanoia
61 Suggests: gstreamer-ffmpeg
62 Suggests: gstreamer-flac
63 Suggests: gstreamer-mad
64 Suggests: gstreamer-mms
65 Suggests: gstreamer-musepack
66 Suggests: gstreamer-plugins-bad
67 Suggests: gstreamer-sid
68 Suggests: gstreamer-vorbis
69 Obsoletes: bmpx-curses
71 Obsoletes: bmpx-plugin-container
72 Obsoletes: bmpx-plugin-flow
73 Obsoletes: bmpx-plugin-transport
74 Obsoletes: bmpx-plugins-base
75 Obsoletes: bmpx-remote
76 Obsoletes: bmpx-remote-gtk
77 Obsoletes: bmpx-static
78 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
80 %define _iceweaseldir %{_datadir}/iceweasel
81 %define _chromedir %{_iceweaseldir}/chrome
84 BMPx is the follow-up of the BMP project with a codebase rewritten
85 from scratch and aims to maintain a stable audio player foundation,
86 and to provide a player with a consistent and easy to understand usage
89 %description -l pl.UTF-8
90 BMPx jest następcą projektu BMP z przepisanym od zera kodem i skupia
91 się na utrzymaniu stabilnej podstawy odtwarzacza dźwięku, aby
92 udostępnić odtwarzacz ze spójną i łatwą do zrozumienia obsługą.
95 Summary: Header files for BMPx media player
96 Summary(pl.UTF-8): Pliki nagłówkowe odtwarzacza multimedialnego BMPx
97 Group: X11/Development/Libraries
98 Requires: dbus-glib-devel >= 0.62
99 Obsoletes: libchroma-devel
100 Obsoletes: libhrel-devel
103 Header files required for compiling BMPx media player plugins.
105 %description devel -l pl.UTF-8
106 Pliki nagłówkowe potrzebne do kompilowania wtyczek odtwarzacza
107 multimedialnego BMPx.
109 %package -n iceweasel-extension-bmpx
110 Summary: Iceweasel extension - BMPx
111 Summary(pl.UTF-8): Rozszerzenie dla przeglądarki Iceweasel - BMPx
112 Group: X11/Applications
113 Requires: %{name} = %{version}-%{release}
115 Provides: mozilla-firefox-plugin-bmpx
116 Obsoletes: mozilla-firefox-plugin-bmpx
118 %description -n iceweasel-extension-bmpx
119 Iceweasel extension which registers the lastfm:// protocol to BMPx.
121 %description -n iceweasel-extension-bmpx -l pl.UTF-8
122 Rozszerzenie dla przeglądarki Iceweasel, które rejestruje protokół
142 %{?with_sid:--enable-sid} \
143 --with-dbus-services-dir=%{_datadir}/dbus-1/services
147 rm -rf $RPM_BUILD_ROOT
148 install -d $RPM_BUILD_ROOT%{_chromedir}
151 DESTDIR=$RPM_BUILD_ROOT
153 unzip -q -o xpi/bmp.xpi -d $RPM_BUILD_ROOT%{_iceweaseldir}
154 sed -e 's@chrome/bmp\.jar@bmp\.jar@' $RPM_BUILD_ROOT%{_iceweaseldir}/chrome.manifest \
155 > $RPM_BUILD_ROOT%{_chromedir}/bmp.manifest
157 rm -f $RPM_BUILD_ROOT%{_iceweaseldir}/{install.rdf,chrome.manifest}
158 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
159 rm -f $RPM_BUILD_ROOT%{_libdir}/bmpx/plugins/{taglib,vfs/container,vfs/transport}/*.la
160 mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{th_TH,th}
165 rm -rf $RPM_BUILD_ROOT
169 %update_desktop_database_post
170 %update_icon_cache hicolor
174 %update_desktop_database_postun
175 %update_icon_cache hicolor
177 %files -f %{name}.lang
178 %defattr(644,root,root,755)
179 %doc AUTHORS ChangeLog NEWS README
180 %attr(755,root,root) %{_bindir}/bmp2
181 %attr(755,root,root) %{_bindir}/beep-media-player-2
182 %attr(755,root,root) %{_bindir}/bmp-play-files-2.0
183 %attr(755,root,root) %{_bindir}/bmp-play-uris-2.0
184 %attr(755,root,root) %{_libexecdir}/beep-media-player-2-bin
185 %attr(755,root,root) %{_libexecdir}/beep-media-player-2-sentinel
188 %dir %{_libdir}/bmpx/plugins
189 %dir %{_libdir}/bmpx/plugins/taglib
190 %dir %{_libdir}/bmpx/plugins/vfs
191 %dir %{_libdir}/bmpx/plugins/vfs/container
192 %dir %{_libdir}/bmpx/plugins/vfs/transport
193 %attr(755,root,root) %{_libdir}/bmpx/plugins/taglib/*.so*
194 %attr(755,root,root) %{_libdir}/bmpx/plugins/vfs/container/*.so*
195 %attr(755,root,root) %{_libdir}/bmpx/plugins/vfs/transport/*.so*
198 %{_datadir}/dbus-1/services/*.service
200 %{_desktopdir}/*.desktop
201 %{_iconsdir}/hicolor/*/*/*.png
204 %defattr(644,root,root,755)
205 %{_includedir}/bmp-2.0
206 %{_pkgconfigdir}/*.pc
208 %files -n iceweasel-extension-bmpx
209 %defattr(644,root,root,755)
210 %{_chromedir}/bmp.jar
211 %{_chromedir}/bmp.manifest