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: fc9d1fabd48c5a2d70553603b74363aa
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: taglib-devel
30 # there is no gstreamer 0.9.x in PLD cvs yet!
31 BuildRequires: gstreamer-devel >= 0.9.1
33 BuildRequires: xine-lib-devel
35 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
36 Requires: %{name}-plugin-container = %{epoch}:%{version}-%{release}
37 Requires: %{name}-plugin-flow = %{epoch}:%{version}-%{release}
38 Requires: %{name}-plugin-transport = %{epoch}:%{version}-%{release}
39 Requires: libhrel = 0.1-2
41 Requires: gstreamer-audio-effects
42 Requires: gstreamer-audio-formats
43 Requires: gstreamer-audiosink
45 Requires: xine-plugin-audio
47 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50 BMPx is the follow-up of the BMP project with a codebase rewritten
51 from scratch and aims to maintain a stable audio player foundation,
52 and to provide a player with a consistent and easy to understand usage
56 BMPx jest nastêpc± projektu BMP z przepisanym od zera kodem i skupia
57 siê na utrzymaniu stabilnej podstawy odtwarzacza d¼wiêku, aby
58 udostêpniæ odtwarzacz ze spójn± i ³atw± do zrozumienia obs³ug±.
61 Summary: BMPx player library
62 Summary(pl): Biblioteka odtwarzacza BMPx
63 Group: X11/Development/Libraries
68 %description libs -l pl
69 Biblioteka odtwarzacza BMPx.
72 Summary: Header files for BMPx media player
73 Summary(pl): Pliki nag³ówkowe odtwarzacza multimedialnego BMPx
74 Group: X11/Development/Libraries
75 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
76 Requires: libchroma-devel
77 Requires: libhrel-devel
80 Header files required for compiling BMPx media player plugins.
82 %description devel -l pl
83 Pliki nag³ówkowe potrzebne do kompilowania wtyczek odtwarzacza
87 Summary: Static BMPx library
88 Summary(pl): Statyczna biblioteka BMPx
89 Group: X11/Development/Libraries
90 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
95 %description static -l pl
96 Statyczna biblioteka BMPx.
98 %package plugin-container
99 Summary: Container plugin for BMPx
100 Summary(pl): Wtyczka Container dla BMPx
101 Group: X11/Applications/Sound
102 Requires: %{name} = %{epoch}:%{version}-%{release}
104 %description plugin-container
105 Plugin providing support for folders, m3u & pls playlist files, etc.
107 %description plugin-container -l pl
108 Wtyczka dodaj±ca obs³ugê folderów, playlist w formacie m3u i pls, itp.
111 Summary: Flow plugin for BMPx
112 Summary(pl): Wtyczka Flow dla BMPx
113 Group: X11/Applications/Sound
114 Requires: %{name} = %{epoch}:%{version}-%{release}
116 %description plugin-flow
117 Flow plugin for BMPx.
119 %description plugin-flow -l pl
120 Wtyczka Flow dla BMPx.
122 %package plugin-transport
123 Summary: Transport plugin for BMPx
124 Summary(pl): Wtyczka Transport dla BMPx
125 Group: X11/Applications/Sound
126 Requires: %{name} = %{epoch}:%{version}-%{release}
128 %description plugin-transport
129 Transport plugin for BMPx.
131 %description plugin-transport -l pl
132 Wtyczka Transport dla BMPx.
135 Summary: BMPx python status watcher
136 Summary(pl): Obserwator statusu BMPx
137 Group: X11/Applications/Sound
138 Requires: %{name} = %{epoch}:%{version}-%{release}
141 BMPx python status watcher.
143 %description remote -l pl
144 Obserwator statusu BMPx.
146 %package remote-curses
147 Summary: BMPx python status watcher
148 Summary(pl): Obserwator statusu BMPx w pythonie
149 Group: X11/Applications/Sound
150 Requires: %{name} = %{epoch}:%{version}-%{release}
152 %description remote-curses
153 BMPx python status watcher (CLI interface).
155 %description remote-curses -l pl
156 Obserwator statusu BMPx w pythonie (interfejs CLI).
159 Summary: BMPx python status watcher
160 Summary(pl): Obserwator statusu BMPx w pythonie
161 Group: X11/Applications/Sound
162 Requires: %{name} = %{epoch}:%{version}-%{release}
163 Requires: python-dbus
164 Requires: python-pygtk-glade
166 %description remote-gtk
167 BMPx python status watcher (GTK+ interface).
169 %description remote-gtk -l pl
170 Obserwator statusu BMPx w pythonie (interfejs GTK+).
172 %package -n libchroma
173 Summary: Chroma library
174 Summary(pl): Biblioteka Chroma
175 Group: X11/Development/Libraries
178 %description -n libchroma
181 %description -n libchroma -l pl
184 %package -n libchroma-devel
185 Summary: Header files for Chroma library
186 Summary(pl): Pliki nag³ówkowe biblioteki Chroma
187 Group: X11/Development/Libraries
188 Requires: libchroma = %{epoch}:%{version}-%{release}
191 %description -n libchroma-devel
192 Header files for Chroma library.
194 %description -n libchroma-devel -l pl
195 Pliki nag³ówkowe biblioteki Chroma.
198 Summary: Holyrel library
199 Summary(pl): Biblioteka Holyrel
200 Group: X11/Development/Libraries
204 %description -n libhrel
207 %description -n libhrel -l pl
210 %package -n libhrel-devel
211 Summary: Header files for Holyrel library
212 Summary(pl): Pliki nag³ówkowe biblioteki Holyrel
213 Group: X11/Development/Libraries
214 Requires: libhrel = %{epoch}:%{version}-%{release}
218 %description -n libhrel-devel
219 Header files for Holyrel library.
221 %description -n libhrel-devel -l pl
222 Pliki nag³ówkowe biblioteki Holyrel.
229 rm -rf autom4te.cache
235 %if %{with gstreamer}
246 rm -rf $RPM_BUILD_ROOT
249 DESTDIR=$RPM_BUILD_ROOT \
250 m4datadir=%{_aclocaldir}
252 rm -f $RPM_BUILD_ROOT%{_datadir}/bmpx/data/GPL.txt
254 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
255 mv -f $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/bmpx.png \
256 $RPM_BUILD_ROOT%{_pixmapsdir}
258 rm -f $RPM_BUILD_ROOT%{_libdir}/bmpx/plugins/*/*.{a,la}
259 rm -f $RPM_BUILD_ROOT%{_bindir}/{ctt,hash_*,hrel-demo}
264 rm -rf $RPM_BUILD_ROOT
268 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
270 %if %{with gstreamer}
271 %banner %{name} -e << EOF
272 Remember to install appropriate GStreamer plugins for files
274 - gstreamer-flac (for FLAC)
275 - gstreamer-mad (for MP3s)
276 - gstreamer-vorbis (for Ogg Vorbis)
279 %banner %{name} -e << EOF
280 Remember to install appropriate xine-decode plugins for files
282 - xine-decode-flac (for FLAC)
283 - xine-decode-ogg (for Ogg Vorbis)
290 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
293 %post libs -p /sbin/ldconfig
294 %postun libs -p /sbin/ldconfig
296 %post -n libchroma -p /sbin/ldconfig
297 %postun -n libchroma -p /sbin/ldconfig
299 %post -n libhrel -p /sbin/ldconfig
300 %postun -n libhrel -p /sbin/ldconfig
302 %files -f %{name}.lang
303 %defattr(644,root,root,755)
304 %doc AUTHORS ChangeLog NEWS README
305 %attr(755,root,root) %{_bindir}/bmpx
306 %attr(755,root,root) %{_bindir}/bmp-dbus-*
308 %dir %{_libdir}/bmpx/plugins
315 %defattr(644,root,root,755)
316 %attr(755,root,root) %{_libdir}/libskinned.so.*.*.*
319 %defattr(644,root,root,755)
320 %attr(755,root,root) %{_libdir}/libskinned.so
321 %{_libdir}/libskinned.la
325 %defattr(644,root,root,755)
328 %files plugin-container
329 %defattr(644,root,root,755)
330 %dir %{_libdir}/bmpx/plugins/container
331 %attr(755,root,root) %{_libdir}/bmpx/plugins/container/*.so*
334 %defattr(644,root,root,755)
335 %dir %{_libdir}/bmpx/plugins/flow
336 %attr(755,root,root) %{_libdir}/bmpx/plugins/flow/*.so*
338 %files plugin-transport
339 %defattr(644,root,root,755)
340 %dir %{_libdir}/bmpx/plugins/transport
341 %attr(755,root,root) %{_libdir}/bmpx/plugins/transport/*.so*
344 %defattr(644,root,root,755)
345 %attr(755,root,root) %{_bindir}/bmpx-remote
348 %defattr(644,root,root,755)
349 %attr(755,root,root) %{_bindir}/bmpty
352 %defattr(644,root,root,755)
353 %attr(755,root,root) %{_bindir}/bmp-remote-pygtk
354 %{_datadir}/bmp-remote
357 %defattr(644,root,root,755)
358 %attr(755,root,root) %{_libdir}/libchroma.so.*.*.*
360 %files -n libchroma-devel
361 %defattr(644,root,root,755)
362 %attr(755,root,root) %{_libdir}/libchroma.so
363 %{_libdir}/libchroma.la
364 %{_includedir}/libchroma
367 %defattr(644,root,root,755)
368 %attr(755,root,root) %{_libdir}/libhrel.so.*.*.*
370 %files -n libhrel-devel
371 %defattr(644,root,root,755)
372 %attr(755,root,root) %{_libdir}/libhrel.so
373 %{_libdir}/libhrel.la
374 %{_pkgconfigdir}/hrel.pc
375 %{_includedir}/libhrel