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://download.berlios.de/bmpx/%{name}-%{version}.tar.bz2
13 # Source0-md5: 840bca5822c90b2812b0fdcf77cae10e
15 Patch0: %{name}-embedded-images.patch
16 Patch1: %{name}-desktop.patch
17 URL: http://bmpx.berlios.de/
18 BuildRequires: autoconf
19 BuildRequires: automake
20 BuildRequires: curl-devel
21 BuildRequires: dbus-glib-devel
22 BuildRequires: esound-devel >= 0.2.8
23 BuildRequires: fam-devel
24 BuildRequires: gtk+2-devel >= 2:2.8.0
25 BuildRequires: libglade2-devel >= 1:2.5.1
26 BuildRequires: libvorbis-devel >= 1:1.0
27 BuildRequires: rpm-pythonprov
28 BuildRequires: rpmbuild(macros) >= 1.194
29 BuildRequires: taglib-devel
31 # there is no gstreamer 0.9.x in PLD cvs yet!
32 BuildRequires: gstreamer-devel >= 0.9.1
34 BuildRequires: xine-lib-devel
36 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
37 Requires: %{name}-plugin-container = %{epoch}:%{version}-%{release}
38 Requires: %{name}-plugin-flow = %{epoch}:%{version}-%{release}
39 Requires: %{name}-plugin-transport = %{epoch}:%{version}-%{release}
40 Requires: libhrel = %{epoch}:%{version}-%{release}
42 Requires: gstreamer-audio-effects
43 Requires: gstreamer-audio-formats
44 Requires: gstreamer-audiosink
46 Requires: xine-plugin-audio
48 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51 BMPx is the follow-up of the BMP project with a codebase rewritten
52 from scratch and aims to maintain a stable audio player foundation,
53 and to provide a player with a consistent and easy to understand usage
57 BMPx jest nastêpc± projektu BMP z przepisanym od zera kodem i skupia
58 siê na utrzymaniu stabilnej podstawy odtwarzacza d¼wiêku, aby
59 udostêpniæ odtwarzacz ze spójn± i ³atw± do zrozumienia obs³ug±.
62 Summary: BMPx player library
63 Summary(pl): Biblioteka odtwarzacza BMPx
64 Group: X11/Development/Libraries
69 %description libs -l pl
70 Biblioteka odtwarzacza BMPx.
73 Summary: Header files for BMPx media player
74 Summary(pl): Pliki nag³ówkowe odtwarzacza multimedialnego BMPx
75 Group: X11/Development/Libraries
76 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
79 Header files required for compiling BMPx media player plugins.
81 %description devel -l pl
82 Pliki nag³ówkowe potrzebne do kompilowania wtyczek odtwarzacza
86 Summary: Static BMPx library
87 Summary(pl): Statyczna biblioteka BMPx
88 Group: X11/Development/Libraries
89 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
94 %description static -l pl
95 Statyczna biblioteka BMPx.
97 %package plugin-container
98 Summary: Container plugin for BMPx
99 Summary(pl): Wtyczka Container dla BMPx
100 Group: X11/Applications/Sound
101 Requires: %{name} = %{epoch}:%{version}-%{release}
103 %description plugin-container
104 Plugin providing support for folders, m3u & pls playlist files, etc.
106 %description plugin-container -l pl
107 Wtyczka dodaj±ca obs³ugê folderów, playlist w formacie m3u i pls, itp.
110 Summary: Flow plugin for BMPx
111 Summary(pl): Wtyczka Flow dla BMPx
112 Group: X11/Applications/Sound
113 Requires: %{name} = %{epoch}:%{version}-%{release}
115 %description plugin-flow
116 Flow plugin for BMPx.
118 %description plugin-flow -l pl
119 Wtyczka Flow dla BMPx.
121 %package plugin-transport
122 Summary: Transport plugin for BMPx
123 Summary(pl): Wtyczka Transport dla BMPx
124 Group: X11/Applications/Sound
125 Requires: %{name} = %{epoch}:%{version}-%{release}
127 %description plugin-transport
128 Transport plugin for BMPx.
130 %description plugin-transport -l pl
131 Wtyczka Transport dla BMPx.
133 %package remote-curses
134 Summary: BMPx python status watcher
135 Summary(pl): Obserwator statusu BMPx w pythonie
136 Group: X11/Applications/Sound
137 Requires: %{name} = %{epoch}:%{version}-%{release}
139 %description remote-curses
140 BMPx python status watcher (CLI interface).
142 %description remote-curses -l pl
143 Obserwator statusu BMPx w pythonie (interfejs CLI).
146 Summary: BMPx python status watcher
147 Summary(pl): Obserwator statusu BMPx w pythonie
148 Group: X11/Applications/Sound
149 Requires: %{name} = %{epoch}:%{version}-%{release}
150 Requires: python-dbus
151 Requires: python-pygtk-glade
153 %description remote-gtk
154 BMPx python status watcher (GTK+ interface).
156 %description remote-gtk -l pl
157 Obserwator statusu BMPx w pythonie (interfejs GTK+).
160 Summary: Holyrel library
161 Summary(pl): Biblioteka Holyrel
162 Group: X11/Development/Libraries
164 %description -n libhrel
167 %description -n libhrel -l pl
170 %package -n libhrel-devel
171 Summary: Header files for Holyrek library
172 Summary(pl): Pliki nag³ówkowe biblioteki Holyrel
173 Group: X11/Development/Libraries
174 Requires: libhrel = %{epoch}:%{version}-%{release}
176 %description -n libhrel-devel
177 Header files fotr Holyrel library.
179 %description -n libhrel-devel -l pl
180 Pliki nag³ówkowe biblioteki Holyrel.
188 rm -rf autom4te.cache
194 %if %{with gstreamer}
205 rm -rf $RPM_BUILD_ROOT
208 DESTDIR=$RPM_BUILD_ROOT \
209 m4datadir=%{_aclocaldir}
211 rm -f $RPM_BUILD_ROOT%{_datadir}/bmpx/data/GPL.txt
213 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
214 mv -f $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/bmpx.png \
215 $RPM_BUILD_ROOT%{_pixmapsdir}
217 rm -f $RPM_BUILD_ROOT%{_libdir}/bmpx/plugins/*/*.{a,la}
222 rm -rf $RPM_BUILD_ROOT
226 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
228 %if %{with gstreamer}
229 %banner %{name} -e << EOF
230 Remember to install appropriate GStreamer plugins for files
232 - gstreamer-flac (for FLAC)
233 - gstreamer-mad (for MP3s)
234 - gstreamer-vorbis (for Ogg Vorbis)
237 %banner %{name} -e << EOF
238 Remember to install appropriate xine-decode plugins for files
240 - xine-decode-flac (for FLAC)
241 - xine-decode-ogg (for Ogg Vorbis)
248 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
251 %post libs -p /sbin/ldconfig
252 %postun libs -p /sbin/ldconfig
254 %files -f %{name}.lang
255 %defattr(644,root,root,755)
256 %doc AUTHORS ChangeLog NEWS README
257 %attr(755,root,root) %{_bindir}/bmpx
258 %attr(755,root,root) %{_bindir}/bmp-dbus-*
260 %dir %{_libdir}/bmpx/plugins
267 %defattr(644,root,root,755)
268 %attr(755,root,root) %{_libdir}/libskinned.so.*.*.*
271 %defattr(644,root,root,755)
272 %attr(755,root,root) %{_libdir}/libskinned.so
273 %{_libdir}/libskinned.la
277 %defattr(644,root,root,755)
280 %files plugin-container
281 %defattr(644,root,root,755)
282 %dir %{_libdir}/bmpx/plugins/container
283 %attr(755,root,root) %{_libdir}/bmpx/plugins/container/*.so*
286 %defattr(644,root,root,755)
287 %dir %{_libdir}/bmpx/plugins/flow
288 %attr(755,root,root) %{_libdir}/bmpx/plugins/flow/*.so*
290 %files plugin-transport
291 %defattr(644,root,root,755)
292 %dir %{_libdir}/bmpx/plugins/transport
293 %attr(755,root,root) %{_libdir}/bmpx/plugins/transport/*.so*
296 %defattr(644,root,root,755)
297 %attr(755,root,root) %{_bindir}/bmpty
300 %defattr(644,root,root,755)
301 %attr(755,root,root) %{_bindir}/bmp-remote-pygtk
302 %{_datadir}/bmp-remote
305 %defattr(644,root,root,755)
306 %attr(755,root,root) %{_libdir}/libhrel.so.*.*.*
308 %files -n libhrel-devel
309 %defattr(644,root,root,755)
310 %attr(755,root,root) %{_libdir}/libhrel.so
311 %{_libdir}/libhrel.la
312 %{_pkgconfigdir}/hrel.pc
313 %{_includedir}/libhrel