2 # - postgresql support alongside mysql
3 # - NMM audio backend support (fix build - propably some BRs)
4 # - make descriptions less useless
5 # - track http://websvn.kde.org/trunk/extragear/multimedia/amarok/TODO?rev=470324&r1=470292&r2=470324
6 # - include /usr/bin/amarok_proxy.rb (proxy server for last.fm, but req. ruby)
7 # - main package pulls /usr/bin/ruby
8 # - monitor http://bugs.kde.org/show_bug.cgi?id=137390 to remove the temporary fix
11 %bcond_with gstreamer # enable gstreamer (gst10 not stable)
12 %bcond_without mas # disable MAS audio backend
13 %bcond_without xine # disable xine engine
14 %bcond_without xmms # disable xmms wrapping
15 %bcond_without zeroconf # disable support for zeroconf
16 %bcond_without included_sqlite # don't use included sqlite (VERY BAD IDEA), needs sqlite >= 3.3 otherwise
17 %bcond_without helix # disable HelixPlayer engine
18 %bcond_without mp3players # disable iPod and iRiver MP3 players support
19 %bcond_with nmm # enable NMM audio backend
20 %bcond_with mysql # enable MySQL support
21 %bcond_with pgsql # enable PostgreSQL support
27 Summary: A KDE audio player
28 Summary(pl): Odtwarzacz audio dla KDE
33 Group: X11/Applications/Multimedia
34 #Source0: http://dl.sourceforge.net/amarok/%{name}-%{version}.tar.bz2
35 Source0: http://mirrors.isc.org/pub/kde/stable/amarok/%{version}/src/%{name}-%{version}.tar.bz2
36 # Source0-md5: 56a9aec42088c338b81252f8e0651781
37 Patch0: %{name}-helixplayer-morearchs.patch
38 Patch1: %{name}-libnjb.patch
39 Patch2: %{name}-smp.patch
40 Patch3: %{name}-sparc.patch
41 Patch4: kde-ac260-lt.patch
42 Patch5: kde-common-PLD.patch
43 Patch6: %{name}-gcc4.patch
44 URL: http://amarok.kde.org/
45 BuildRequires: SDL-devel
46 BuildRequires: alsa-lib-devel
47 BuildRequires: autoconf
48 BuildRequires: automake
49 BuildRequires: dbus-glib-devel
50 BuildRequires: gettext-devel
51 %{?with_gstreamer:BuildRequires: gstreamer-devel >= 0.10.0}
52 BuildRequires: kdebase-devel
53 %{?with_akode:BuildRequires: kdemultimedia-akode}
54 BuildRequires: kdemultimedia-devel >= 9:3.1.93
55 %{?with_mp3players:BuildRequires: libgpod-devel >= 0.2.0}
56 %{?with_mp3players:BuildRequires: libifp-devel}
57 %{?with_mp3players:BuildRequires: libmtp-devel}
58 %{?with_mp3players:BuildRequires: libnjb-devel}
59 BuildRequires: libltdl-devel
60 %{?with_pgsql:BuildRequires: libpqxx-devel}
61 BuildRequires: libtunepimp-devel >= 0.5.1-6
62 BuildRequires: libvisual-devel >= 0.4.0
63 BuildRequires: mpeg4ip-devel
64 %{?with_mysql:BuildRequires: mysql-devel}
65 BuildRequires: pcre-devel
66 BuildRequires: pkgconfig
67 BuildRequires: rpm-pythonprov
68 BuildRequires: rpmbuild(macros) >= 1.129
69 BuildRequires: ruby-devel >= 1.8
70 BuildRequires: sed >= 4.0
71 %{!?with_included_sqlite:BuildRequires: sqlite3-devel >= 3.3}
72 BuildRequires: taglib-devel >= 1.4
73 %{?with_xine:BuildRequires: xine-lib-devel >= 1.1.1}
74 %{?with_xmms:BuildRequires: xmms-devel}
75 Requires(post): /sbin/ldconfig
76 Requires: %{name}-plugin = %{version}-%{release}
77 Requires: kdebase-core >= 9:3.1.93
78 Requires: kdemultimedia-audiocd >= 9:3.1.93
79 Obsoletes: amarok-arts
80 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
82 # temporary hack for proper libgpod::itdb_get_mountpoint() detection.
83 %define filterout_ld -Wl,--as-needed
89 Odtwarzacz audio dla KDE.
93 Summary(pl): Wtyczka akode
94 Group: X11/Applications/Multimedia
95 Requires: %{name} = %{version}-%{release}
96 Provides: %{name}-plugin = %{version}-%{release}
101 %description akode -l pl
105 Summary: Helix/Realplayer playback support for amarok
106 Summary(pl): Wsparcie dla odtwarzania przez Helix/Realplayera dla amaroka
107 Group: X11/Applications/Multimedia
108 Requires: %{name} = %{version}-%{release}
110 Provides: %{name}-plugin = %{version}-%{release}
113 Helix/Realplayer playback support for amarok.
115 %description helix -l pl
116 Wsparcie dla odtwarzania przez Helix/Realplayera dla amaroka.
119 Summary: Plugin gstreamer
120 Summary(pl): Wtyczka gstreamer
121 Group: X11/Applications/Multimedia
122 # deps, to get it working:
123 # mp3 decoder: gstreamer-mad
124 # ogg decoder: gstreamer-vorbis
125 # audio output driver: gstreamer-audiosink-alsa
126 # from gstreamer-audio-effects to control volume, etc
128 # at least /usr/lib/gstreamer-0.8/libgstresample.so
129 # probably /usr/lib/gstreamer-0.8/libgstadder.so
130 # and probably /usr/lib/gstreamer-0.8/libgstvolume.so
131 # gstreamer-musicbrainz for being able to edit id3 tags on files.
132 Requires: %{name} = %{version}-%{release}
133 Requires: gstreamer-audio-effects
134 Requires: gstreamer-audiosink
135 Requires: gstreamer-mad
136 Requires: gstreamer-musicbrainz
137 Requires: gstreamer-vorbis
138 Provides: %{name}-plugin = %{version}-%{release}
140 %description gstreamer
143 %description gstreamer -l pl
148 Summary(pl): Wtyczka xine
149 Group: X11/Applications/Multimedia
150 Requires: %{name} = %{version}-%{release}
151 Requires: xine-plugin-audio
152 Provides: %{name}-plugin = %{version}-%{release}
157 %description xine -l pl
161 Summary: Xmms wrapper
162 Summary(pl): Wrapper xmms
163 Group: X11/Applications/Multimedia
164 Requires: %{name} = %{version}-%{release}
169 %description xmms -l pl
173 Summary: Zeroconf data
174 Summary(pl): Dane dla zeroconf
175 Group: X11/Applications/Multimedia
176 Requires: %{name} = %{version}-%{release}
177 Requires: kdenetwork-kdnssd
178 Provides: %{name}-plugin = %{version}-%{release}
180 %description zeroconf
183 %description zeroconf -l pl
187 Summary: amaroK scripts
188 Summary(pl): Skrypty amaroKa
189 Group: X11/Applications/Multimedia
190 Requires: %{name} = %{version}-%{release}
191 Requires: kdebase-kdialog
192 Requires: python-PyQt
193 Requires: ruby-modules
196 amaroK scripts allow you extend amaroK functionality.
198 You can learn more about scripts in amaroK from here:
199 <http://amarok.kde.org/amarokwiki/index.php/Script-Writing_HowTo>.
201 %description scripts -l pl
202 Skrypty amaroKa pozwalaj±ce rozszerzaæ jego funkcjonalno¶æ.
204 Wiêcej o skryptach w amaroKu mo¿na dowiedzieæ siê st±d:
205 <http://amarok.kde.org/amarokwiki/index.php/Script-Writing_HowTo>.
217 %{__sed} -i -e 's/Categories=.*/Categories=Qt;KDE;AudioVideo;Player;/' \
218 amarok/src/amarok.desktop \
220 # see kde bug #110909
221 %{__sed} -i -e 's/amarok_live//' amarok/src/scripts/Makefile.am
223 # kill env, call interpreter directly, so rpm automatics could rule
225 1s,#!.*bin/env.*ruby,#!%{_bindir}/ruby,
226 1s,#!.*bin/env.*python,#!%{_bindir}/python,
227 1s,#!.*bin/env.*bash,#!/bin/bash,
228 ' amarok/src/scripts/*/*.{py,rb,sh} amarok/src/amarok_proxy.rb
231 cp -f /usr/share/automake/config.sub admin
232 %{__make} -f admin/Makefile.common cvs
234 # hack: passing something other than "no" or "yes" to --with-helix allows
235 # us to pass HELIX_LIBS
237 HELIX_LIBS=%{_libdir}/helixplayer \
238 --%{?debug:en}%{!?debug:dis}able-debug%{?debug:=full} \
240 --with%{!?with_mas:out}-mas \
241 --with%{!?with_xine:out}-xine \
242 --with%{!?with_gstreamer:out}-gstreamer10 \
243 --with%{!?with_akode:out}-akode \
244 --with%{!?with_helix:out}-helix%{?with_helix:=usegivenpath} \
245 --with%{!?with_nmm:out}-nmm \
246 --with%{!?with_xmms:out}-xmms \
247 --with%{!?with_mp3players:out}-libgpod \
248 --with%{!?with_mp3players:out}-libnjb \
249 --with%{!?with_mp3players:out}-libmtp \
250 --with%{!?with_mp3players:out}-ifp \
251 --%{?with_mysql:en}%{!?with_mysql:dis}able-mysql \
252 --%{?with_mysql:en}%{!?with_mysql:dis}able-postgresql \
255 --with-qt-libraries=%{_libdir} \
256 --with%{!?with_included_sqlite:out}-included-sqlite
261 rm -rf $RPM_BUILD_ROOT
264 DESTDIR=$RPM_BUILD_ROOT \
265 kde_htmldir=%{_kdedocdir} \
266 kde_libs_htmldir=%{_kdedocdir}
269 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/xx
271 rm $RPM_BUILD_ROOT%{_libdir}/kde3/*.la
273 %find_lang amarok --all-name --with-kde
276 rm -rf $RPM_BUILD_ROOT
280 if [ "$1" = 1 ]; then
281 echo "Remember to install libvisual-plugins-* packages if you"
282 echo "want to have a visualizations in amaroK."
285 %postun -p /sbin/ldconfig
287 %files -f amarok.lang
288 %defattr(644,root,root,755)
289 %doc AUTHORS ChangeLog README
290 %attr(755,root,root) %{_bindir}/amarok
291 %attr(755,root,root) %{_bindir}/amarokapp
292 %attr(755,root,root) %{_bindir}/amarokcollectionscanner
293 %attr(755,root,root) %{_bindir}/amarok_libvisual
294 %attr(755,root,root) %{_bindir}/amarok_proxy.rb
295 %attr(755,root,root) %{_bindir}/amarok_daapserver.rb
296 %attr(755,root,root) %{_libdir}/libamarok.so
297 %attr(755,root,root) %{_libdir}/libamarok.so.*.*.*
298 %attr(755,root,root) %{_libdir}/kde3/konqsidebar_universalamarok.so
299 %attr(755,root,root) %{_libdir}/kde3/libamarok_generic-mediadevice.so
300 %attr(755,root,root) %{_libdir}/kde3/libamarok_void-engine_plugin.so
301 %attr(755,root,root) %{_libdir}/kde3/libamarok_daap-mediadevice.so
302 %attr(755,root,root) %{_libdir}/kde3/libamarok_massstorage-device.so
303 %attr(755,root,root) %{_libdir}/kde3/libamarok_nfs-device.so
304 %attr(755,root,root) %{_libdir}/kde3/libamarok_smb-device.so
305 %{_libdir}/ruby_lib/http11.rb
306 %attr(755,root,root) %{_libdir}/ruby_lib/libhttp11.so
307 %attr(755,root,root) %{_libdir}/ruby_lib/libhttp11.so.0.0.0
308 %dir %{_datadir}/apps/amarok
309 %dir %{_datadir}/apps/amarok/scripts
310 %{_datadir}/apps/amarok/ruby_lib
311 %{_datadir}/apps/amarok/*.rc
312 %{_datadir}/apps/amarok/data
313 %{_datadir}/apps/amarok/icons
314 %{_datadir}/apps/amarok/images
315 %{_datadir}/apps/amarok/themes
316 %{_datadir}/apps/konqueror/servicemenus/amarok_append.desktop
317 %{_datadir}/apps/konqueror/servicemenus/amarok_addaspodcast.desktop
318 %{_datadir}/apps/konqueror/servicemenus/amarok_play_audiocd.desktop
319 %{_datadir}/apps/konqsidebartng/add/amarok.desktop
320 %{_datadir}/apps/konqsidebartng/entries/amarok.desktop
321 %{_datadir}/apps/konqsidebartng/kicker_entries/amarok.desktop
322 %{_datadir}/apps/profiles/amarok.profile.xml
323 %{_datadir}/config/amarokrc
324 %{_datadir}/config.kcfg/amarok.kcfg
325 %{_datadir}/services/amarok_generic-mediadevice.desktop
326 %{_datadir}/services/amarok_void-engine_plugin.desktop
327 %{_datadir}/services/amarok_daap-mediadevice.desktop
328 %{_datadir}/services/amarok_massstorage-device.desktop
329 %{_datadir}/services/amarok_nfs-device.desktop
330 %{_datadir}/services/amarok_smb-device.desktop
331 %{_datadir}/services/amaroklastfm.protocol
332 %{_datadir}/services/amarokitpc.protocol
333 %{_datadir}/services/amarokpcast.protocol
334 %{_datadir}/servicetypes/amarok_codecinstall.desktop
335 %{_datadir}/servicetypes/amarok_plugin.desktop
336 %{_desktopdir}/kde/amarok.desktop
337 %{_iconsdir}/*/*/apps/amarok.*
338 # TODO: move to subpackage
339 %if %{with mp3players}
340 %attr(755,root,root) %{_libdir}/kde3/libamarok_ifp-mediadevice.so
341 %attr(755,root,root) %{_libdir}/kde3/libamarok_ipod-mediadevice.so
342 %attr(755,root,root) %{_libdir}/kde3/libamarok_mtp-mediadevice.so
343 %attr(755,root,root) %{_libdir}/kde3/libamarok_njb-mediadevice.so
344 %{_datadir}/services/amarok_ifp-mediadevice.desktop
345 %{_datadir}/services/amarok_ipod-mediadevice.desktop
346 %{_datadir}/services/amarok_mtp-mediadevice.desktop
347 %{_datadir}/services/amarok_njb-mediadevice.desktop
352 %defattr(644,root,root,755)
353 %attr(755,root,root) %{_libdir}/kde3/libamarok_aKode-engine.so
354 %{_datadir}/services/amarok_aKode-engine.desktop
357 %if %{with gstreamer}
359 %defattr(644,root,root,755)
360 %attr(755,root,root) %{_libdir}/kde3/libamarok_gst10engine_plugin.so
361 %{_datadir}/config.kcfg/gstconfig.kcfg
362 %{_datadir}/services/amarok_gst10engine_plugin.desktop
367 %defattr(644,root,root,755)
368 %attr(755,root,root) %{_libdir}/kde3/libamarok_helixengine_plugin.so
369 %{_datadir}/config.kcfg/helixconfig.kcfg
370 %{_datadir}/services/amarok_helixengine_plugin.desktop
375 %defattr(644,root,root,755)
376 %attr(755,root,root) %{_libdir}/kde3/libamarok_xine-engine.so
377 %{_datadir}/config.kcfg/xinecfg.kcfg
378 %{_datadir}/services/amarok_xine-engine.desktop
383 %defattr(644,root,root,755)
384 %attr(755,root,root) %{_bindir}/amarok_xmmswrapper2
390 %defattr(644,root,root,755)
391 #%{_datadir}/apps/zeroconf/_shoutcast._tcp
396 %defattr(644,root,root,755)
397 %dir %{_datadir}/apps/amarok/scripts/common
398 %{_datadir}/apps/amarok/scripts/common/Publisher.py
399 %{_datadir}/apps/amarok/scripts/common/Zeroconf.py
401 %dir %{_datadir}/apps/amarok/scripts/templates
402 %{_datadir}/apps/amarok/scripts/templates/amarok.rb
403 %{_datadir}/apps/amarok/scripts/templates/python_qt_template.py
404 %{_datadir}/apps/amarok/scripts/templates/ruby_qt_template.rb
406 # amarok searches for executable programs for scripts
407 # to figure out which files need to have execute permission, use this
409 # $ find $RPM_BUILD_ROOT/usr/share/apps/amarok/scripts -perm +1
411 #%dir %{_datadir}/apps/amarok/scripts/graphequalizer
412 #%{_datadir}/apps/amarok/scripts/graphequalizer/README
413 #%attr(755,root,root) %{_datadir}/apps/amarok/scripts/graphequalizer/graphequalizer
415 %dir %{_datadir}/apps/amarok/scripts/playlist2html
416 %{_datadir}/apps/amarok/scripts/playlist2html/README
417 %{_datadir}/apps/amarok/scripts/playlist2html/Playlist.py
418 %attr(755,root,root) %{_datadir}/apps/amarok/scripts/playlist2html/PlaylistServer.py
419 %attr(755,root,root) %{_datadir}/apps/amarok/scripts/playlist2html/playlist2html.py
421 %dir %{_datadir}/apps/amarok/scripts/webcontrol
422 %{_datadir}/apps/amarok/scripts/webcontrol/README
423 %{_datadir}/apps/amarok/scripts/webcontrol/Globals.py
424 %{_datadir}/apps/amarok/scripts/webcontrol/Playlist.py
425 %{_datadir}/apps/amarok/scripts/webcontrol/RequestHandler.py
426 %{_datadir}/apps/amarok/scripts/webcontrol/amarok_cut.png
427 %{_datadir}/apps/amarok/scripts/webcontrol/controlbackground.png
428 %{_datadir}/apps/amarok/scripts/webcontrol/main.css
429 %{_datadir}/apps/amarok/scripts/webcontrol/main.js
430 %{_datadir}/apps/amarok/scripts/webcontrol/player_end.png
431 %{_datadir}/apps/amarok/scripts/webcontrol/player_pause.png
432 %{_datadir}/apps/amarok/scripts/webcontrol/player_play.png
433 %{_datadir}/apps/amarok/scripts/webcontrol/player_start.png
434 %{_datadir}/apps/amarok/scripts/webcontrol/player_stop.png
435 %{_datadir}/apps/amarok/scripts/webcontrol/template.thtml
436 %{_datadir}/apps/amarok/scripts/webcontrol/vol_speaker.png
437 %{_datadir}/apps/amarok/scripts/webcontrol/WebPublisher.py
438 %{_datadir}/apps/amarok/scripts/webcontrol/WebControl.spec
439 %{_datadir}/apps/amarok/scripts/webcontrol/smallstar.png
440 %{_datadir}/apps/amarok/scripts/webcontrol/star.png
441 %attr(755,root,root) %{_datadir}/apps/amarok/scripts/webcontrol/WebControl.py
443 %dir %{_datadir}/apps/amarok/scripts/lyrics_astraweb
444 %{_datadir}/apps/amarok/scripts/lyrics_astraweb/COPYING
445 %{_datadir}/apps/amarok/scripts/lyrics_astraweb/README
446 %attr(755,root,root) %{_datadir}/apps/amarok/scripts/lyrics_astraweb/lyrics_astraweb.rb
447 %{_datadir}/apps/amarok/scripts/lyrics_astraweb/lyrics_astraweb.spec
449 %dir %{_datadir}/apps/amarok/scripts/lyrics_lyrc
450 %{_datadir}/apps/amarok/scripts/lyrics_lyrc/COPYING
451 %{_datadir}/apps/amarok/scripts/lyrics_lyrc/README
452 %attr(755,root,root) %{_datadir}/apps/amarok/scripts/lyrics_lyrc/lyrics_lyrc.rb
453 %{_datadir}/apps/amarok/scripts/lyrics_lyrc/lyrics_lyrc.spec
455 %dir %{_datadir}/apps/amarok/scripts/score_default
456 %{_datadir}/apps/amarok/scripts/score_default/COPYING
457 %{_datadir}/apps/amarok/scripts/score_default/README
458 %attr(755,root,root) %{_datadir}/apps/amarok/scripts/score_default/score_default.rb
459 %{_datadir}/apps/amarok/scripts/score_default/score_default.spec
460 %dir %{_datadir}/apps/amarok/scripts/score_impulsive
461 %{_datadir}/apps/amarok/scripts/score_impulsive/COPYING
462 %{_datadir}/apps/amarok/scripts/score_impulsive/README
463 %attr(755,root,root) %{_datadir}/apps/amarok/scripts/score_impulsive/score_impulsive.rb
464 %{_datadir}/apps/amarok/scripts/score_impulsive/score_impulsive.spec
466 %dir %{_datadir}/apps/amarok/scripts/ruby_debug
467 %{_datadir}/apps/amarok/scripts/ruby_debug/debug.rb
470 %dir %{_datadir}/apps/amarok/scripts/amarok_live
471 %{_datadir}/apps/amarok/scripts/amarok_live/README
472 %{_datadir}/apps/amarok/scripts/amarok_live/amarok.live.remaster.part1.sh
473 %{_datadir}/apps/amarok/scripts/amarok_live/amarok.live.remaster.part2.sh
474 %attr(755,root,root) %{_datadir}/apps/amarok/scripts/amarok_live/amarok_live.py