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://dl.sourceforge.net/beepmp/%{name}-%{version}.tar.bz2
13 # Source0-md5: 4449eb429dc7bfb9c2ec3feb9e8c7e56
15 Patch0: %{name}-pic.patch
16 Patch1: %{name}-desktop.patch
17 URL: http://beep-media-player.org/
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: libtool
27 BuildRequires: libvorbis-devel >= 1:1.0
28 BuildRequires: rpm-pythonprov
29 BuildRequires: rpmbuild(macros) >= 1.194
30 BuildRequires: startup-notification-devel
31 BuildRequires: taglib-devel
33 BuildRequires: gstreamer-devel >= 0.10
35 BuildRequires: xine-lib-devel
38 Obsoletes: libchroma-devel
39 Requires: %{name}-libs = %{version}-%{release}
40 Requires: %{name}-plugin-container = %{version}-%{release}
41 Requires: %{name}-plugin-flow = %{version}-%{release}
42 Requires: %{name}-plugin-transport = %{version}-%{release}
43 Requires: libhrel = 0.1-2
45 Requires: gstreamer-audio-effects
46 Requires: gstreamer-audio-formats
47 Requires: gstreamer-audiosink
49 Requires: xine-plugin-audio
51 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54 BMPx is the follow-up of the BMP project with a codebase rewritten
55 from scratch and aims to maintain a stable audio player foundation,
56 and to provide a player with a consistent and easy to understand usage
60 BMPx jest nastêpc± projektu BMP z przepisanym od zera kodem i skupia
61 siê na utrzymaniu stabilnej podstawy odtwarzacza d¼wiêku, aby
62 udostêpniæ odtwarzacz ze spójn± i ³atw± do zrozumienia obs³ug±.
65 Summary: BMPx player library
66 Summary(pl): Biblioteka odtwarzacza BMPx
72 %description libs -l pl
73 Biblioteka odtwarzacza BMPx.
76 Summary: Header files for BMPx media player
77 Summary(pl): Pliki nag³ówkowe odtwarzacza multimedialnego BMPx
78 Group: X11/Development/Libraries
79 Requires: %{name}-libs = %{version}-%{release}
80 Requires: libhrel-devel = 0.1-2
83 Header files required for compiling BMPx media player plugins.
85 %description devel -l pl
86 Pliki nag³ówkowe potrzebne do kompilowania wtyczek odtwarzacza
90 Summary: Static BMPx library
91 Summary(pl): Statyczna biblioteka BMPx
92 Group: X11/Development/Libraries
93 Requires: %{name}-devel = %{version}-%{release}
98 %description static -l pl
99 Statyczna biblioteka BMPx.
101 %package plugin-container
102 Summary: Container plugin for BMPx
103 Summary(pl): Wtyczka Container dla BMPx
104 Group: X11/Applications/Sound
105 Requires: %{name} = %{version}-%{release}
107 %description plugin-container
108 Plugin providing support for folders, m3u & pls playlist files, etc.
110 %description plugin-container -l pl
111 Wtyczka dodaj±ca obs³ugê folderów, playlist w formacie m3u i pls, itp.
114 Summary: Flow plugin for BMPx
115 Summary(pl): Wtyczka Flow dla BMPx
116 Group: X11/Applications/Sound
117 Requires: %{name} = %{version}-%{release}
119 %description plugin-flow
120 Flow plugin for BMPx.
122 %description plugin-flow -l pl
123 Wtyczka Flow dla BMPx.
125 %package plugin-transport
126 Summary: Transport plugin for BMPx
127 Summary(pl): Wtyczka Transport dla BMPx
128 Group: X11/Applications/Sound
129 Requires: %{name} = %{version}-%{release}
131 %description plugin-transport
132 Transport plugin for BMPx.
134 %description plugin-transport -l pl
135 Wtyczka Transport dla BMPx.
138 Summary: BMPx python status watcher
139 Summary(pl): Obserwator statusu BMPx
140 Group: X11/Applications/Sound
141 Requires: %{name} = %{version}-%{release}
144 BMPx python status watcher.
146 %description remote -l pl
147 Obserwator statusu BMPx.
149 %package remote-curses
150 Summary: BMPx python status watcher
151 Summary(pl): Obserwator statusu BMPx w pythonie
152 Group: X11/Applications/Sound
153 Requires: %{name} = %{version}-%{release}
155 %description remote-curses
156 BMPx python status watcher (CLI interface).
158 %description remote-curses -l pl
159 Obserwator statusu BMPx w pythonie (interfejs CLI).
162 Summary: BMPx python status watcher
163 Summary(pl): Obserwator statusu BMPx w pythonie
164 Group: X11/Applications/Sound
165 Requires: %{name} = %{version}-%{release}
166 Requires: python-dbus
167 Requires: python-pygtk-glade
169 %description remote-gtk
170 BMPx python status watcher (GTK+ interface).
172 %description remote-gtk -l pl
173 Obserwator statusu BMPx w pythonie (interfejs GTK+).
176 Summary: Holyrel library
177 Summary(pl): Biblioteka Holyrel
182 %description -n libhrel
185 %description -n libhrel -l pl
188 %package -n libhrel-devel
189 Summary: Header files for Holyrel library
190 Summary(pl): Pliki nag³ówkowe biblioteki Holyrel
193 Group: X11/Development/Libraries
194 Requires: libhrel = 0.1-2
196 %description -n libhrel-devel
197 Header files for Holyrel library.
199 %description -n libhrel-devel -l pl
200 Pliki nag³ówkowe biblioteki Holyrel.
202 %package -n libhrel-static
203 Summary: Static Holyrel library
204 Summary(pl): Statyczna biblioteka Holyrel
207 Group: X11/Development/Libraries
208 Requires: libhrel-devel = 0.1-2
210 %description -n libhrel-static
211 Static Holyrel library.
213 %description -n libhrel-static -l pl
214 Statyczna biblioteka Holyrel.
228 %if %{with gstreamer}
239 rm -rf $RPM_BUILD_ROOT
242 DESTDIR=$RPM_BUILD_ROOT \
243 m4datadir=%{_aclocaldir}
245 rm -f $RPM_BUILD_ROOT%{_datadir}/bmpx/data/GPL.txt
247 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
248 mv -f $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/bmpx.png \
249 $RPM_BUILD_ROOT%{_pixmapsdir}
251 rm -f $RPM_BUILD_ROOT%{_libdir}/bmpx/plugins/*/*.{a,la}
252 rm -f $RPM_BUILD_ROOT%{_bindir}/{ctt,hash_*,hrel-demo}
257 rm -rf $RPM_BUILD_ROOT
261 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
263 %if %{with gstreamer}
264 %banner %{name} -e << EOF
265 Remember to install appropriate GStreamer plugins for files
267 - gstreamer-flac (for FLAC)
268 - gstreamer-mad (for MP3s)
269 - gstreamer-vorbis (for Ogg Vorbis)
272 %banner %{name} -e << EOF
273 Remember to install appropriate xine-decode plugins for files
275 - xine-decode-flac (for FLAC)
276 - xine-decode-ogg (for Ogg Vorbis)
283 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
286 %post libs -p /sbin/ldconfig
287 %postun libs -p /sbin/ldconfig
289 %post -n libhrel -p /sbin/ldconfig
290 %postun -n libhrel -p /sbin/ldconfig
292 %files -f %{name}.lang
293 %defattr(644,root,root,755)
294 %doc AUTHORS ChangeLog NEWS README
295 %attr(755,root,root) %{_bindir}/bmpx
296 %attr(755,root,root) %{_bindir}/bmpx-dbus-*
298 %dir %{_libdir}/bmpx/plugins
299 %dir %{_datadir}/bmpx-clients
306 %defattr(644,root,root,755)
307 %attr(755,root,root) %{_libdir}/libskinned.so.*.*.*
310 %defattr(644,root,root,755)
311 %attr(755,root,root) %{_libdir}/libskinned.so
312 %{_libdir}/libskinned.la
315 %{_includedir}/libskinned
318 %defattr(644,root,root,755)
319 %{_libdir}/libskinned.a
321 %files plugin-container
322 %defattr(644,root,root,755)
323 %dir %{_libdir}/bmpx/plugins/container
324 %attr(755,root,root) %{_libdir}/bmpx/plugins/container/*.so*
327 %defattr(644,root,root,755)
328 %dir %{_libdir}/bmpx/plugins/flow
329 %attr(755,root,root) %{_libdir}/bmpx/plugins/flow/*.so*
331 %files plugin-transport
332 %defattr(644,root,root,755)
333 %dir %{_libdir}/bmpx/plugins/transport
334 %attr(755,root,root) %{_libdir}/bmpx/plugins/transport/*.so*
337 %defattr(644,root,root,755)
338 %attr(755,root,root) %{_bindir}/bmpx-remote
341 %defattr(644,root,root,755)
342 %attr(755,root,root) %{_bindir}/bmpty
345 %defattr(644,root,root,755)
346 %attr(755,root,root) %{_bindir}/bmpx-client-pygtk
347 %{_datadir}/bmpx-clients/pygtk
350 %defattr(644,root,root,755)
351 %attr(755,root,root) %{_libdir}/libhrel.so.*.*.*
353 %files -n libhrel-devel
354 %defattr(644,root,root,755)
355 %attr(755,root,root) %{_libdir}/libhrel.so
356 %{_libdir}/libhrel.la
357 %{_pkgconfigdir}/hrel.pc
358 %{_includedir}/libhrel
360 %files -n libhrel-static
361 %defattr(644,root,root,755)