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