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-flow = %{epoch}:%{version}-%{release}
38 Requires: %{name}-plugin-container = %{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-pygtk-glade
151 %description remote-gtk
152 BMPx python status watcher (GTK+ interface).
154 %description remote-gtk -l pl
155 Obserwator statusu BMPx w pythonie (interfejs GTK+).
163 rm -rf autom4te.cache
169 %if %{with gstreamer}
180 rm -rf $RPM_BUILD_ROOT
183 DESTDIR=$RPM_BUILD_ROOT \
184 m4datadir=%{_aclocaldir}
186 rm -f $RPM_BUILD_ROOT%{_datadir}/bmpx/data/GPL.txt
188 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
189 mv -f $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/bmpx.png \
190 $RPM_BUILD_ROOT%{_pixmapsdir}
192 rm -f $RPM_BUILD_ROOT%{_libdir}/bmpx/plugins/*/*.{a,la}
197 rm -rf $RPM_BUILD_ROOT
201 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
203 %if %{with gstreamer}
204 %banner %{name} -e << EOF
205 Remember to install appropriate GStreamer plugins for files
207 - gstreamer-flac (for FLAC)
208 - gstreamer-mad (for MP3s)
209 - gstreamer-vorbis (for Ogg Vorbis)
212 %banner %{name} -e << EOF
213 Remember to install appropriate xine-decode plugins for files
215 - xine-decode-flac (for FLAC)
216 - xine-decode-ogg (for Ogg Vorbis)
223 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
226 %post libs -p /sbin/ldconfig
227 %postun libs -p /sbin/ldconfig
229 %files -f %{name}.lang
230 %defattr(644,root,root,755)
231 %doc AUTHORS ChangeLog NEWS README
232 %attr(755,root,root) %{_bindir}/bmpx
233 %attr(755,root,root) %{_bindir}/bmp-dbus-*
235 %dir %{_libdir}/bmpx/plugins
242 %defattr(644,root,root,755)
243 %attr(755,root,root) %{_libdir}/libskinned.so.*.*.*
246 %defattr(644,root,root,755)
247 %attr(755,root,root) %{_libdir}/libskinned.so
248 %{_libdir}/libskinned.la
252 %defattr(644,root,root,755)
255 %files plugin-container
256 %defattr(644,root,root,755)
257 %dir %{_libdir}/bmpx/plugins/container
258 %attr(755,root,root) %{_libdir}/bmpx/plugins/container/*.so*
261 %defattr(644,root,root,755)
262 %dir %{_libdir}/bmpx/plugins/flow
263 %attr(755,root,root) %{_libdir}/bmpx/plugins/flow/*.so*
265 %files plugin-transport
266 %defattr(644,root,root,755)
267 %dir %{_libdir}/bmpx/plugins/transport
268 %attr(755,root,root) %{_libdir}/bmpx/plugins/transport/*.so*
271 %defattr(644,root,root,755)
272 %attr(755,root,root) %{_bindir}/bmpty
275 %defattr(644,root,root,755)
276 %attr(755,root,root) %{_bindir}/bmp-remote-pygtk
277 %{_datadir}/bmp-remote