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.gz
13 # Source0-md5: 40965fe0e9707a49a773c91eff777fb2
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}
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}
78 Header files required for compiling BMPx media player plugins.
80 %description devel -l pl
81 Pliki nag³ówkowe potrzebne do kompilowania wtyczek odtwarzacza
85 Summary: Static BMPx library
86 Summary(pl): Statyczna biblioteka BMPx
87 Group: X11/Development/Libraries
88 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
93 %description static -l pl
94 Statyczna biblioteka BMPx.
96 %package plugin-container
97 Summary: Container plugin for BMPx
98 Summary(pl): Wtyczka Container dla BMPx
99 Group: X11/Applications/Sound
100 Requires: %{name} = %{epoch}:%{version}-%{release}
102 %description plugin-container
103 Plugin providing support for folders, m3u & pls playlist files, etc.
105 %description plugin-container -l pl
106 Wtyczka dodaj±ca obs³ugê folderów, playlist w formacie m3u i pls, itp.
109 Summary: Flow plugin for BMPx
110 Summary(pl): Wtyczka Flow dla BMPx
111 Group: X11/Applications/Sound
112 Requires: %{name} = %{epoch}:%{version}-%{release}
114 %description plugin-flow
115 Flow plugin for BMPx.
117 %description plugin-flow -l pl
118 Wtyczka Flow dla BMPx.
120 %package plugin-transport
121 Summary: Transport plugin for BMPx
122 Summary(pl): Wtyczka Transport dla BMPx
123 Group: X11/Applications/Sound
124 Requires: %{name} = %{epoch}:%{version}-%{release}
126 %description plugin-transport
127 Transport plugin for BMPx.
129 %description plugin-transport -l pl
130 Wtyczka Transport dla BMPx.
132 %package remote-curses
133 Summary: BMPx python status watcher
134 Summary(pl): Obserwator statusu BMPx w pythonie
135 Group: X11/Applications/Sound
136 Requires: %{name} = %{epoch}:%{version}-%{release}
138 %description remote-curses
139 BMPx python status watcher (CLI interface).
141 %description remote-curses -l pl
142 Obserwator statusu BMPx w pythonie (interfejs CLI).
145 Summary: BMPx python status watcher
146 Summary(pl): Obserwator statusu BMPx w pythonie
147 Group: X11/Applications/Sound
148 Requires: %{name} = %{epoch}:%{version}-%{release}
149 Requires: python-dbus
150 Requires: python-pygtk-glade
152 %description remote-gtk
153 BMPx python status watcher (GTK+ interface).
155 %description remote-gtk -l pl
156 Obserwator statusu BMPx w pythonie (interfejs GTK+).
164 rm -rf autom4te.cache
170 %if %{with gstreamer}
181 rm -rf $RPM_BUILD_ROOT
184 DESTDIR=$RPM_BUILD_ROOT \
185 m4datadir=%{_aclocaldir}
187 rm -f $RPM_BUILD_ROOT%{_datadir}/bmpx/data/GPL.txt
189 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
190 mv -f $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/bmpx.png \
191 $RPM_BUILD_ROOT%{_pixmapsdir}
193 rm -f $RPM_BUILD_ROOT%{_libdir}/bmpx/plugins/*/*.{a,la}
198 rm -rf $RPM_BUILD_ROOT
202 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
204 %if %{with gstreamer}
205 %banner %{name} -e << EOF
206 Remember to install appropriate GStreamer plugins for files
208 - gstreamer-flac (for FLAC)
209 - gstreamer-mad (for MP3s)
210 - gstreamer-vorbis (for Ogg Vorbis)
213 %banner %{name} -e << EOF
214 Remember to install appropriate xine-decode plugins for files
216 - xine-decode-flac (for FLAC)
217 - xine-decode-ogg (for Ogg Vorbis)
224 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
227 %post libs -p /sbin/ldconfig
228 %postun libs -p /sbin/ldconfig
230 %files -f %{name}.lang
231 %defattr(644,root,root,755)
232 %doc AUTHORS ChangeLog NEWS README
233 %attr(755,root,root) %{_bindir}/bmpx
234 %attr(755,root,root) %{_bindir}/bmp-dbus-*
236 %dir %{_libdir}/bmpx/plugins
243 %defattr(644,root,root,755)
244 %attr(755,root,root) %{_libdir}/libskinned.so.*.*.*
247 %defattr(644,root,root,755)
248 %attr(755,root,root) %{_libdir}/libskinned.so
249 %{_libdir}/libskinned.la
253 %defattr(644,root,root,755)
256 %files plugin-container
257 %defattr(644,root,root,755)
258 %dir %{_libdir}/bmpx/plugins/container
259 %attr(755,root,root) %{_libdir}/bmpx/plugins/container/*.so*
262 %defattr(644,root,root,755)
263 %dir %{_libdir}/bmpx/plugins/flow
264 %attr(755,root,root) %{_libdir}/bmpx/plugins/flow/*.so*
266 %files plugin-transport
267 %defattr(644,root,root,755)
268 %dir %{_libdir}/bmpx/plugins/transport
269 %attr(755,root,root) %{_libdir}/bmpx/plugins/transport/*.so*
272 %defattr(644,root,root,755)
273 %attr(755,root,root) %{_bindir}/bmpty
276 %defattr(644,root,root,755)
277 %attr(755,root,root) %{_bindir}/bmp-remote-pygtk
278 %{_datadir}/bmp-remote