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://bmpx.kicks-ass.net/downloads/0.12/%{name}-%{version}.tar.bz2
13 # Source0-md5: 6fbe6047ed4f658c602cae2b17222438
15 Patch1: %{name}-desktop.patch
16 URL: http://bmpx.berlios.de/
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-%{release}
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.
134 %package remote-curses
135 Summary: BMPx python status watcher
136 Summary(pl): Obserwator statusu BMPx w pythonie
137 Group: X11/Applications/Sound
138 Requires: %{name} = %{epoch}:%{version}-%{release}
140 %description remote-curses
141 BMPx python status watcher (CLI interface).
143 %description remote-curses -l pl
144 Obserwator statusu BMPx w pythonie (interfejs CLI).
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}
151 Requires: python-dbus
152 Requires: python-pygtk-glade
154 %description remote-gtk
155 BMPx python status watcher (GTK+ interface).
157 %description remote-gtk -l pl
158 Obserwator statusu BMPx w pythonie (interfejs GTK+).
160 %package -n libchroma
161 Summary: Chroma library
162 Summary(pl): Biblioteka Chroma
163 Group: X11/Development/Libraries
166 %description -n libchroma
169 %description -n libchroma -l pl
172 %package -n libchroma-devel
173 Summary: Header files for Chroma library
174 Summary(pl): Pliki nag³ówkowe biblioteki Chroma
175 Group: X11/Development/Libraries
176 Requires: libchroma = %{epoch}:%{version}-%{release}
179 %description -n libchroma-devel
180 Header files for Chroma library.
182 %description -n libchroma-devel -l pl
183 Pliki nag³ówkowe biblioteki Chroma.
186 Summary: Holyrel library
187 Summary(pl): Biblioteka Holyrel
188 Group: X11/Development/Libraries
191 %description -n libhrel
194 %description -n libhrel -l pl
197 %package -n libhrel-devel
198 Summary: Header files for Holyrel library
199 Summary(pl): Pliki nag³ówkowe biblioteki Holyrel
200 Group: X11/Development/Libraries
201 Requires: libhrel = %{epoch}:%{version}-%{release}
204 %description -n libhrel-devel
205 Header files for Holyrel library.
207 %description -n libhrel-devel -l pl
208 Pliki nag³ówkowe biblioteki Holyrel.
215 rm -rf autom4te.cache
221 %if %{with gstreamer}
232 rm -rf $RPM_BUILD_ROOT
235 DESTDIR=$RPM_BUILD_ROOT \
236 m4datadir=%{_aclocaldir}
238 rm -f $RPM_BUILD_ROOT%{_datadir}/bmpx/data/GPL.txt
240 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
241 mv -f $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/bmpx.png \
242 $RPM_BUILD_ROOT%{_pixmapsdir}
244 rm -f $RPM_BUILD_ROOT%{_libdir}/bmpx/plugins/*/*.{a,la}
245 rm -f $RPM_BUILD_ROOT%{_bindir}/{ctt,hash_*,hrel-demo}
250 rm -rf $RPM_BUILD_ROOT
254 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
256 %if %{with gstreamer}
257 %banner %{name} -e << EOF
258 Remember to install appropriate GStreamer plugins for files
260 - gstreamer-flac (for FLAC)
261 - gstreamer-mad (for MP3s)
262 - gstreamer-vorbis (for Ogg Vorbis)
265 %banner %{name} -e << EOF
266 Remember to install appropriate xine-decode plugins for files
268 - xine-decode-flac (for FLAC)
269 - xine-decode-ogg (for Ogg Vorbis)
276 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
279 %post libs -p /sbin/ldconfig
280 %postun libs -p /sbin/ldconfig
282 %post -n libchroma -p /sbin/ldconfig
283 %postun -n libchroma -p /sbin/ldconfig
285 %post -n libhrel -p /sbin/ldconfig
286 %postun -n libhrel -p /sbin/ldconfig
288 %files -f %{name}.lang
289 %defattr(644,root,root,755)
290 %doc AUTHORS ChangeLog NEWS README
291 %attr(755,root,root) %{_bindir}/bmpx
292 %attr(755,root,root) %{_bindir}/bmp-dbus-*
294 %dir %{_libdir}/bmpx/plugins
301 %defattr(644,root,root,755)
302 %attr(755,root,root) %{_libdir}/libskinned.so.*.*.*
305 %defattr(644,root,root,755)
306 %attr(755,root,root) %{_libdir}/libskinned.so
307 %{_libdir}/libskinned.la
311 %defattr(644,root,root,755)
314 %files plugin-container
315 %defattr(644,root,root,755)
316 %dir %{_libdir}/bmpx/plugins/container
317 %attr(755,root,root) %{_libdir}/bmpx/plugins/container/*.so*
320 %defattr(644,root,root,755)
321 %dir %{_libdir}/bmpx/plugins/flow
322 %attr(755,root,root) %{_libdir}/bmpx/plugins/flow/*.so*
324 %files plugin-transport
325 %defattr(644,root,root,755)
326 %dir %{_libdir}/bmpx/plugins/transport
327 %attr(755,root,root) %{_libdir}/bmpx/plugins/transport/*.so*
330 %defattr(644,root,root,755)
331 %attr(755,root,root) %{_bindir}/bmpty
334 %defattr(644,root,root,755)
335 %attr(755,root,root) %{_bindir}/bmp-remote-pygtk
336 %{_datadir}/bmp-remote
339 %defattr(644,root,root,755)
340 %attr(755,root,root) %{_libdir}/libchroma.so.*.*.*
342 %files -n libchroma-devel
343 %defattr(644,root,root,755)
344 %attr(755,root,root) %{_libdir}/libchroma.so
345 %{_libdir}/libchroma.la
346 %{_includedir}/libchroma
349 %defattr(644,root,root,755)
350 %attr(755,root,root) %{_libdir}/libhrel.so.*.*.*
352 %files -n libhrel-devel
353 %defattr(644,root,root,755)
354 %attr(755,root,root) %{_libdir}/libhrel.so
355 %{_libdir}/libhrel.la
356 %{_pkgconfigdir}/hrel.pc
357 %{_includedir}/libhrel