3 %bcond_with gstreamer # build with GStreamer support (instead of XINE)
5 Summary: Sound player with the WinAmp GUI, for Unix-based systems for GTK+
6 Summary(pl): Odtwarzacz d¼wiêku z interfejsem WinAmpa dla GTK+
11 Group: X11/Applications/Sound
12 Source0: http://dl.sourceforge.net/beepmp/%{name}-%{version}.tar.bz2
13 # Source0-md5: 4449eb429dc7bfb9c2ec3feb9e8c7e56
15 Patch1: %{name}-desktop.patch
16 URL: http://beep-media-player.org/
17 BuildRequires: autoconf
18 BuildRequires: automake
19 BuildRequires: curl-devel
20 BuildRequires: dbus-glib-devel
21 BuildRequires: esound-devel >= 0.2.8
22 BuildRequires: fam-devel
23 BuildRequires: gtk+2-devel >= 2:2.8.0
24 BuildRequires: libglade2-devel >= 1:2.5.1
25 BuildRequires: libvorbis-devel >= 1:1.0
26 BuildRequires: rpm-pythonprov
27 BuildRequires: rpmbuild(macros) >= 1.194
28 BuildRequires: startup-notification-devel
29 BuildRequires: taglib-devel
31 BuildRequires: gstreamer-devel >= 0.10
33 BuildRequires: xine-lib-devel
36 Obsoletes: libchroma-devel
37 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
38 Requires: %{name}-plugin-container = %{epoch}:%{version}-%{release}
39 Requires: %{name}-plugin-flow = %{epoch}:%{version}-%{release}
40 Requires: %{name}-plugin-transport = %{epoch}:%{version}-%{release}
41 Requires: libhrel = 0.1-2
43 Requires: gstreamer-audio-effects
44 Requires: gstreamer-audio-formats
45 Requires: gstreamer-audiosink
47 Requires: xine-plugin-audio
49 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52 BMPx is the follow-up of the BMP project with a codebase rewritten
53 from scratch and aims to maintain a stable audio player foundation,
54 and to provide a player with a consistent and easy to understand usage
58 BMPx jest nastêpc± projektu BMP z przepisanym od zera kodem i skupia
59 siê na utrzymaniu stabilnej podstawy odtwarzacza d¼wiêku, aby
60 udostêpniæ odtwarzacz ze spójn± i ³atw± do zrozumienia obs³ug±.
63 Summary: BMPx player library
64 Summary(pl): Biblioteka odtwarzacza BMPx
65 Group: X11/Development/Libraries
70 %description libs -l pl
71 Biblioteka odtwarzacza BMPx.
74 Summary: Header files for BMPx media player
75 Summary(pl): Pliki nag³ówkowe odtwarzacza multimedialnego BMPx
76 Group: X11/Development/Libraries
77 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
78 Requires: libhrel-devel
81 Header files required for compiling BMPx media player plugins.
83 %description devel -l pl
84 Pliki nag³ówkowe potrzebne do kompilowania wtyczek odtwarzacza
88 Summary: Static BMPx library
89 Summary(pl): Statyczna biblioteka BMPx
90 Group: X11/Development/Libraries
91 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
96 %description static -l pl
97 Statyczna biblioteka BMPx.
99 %package plugin-container
100 Summary: Container plugin for BMPx
101 Summary(pl): Wtyczka Container dla BMPx
102 Group: X11/Applications/Sound
103 Requires: %{name} = %{epoch}:%{version}-%{release}
105 %description plugin-container
106 Plugin providing support for folders, m3u & pls playlist files, etc.
108 %description plugin-container -l pl
109 Wtyczka dodaj±ca obs³ugê folderów, playlist w formacie m3u i pls, itp.
112 Summary: Flow plugin for BMPx
113 Summary(pl): Wtyczka Flow dla BMPx
114 Group: X11/Applications/Sound
115 Requires: %{name} = %{epoch}:%{version}-%{release}
117 %description plugin-flow
118 Flow plugin for BMPx.
120 %description plugin-flow -l pl
121 Wtyczka Flow dla BMPx.
123 %package plugin-transport
124 Summary: Transport plugin for BMPx
125 Summary(pl): Wtyczka Transport dla BMPx
126 Group: X11/Applications/Sound
127 Requires: %{name} = %{epoch}:%{version}-%{release}
129 %description plugin-transport
130 Transport plugin for BMPx.
132 %description plugin-transport -l pl
133 Wtyczka Transport dla BMPx.
136 Summary: BMPx python status watcher
137 Summary(pl): Obserwator statusu BMPx
138 Group: X11/Applications/Sound
139 Requires: %{name} = %{epoch}:%{version}-%{release}
142 BMPx python status watcher.
144 %description remote -l pl
145 Obserwator statusu BMPx.
147 %package remote-curses
148 Summary: BMPx python status watcher
149 Summary(pl): Obserwator statusu BMPx w pythonie
150 Group: X11/Applications/Sound
151 Requires: %{name} = %{epoch}:%{version}-%{release}
153 %description remote-curses
154 BMPx python status watcher (CLI interface).
156 %description remote-curses -l pl
157 Obserwator statusu BMPx w pythonie (interfejs CLI).
160 Summary: BMPx python status watcher
161 Summary(pl): Obserwator statusu BMPx w pythonie
162 Group: X11/Applications/Sound
163 Requires: %{name} = %{epoch}:%{version}-%{release}
164 Requires: python-dbus
165 Requires: python-pygtk-glade
167 %description remote-gtk
168 BMPx python status watcher (GTK+ interface).
170 %description remote-gtk -l pl
171 Obserwator statusu BMPx w pythonie (interfejs GTK+).
174 Summary: Holyrel library
175 Summary(pl): Biblioteka Holyrel
176 Group: X11/Development/Libraries
180 %description -n libhrel
183 %description -n libhrel -l pl
186 %package -n libhrel-devel
187 Summary: Header files for Holyrel library
188 Summary(pl): Pliki nag³ówkowe biblioteki Holyrel
189 Group: X11/Development/Libraries
190 Requires: libhrel = %{epoch}:%{version}-%{release}
194 %description -n libhrel-devel
195 Header files for Holyrel library.
197 %description -n libhrel-devel -l pl
198 Pliki nag³ówkowe biblioteki Holyrel.
205 rm -rf autom4te.cache
211 %if %{with gstreamer}
222 rm -rf $RPM_BUILD_ROOT
225 DESTDIR=$RPM_BUILD_ROOT \
226 m4datadir=%{_aclocaldir}
228 rm -f $RPM_BUILD_ROOT%{_datadir}/bmpx/data/GPL.txt
230 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
231 mv -f $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/bmpx.png \
232 $RPM_BUILD_ROOT%{_pixmapsdir}
234 rm -f $RPM_BUILD_ROOT%{_libdir}/bmpx/plugins/*/*.{a,la}
235 rm -f $RPM_BUILD_ROOT%{_bindir}/{ctt,hash_*,hrel-demo}
240 rm -rf $RPM_BUILD_ROOT
244 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
246 %if %{with gstreamer}
247 %banner %{name} -e << EOF
248 Remember to install appropriate GStreamer plugins for files
250 - gstreamer-flac (for FLAC)
251 - gstreamer-mad (for MP3s)
252 - gstreamer-vorbis (for Ogg Vorbis)
255 %banner %{name} -e << EOF
256 Remember to install appropriate xine-decode plugins for files
258 - xine-decode-flac (for FLAC)
259 - xine-decode-ogg (for Ogg Vorbis)
266 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
269 %post libs -p /sbin/ldconfig
270 %postun libs -p /sbin/ldconfig
272 %post -n libhrel -p /sbin/ldconfig
273 %postun -n libhrel -p /sbin/ldconfig
275 %files -f %{name}.lang
276 %defattr(644,root,root,755)
277 %doc AUTHORS ChangeLog NEWS README
278 %attr(755,root,root) %{_bindir}/bmpx
279 %attr(755,root,root) %{_bindir}/bmpx-dbus-*
281 %dir %{_libdir}/bmpx/plugins
282 %dir %{_datadir}/bmpx-clients
289 %defattr(644,root,root,755)
290 %attr(755,root,root) %{_libdir}/libskinned.so.*.*.*
293 %defattr(644,root,root,755)
294 %attr(755,root,root) %{_libdir}/libskinned.so
295 %{_libdir}/libskinned.la
297 %{_includedir}/libskinned
300 %defattr(644,root,root,755)
303 %files plugin-container
304 %defattr(644,root,root,755)
305 %dir %{_libdir}/bmpx/plugins/container
306 %attr(755,root,root) %{_libdir}/bmpx/plugins/container/*.so*
309 %defattr(644,root,root,755)
310 %dir %{_libdir}/bmpx/plugins/flow
311 %attr(755,root,root) %{_libdir}/bmpx/plugins/flow/*.so*
313 %files plugin-transport
314 %defattr(644,root,root,755)
315 %dir %{_libdir}/bmpx/plugins/transport
316 %attr(755,root,root) %{_libdir}/bmpx/plugins/transport/*.so*
319 %defattr(644,root,root,755)
320 %attr(755,root,root) %{_bindir}/bmpx-remote
323 %defattr(644,root,root,755)
324 %attr(755,root,root) %{_bindir}/bmpty
327 %defattr(644,root,root,755)
328 %attr(755,root,root) %{_bindir}/bmpx-client-pygtk
329 %{_datadir}/bmpx-clients/pygtk
332 %defattr(644,root,root,755)
333 %attr(755,root,root) %{_libdir}/libhrel.so.*.*.*
335 %files -n libhrel-devel
336 %defattr(644,root,root,755)
337 %attr(755,root,root) %{_libdir}/libhrel.so
338 %{_libdir}/libhrel.la
339 %{_pkgconfigdir}/hrel.pc
340 %{_includedir}/libhrel