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: 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-flow = %{epoch}:%{version}-%{release}
37 Requires: %{name}-plugin-container = %{epoch}:%{version}-%{release}
38 Requires: %{name}-plugin-transport = %{epoch}:%{version}-%{release}
40 Requires: gstreamer-audio-effects
41 Requires: gstreamer-audio-formats
42 Requires: gstreamer-audiosink
44 Requires: xine-plugin-audio
46 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49 BMPx is the follow-up of the BMP project with a codebase rewritten
50 from scratch and aims to maintain a stable audio player foundation,
51 and to provide a player with a consistent and easy to understand usage
55 BMPx jest nastêpc± projektu BMP z przepisanym od zera kodem i skupia
56 siê na utrzymaniu stabilnej podstawy odtwarzacza d¼wiêku, aby
57 udostêpniæ odtwarzacz ze spójn± i ³atw± do zrozumienia obs³ug±.
60 Summary: BMPx player library
61 Summary(pl): Biblioteka odtwarzacza BMPx
62 Group: X11/Development/Libraries
67 %description libs -l pl
68 Biblioteka odtwarzacza BMPx.
71 Summary: Header files for BMPx media player
72 Summary(pl): Pliki nag³ówkowe odtwarzacza multimedialnego BMPx
73 Group: X11/Development/Libraries
74 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
77 Header files required for compiling BMPx media player plugins.
79 %description devel -l pl
80 Pliki nag³ówkowe potrzebne do kompilowania wtyczek odtwarzacza
84 Summary: Static BMPx library
85 Summary(pl): Statyczna biblioteka BMPx
86 Group: X11/Development/Libraries
87 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
92 %description static -l pl
93 Statyczna biblioteka BMPx.
95 %package plugin-container
96 Summary: Container plugin for BMPx
97 Summary(pl): Wtyczka Container dla BMPx
98 Group: X11/Applications/Sound
99 Requires: %{name} = %{epoch}:%{version}-%{release}
101 %description plugin-container
102 Plugin providing support for folders, m3u & pls playlist files, etc.
104 %description plugin-container -l pl
105 Wtyczka dodaj±ca obs³ugê folderów, playlist w formacie m3u i pls, itp.
108 Summary: Flow plugin for BMPx
109 Summary(pl): Wtyczka Flow dla BMPx
110 Group: X11/Applications/Sound
111 Requires: %{name} = %{epoch}:%{version}-%{release}
113 %description plugin-flow
114 Flow plugin for BMPx.
116 %description plugin-flow -l pl
117 Wtyczka Flow dla BMPx.
119 %package plugin-transport
120 Summary: Transport plugin for BMPx
121 Summary(pl): Wtyczka Transport dla BMPx
122 Group: X11/Applications/Sound
123 Requires: %{name} = %{epoch}:%{version}-%{release}
125 %description plugin-transport
126 Transport plugin for BMPx.
128 %description plugin-transport -l pl
129 Wtyczka Transport dla BMPx.
131 %package remote-curses
132 Summary: BMPx Python status Watcher
133 Summary(pl): Obserwator statusu BMPx w Pythonie
134 Group: X11/Applications/Sound
135 Requires: %{name} = %{epoch}:%{version}-%{release}
137 %description remote-curses
138 BMPx Python status Watcher (CLI interface).
140 %description remote-curses -l pl
141 Obserwator statusu BMPx w Pythonie (interfejs CLI).
144 Summary: BMPx Python status Watcher
145 Summary(pl): Obserwator statusu BMPx w Pythonie
146 Group: X11/Applications/Sound
147 Requires: %{name} = %{epoch}:%{version}-%{release}
148 Requires: python-pygtk-glade
150 %description remote-gtk
151 BMPx Python status Watcher (GTK+ interface).
153 %description remote-gtk -l pl
154 Obserwator statusu BMPx w Pythonie (interfejs GTK+).
162 rm -rf autom4te.cache
168 %if %{with gstreamer}
179 rm -rf $RPM_BUILD_ROOT
182 DESTDIR=$RPM_BUILD_ROOT \
183 m4datadir=%{_aclocaldir}
185 rm -f $RPM_BUILD_ROOT%{_datadir}/bmpx/data/GPL.txt
187 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
188 mv -f $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/bmpx.png \
189 $RPM_BUILD_ROOT%{_pixmapsdir}
191 rm -f $RPM_BUILD_ROOT%{_libdir}/bmpx/plugins/*/*.{a,la}
196 rm -rf $RPM_BUILD_ROOT
200 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
202 %if %{with gstreamer}
203 %banner %{name} -e << EOF
204 Remember to install appropriate GStreamer plugins for files
206 - gstreamer-flac (for FLAC)
207 - gstreamer-mad (for MP3s)
208 - gstreamer-vorbis (for Ogg Vorbis)
211 %banner %{name} -e << EOF
212 Remember to install appropriate xine-decode plugins for files
214 - xine-decode-flac (for FLAC)
215 - xine-decode-ogg (for Ogg Vorbis)
222 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
225 %post libs -p /sbin/ldconfig
226 %postun libs -p /sbin/ldconfig
228 %files -f %{name}.lang
229 %defattr(644,root,root,755)
230 %doc AUTHORS ChangeLog NEWS README
231 %attr(755,root,root) %{_bindir}/bmpx
232 %attr(755,root,root) %{_bindir}/bmp-dbus-*
234 %dir %{_libdir}/bmpx/plugins
241 %defattr(644,root,root,755)
242 %attr(755,root,root) %{_libdir}/libskinned.so.*.*.*
245 %defattr(644,root,root,755)
246 %attr(755,root,root) %{_libdir}/libskinned.so
247 %{_libdir}/libskinned.la
251 %defattr(644,root,root,755)
254 %files plugin-container
255 %defattr(644,root,root,755)
256 %dir %{_libdir}/bmpx/plugins/container
257 %attr(755,root,root) %{_libdir}/bmpx/plugins/container/*.so*
260 %defattr(644,root,root,755)
261 %dir %{_libdir}/bmpx/plugins/flow
262 %attr(755,root,root) %{_libdir}/bmpx/plugins/flow/*.so*
264 %files plugin-transport
265 %defattr(644,root,root,755)
266 %dir %{_libdir}/bmpx/plugins/transport
267 %attr(755,root,root) %{_libdir}/bmpx/plugins/transport/*.so*
270 %defattr(644,root,root,755)
271 %attr(755,root,root) %{_bindir}/bmpty
274 %defattr(644,root,root,755)
275 %attr(755,root,root) %{_bindir}/bmp-remote-pygtk
276 %{_datadir}/bmp-remote