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
9 # - ProjectM (see README)
10 # - karma & MFS (see README)
13 %bcond_with gstreamer # enable gstreamer (gst10 not stable)
14 %bcond_without mas # disable MAS audio backend
15 %bcond_without xine # disable xine engine
16 %bcond_without zeroconf # disable support for zeroconf
17 %bcond_without included_sqlite # don't use included sqlite (VERY BAD IDEA), needs sqlite >= 3.3 otherwise
18 %bcond_without helix # disable HelixPlayer engine
19 %bcond_without mp3players # disable iPod and iRiver MP3 players support
20 %bcond_with nmm # enable NMM audio backend
21 %bcond_with mysql # enable MySQL support
22 %bcond_with pgsql # enable PostgreSQL support
28 Summary: A KDE audio player
29 Summary(pl.UTF-8): Odtwarzacz audio dla KDE
34 Group: X11/Applications/Multimedia
35 Source0: ftp://ftp.kde.org/pub/kde/stable/amarok/%{version}/src/%{name}-%{version}.tar.bz2
36 # Source0-md5: 3bdbf26181bf5e5925f48968caba7ac2
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 Patch7: %{name}-titleorder.patch
45 Patch8: %{name}-mongrel.patch
46 Patch9: %{name}-libmtp.patch
47 URL: http://amarok.kde.org/
48 BuildRequires: SDL-devel
49 BuildRequires: alsa-lib-devel
50 BuildRequires: autoconf
51 BuildRequires: automake
52 BuildRequires: dbus-glib-devel
53 BuildRequires: gettext-devel
54 %{?with_gstreamer:BuildRequires: gstreamer-devel >= 0.10.0}
55 BuildRequires: kdebase-devel
56 %{?with_akode:BuildRequires: kdemultimedia-akode}
57 BuildRequires: kdemultimedia-devel >= 9:3.1.93
58 %{?with_mp3players:BuildRequires: libgpod-devel >= 0.6.0}
59 %{?with_mp3players:BuildRequires: libifp-devel >= 1.0.0.2}
60 BuildRequires: libltdl-devel
61 %{?with_mp3players:BuildRequires: libmtp-devel >= 0.3.0}
62 %{?with_mp3players:BuildRequires: libnjb-devel >= 2.2.4}
63 %{?with_pgsql:BuildRequires: libpqxx-devel}
64 BuildRequires: libtunepimp-devel >= 0.5.1-6
65 BuildRequires: libvisual-devel >= 0.4.0
66 BuildRequires: mpeg4ip-devel >= 1:1.6
67 %{?with_mysql:BuildRequires: mysql-devel}
68 BuildRequires: pcre-devel
69 BuildRequires: pkgconfig
70 BuildRequires: rpm-pythonprov
71 BuildRequires: rpmbuild(macros) >= 1.129
72 BuildRequires: ruby-devel >= 1.8
73 BuildRequires: sed >= 4.0
74 %{!?with_included_sqlite:BuildRequires: sqlite3-devel >= 3.3}
75 BuildRequires: taglib-devel >= 1.4
76 %{?with_xine:BuildRequires: xine-lib-devel >= 1.1.1}
77 Requires(post): /sbin/ldconfig
78 Requires: %{name}-plugin = %{version}-%{release}
79 Requires: ruby-mongrel
80 Suggests: kdemultimedia(audiocd) >= 9:3.1.93
81 Suggests: libvisual-plugin-actor-JESS
82 Suggests: libvisual-plugin-actor-bumpscope
83 Suggests: libvisual-plugin-actor-corona
84 Suggests: libvisual-plugin-actor-flower
85 Suggests: libvisual-plugin-actor-gdkpixbuf
86 Suggests: libvisual-plugin-actor-gforce
87 %{?with_gstreamer:Suggests: libvisual-plugin-actor-gstreamer}
88 Suggests: libvisual-plugin-actor-infinite
89 Suggests: libvisual-plugin-actor-jakdaw
90 Suggests: libvisual-plugin-actor-lv_analyzer
91 Suggests: libvisual-plugin-actor-lv_gltest
92 Suggests: libvisual-plugin-actor-lv_scope
93 Suggests: libvisual-plugin-actor-madspin
94 Suggests: libvisual-plugin-actor-nastyfft
95 Suggests: libvisual-plugin-actor-oinksie
96 Suggests: libvisual-plugin-input-alsa
97 Suggests: libvisual-plugin-input-esd
98 Suggests: libvisual-plugin-input-jack
99 Suggests: libvisual-plugin-input-mplayer
100 Suggests: libvisual-plugin-morph-alphablend
101 Suggests: libvisual-plugin-morph-flash
102 Suggests: libvisual-plugin-morph-slide
103 Suggests: libvisual-plugin-morph-tentacle
104 Suggests: python-PyKDE
105 Obsoletes: amarok-arts
106 Obsoletes: amarok-xmms
107 Conflicts: kdelibs-libs < 9:3.5.9
108 # sr@Latn vs. sr@latin
109 Conflicts: glibc-misc < 6:2.7
110 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
112 # temporary hack for proper libgpod::itdb_get_mountpoint() detection.
113 %define filterout_ld -Wl,--as-needed
118 %description -l pl.UTF-8
119 Odtwarzacz audio dla KDE.
121 %package -n konqueror-addon-amarok
122 Summary: Amarok sidebar for Konqueror
123 Group: X11/Applications/Multimedia
124 Requires: %{name} = %{version}-%{release}
125 Provides: %{name}-plugin = %{version}-%{release}
127 %description -n konqueror-addon-amarok
128 Amarok sidebar for Konqueror
131 Summary: Plugin akode
132 Summary(pl.UTF-8): Wtyczka akode
133 Group: X11/Applications/Multimedia
134 Requires: %{name} = %{version}-%{release}
135 Provides: %{name}-plugin = %{version}-%{release}
140 %description akode -l pl.UTF-8
144 Summary: Helix/Realplayer playback support for amarok
145 Summary(pl.UTF-8): Wsparcie dla odtwarzania przez Helix/Realplayera dla amaroka
146 Group: X11/Applications/Multimedia
147 Requires: %{name} = %{version}-%{release}
149 Provides: %{name}-plugin = %{version}-%{release}
152 Helix/Realplayer playback support for amarok.
154 %description helix -l pl.UTF-8
155 Wsparcie dla odtwarzania przez Helix/Realplayera dla amaroka.
158 Summary: Plugin gstreamer
159 Summary(pl.UTF-8): Wtyczka gstreamer
160 Group: X11/Applications/Multimedia
161 # deps, to get it working:
162 # mp3 decoder: gstreamer-mad
163 # ogg decoder: gstreamer-vorbis
164 # audio output driver: gstreamer-audiosink-alsa
165 # from gstreamer-audio-effects to control volume, etc
167 # at least /usr/lib/gstreamer-0.8/libgstresample.so
168 # probably /usr/lib/gstreamer-0.8/libgstadder.so
169 # and probably /usr/lib/gstreamer-0.8/libgstvolume.so
170 # gstreamer-musicbrainz for being able to edit id3 tags on files.
171 Requires: %{name} = %{version}-%{release}
172 Requires: gstreamer-audio-effects
173 Requires: gstreamer-audiosink
174 Requires: gstreamer-mad
175 Requires: gstreamer-musicbrainz
176 Requires: gstreamer-vorbis
177 Provides: %{name}-plugin = %{version}-%{release}
179 %description gstreamer
182 %description gstreamer -l pl.UTF-8
187 Summary(pl.UTF-8): Wtyczka xine
188 Group: X11/Applications/Multimedia
189 Requires: %{name} = %{version}-%{release}
190 Requires: xine-plugin-audio
191 Provides: %{name}-plugin = %{version}-%{release}
196 %description xine -l pl.UTF-8
200 Summary: Zeroconf data
201 Summary(pl.UTF-8): Dane dla zeroconf
202 Group: X11/Applications/Multimedia
203 Requires: %{name} = %{version}-%{release}
204 Requires: kdenetwork-kdnssd
205 Provides: %{name}-plugin = %{version}-%{release}
207 %description zeroconf
210 %description zeroconf -l pl.UTF-8
214 Summary: amaroK scripts
215 Summary(pl.UTF-8): Skrypty amaroKa
216 Group: X11/Applications/Multimedia
217 Requires: %{name} = %{version}-%{release}
218 Requires: kdebase-kdialog
219 Requires: python-PyQt
220 Requires: ruby-modules
223 amaroK scripts allow you extend amaroK functionality.
225 You can learn more about scripts in amaroK from here:
226 <http://amarok.kde.org/amarokwiki/index.php/Script-Writing_HowTo>.
228 %description scripts -l pl.UTF-8
229 Skrypty amaroKa pozwalające rozszerzać jego funkcjonalność.
231 Więcej o skryptach w amaroKu można dowiedzieć się stąd:
232 <http://amarok.kde.org/amarokwiki/index.php/Script-Writing_HowTo>.
247 %{__sed} -i -e 's/Categories=.*/Categories=Qt;KDE;AudioVideo;Player;/' \
248 amarok/src/amarok.desktop \
250 # see kde bug #110909
251 %{__sed} -i -e 's/amarok_live//' amarok/src/scripts/Makefile.am
253 # kill env, call interpreter directly, so rpm automatics could rule
255 1s,#!.*bin/env.*ruby,#!%{_bindir}/ruby,
256 1s,#!.*bin/env.*python,#!%{__python},
257 ' amarok/src/scripts/*/*.{py,rb} amarok/src/amarok_proxy.rb
260 cp -f /usr/share/automake/config.sub admin
261 %{__make} -f admin/Makefile.common cvs
263 # hack: passing something other than "no" or "yes" to --with-helix allows
264 # us to pass HELIX_LIBS
266 HELIX_LIBS=%{_libdir}/helixplayer \
267 --%{?debug:en}%{!?debug:dis}able-debug%{?debug:=full} \
269 --with%{!?with_mas:out}-mas \
270 --with%{!?with_xine:out}-xine \
271 --with%{!?with_gstreamer:out}-gstreamer10 \
272 --with%{!?with_akode:out}-akode \
273 --with%{!?with_helix:out}-helix%{?with_helix:=usegivenpath} \
274 --with%{!?with_nmm:out}-nmm \
275 --with%{!?with_mp3players:out}-libgpod \
276 --with%{!?with_mp3players:out}-libnjb \
277 --with%{!?with_mp3players:out}-libmtp \
278 --with%{!?with_mp3players:out}-ifp \
279 --%{?with_mysql:en}%{!?with_mysql:dis}able-mysql \
280 --%{?with_mysql:en}%{!?with_mysql:dis}able-postgresql \
283 --with-qt-libraries=%{_libdir} \
284 --with%{!?with_included_sqlite:out}-included-sqlite
289 rm -rf $RPM_BUILD_ROOT
292 DESTDIR=$RPM_BUILD_ROOT \
293 ruby_rubylibdir=%{ruby_rubylibdir} \
294 kde_htmldir=%{_kdedocdir} \
295 kde_libs_htmldir=%{_kdedocdir}
298 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/xx
300 rm $RPM_BUILD_ROOT%{_libdir}/kde3/*.la
301 rm $RPM_BUILD_ROOT%{_libdir}/libamarok.{so,la}
303 [ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \
304 mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin}
305 %find_lang amarok --all-name --with-kde
308 rm -rf $RPM_BUILD_ROOT
310 %post -p /sbin/ldconfig
312 %postun -p /sbin/ldconfig
314 %files -f amarok.lang
315 %defattr(644,root,root,755)
316 %doc AUTHORS ChangeLog README
317 %attr(755,root,root) %{_bindir}/amarok
318 %attr(755,root,root) %{_bindir}/amarokapp
319 %attr(755,root,root) %{_bindir}/amarokcollectionscanner
320 %attr(755,root,root) %{_bindir}/amarok_libvisual
321 # used by last.fm and daap
322 %attr(755,root,root) %{_bindir}/amarok_proxy.rb
324 %attr(755,root,root) %{_bindir}/amarok_daapserver.rb
325 %attr(755,root,root) %{_libdir}/libamarok.so.*.*.*
326 %attr(755,root,root) %ghost %{_libdir}/libamarok.so.0
327 %attr(755,root,root) %{_libdir}/kde3/libamarok_generic-mediadevice.so
328 %attr(755,root,root) %{_libdir}/kde3/libamarok_void-engine_plugin.so
329 %attr(755,root,root) %{_libdir}/kde3/libamarok_daap-mediadevice.so
330 %attr(755,root,root) %{_libdir}/kde3/libamarok_massstorage-device.so
331 %attr(755,root,root) %{_libdir}/kde3/libamarok_nfs-device.so
332 %attr(755,root,root) %{_libdir}/kde3/libamarok_smb-device.so
333 %dir %{_datadir}/apps/amarok
334 %dir %{_datadir}/apps/amarok/scripts
335 %{_datadir}/apps/amarok/*.rc
336 %{_datadir}/apps/amarok/data
337 %{_datadir}/apps/amarok/icons
338 %{_datadir}/apps/amarok/images
339 %{_datadir}/apps/amarok/themes
340 %{_datadir}/apps/profiles/amarok.profile.xml
341 %{_datadir}/config/amarokrc
342 %{_datadir}/config.kcfg/amarok.kcfg
343 %{_datadir}/services/amarok_generic-mediadevice.desktop
344 %{_datadir}/services/amarok_void-engine_plugin.desktop
345 %{_datadir}/services/amarok_daap-mediadevice.desktop
346 %{_datadir}/services/amarok_massstorage-device.desktop
347 %{_datadir}/services/amarok_nfs-device.desktop
348 %{_datadir}/services/amarok_smb-device.desktop
349 %{_datadir}/services/amaroklastfm.protocol
350 %{_datadir}/services/amarokitpc.protocol
351 %{_datadir}/services/amarokpcast.protocol
352 %{_datadir}/servicetypes/amarok_codecinstall.desktop
353 %{_datadir}/servicetypes/amarok_plugin.desktop
354 %{_desktopdir}/kde/amarok.desktop
355 %{_iconsdir}/*/*/apps/amarok.*
357 # TODO: move to subpackage
358 %dir %{ruby_rubylibdir}/amarok
360 %{ruby_rubylibdir}/amarok/codes.rb
361 # used by daap and lyrics_lyrc
362 %{ruby_rubylibdir}/amarok/debug.rb
364 # TODO: move to subpackage
365 %if %{with mp3players}
366 %attr(755,root,root) %{_libdir}/kde3/libamarok_ifp-mediadevice.so
367 %attr(755,root,root) %{_libdir}/kde3/libamarok_ipod-mediadevice.so
368 %attr(755,root,root) %{_libdir}/kde3/libamarok_mtp-mediadevice.so
369 %attr(755,root,root) %{_libdir}/kde3/libamarok_njb-mediadevice.so
370 %{_datadir}/services/amarok_ifp-mediadevice.desktop
371 %{_datadir}/services/amarok_ipod-mediadevice.desktop
372 %{_datadir}/services/amarok_mtp-mediadevice.desktop
373 %{_datadir}/services/amarok_njb-mediadevice.desktop
376 %files -n konqueror-addon-amarok
377 %defattr(644,root,root,755)
378 %attr(755,root,root) %{_libdir}/kde3/konqsidebar_universalamarok.so
379 %{_datadir}/apps/konqueror/servicemenus/amarok_append.desktop
380 %{_datadir}/apps/konqueror/servicemenus/amarok_addaspodcast.desktop
381 %{_datadir}/apps/konqueror/servicemenus/amarok_play_audiocd.desktop
382 %{_datadir}/apps/konqsidebartng/add/amarok.desktop
383 %{_datadir}/apps/konqsidebartng/entries/amarok.desktop
384 %{_datadir}/apps/konqsidebartng/kicker_entries/amarok.desktop
388 %defattr(644,root,root,755)
389 %attr(755,root,root) %{_libdir}/kde3/libamarok_aKode-engine.so
390 %{_datadir}/services/amarok_aKode-engine.desktop
393 %if %{with gstreamer}
395 %defattr(644,root,root,755)
396 %attr(755,root,root) %{_libdir}/kde3/libamarok_gst10engine_plugin.so
397 %{_datadir}/config.kcfg/gstconfig.kcfg
398 %{_datadir}/services/amarok_gst10engine_plugin.desktop
403 %defattr(644,root,root,755)
404 %attr(755,root,root) %{_libdir}/kde3/libamarok_helixengine_plugin.so
405 %{_datadir}/config.kcfg/helixconfig.kcfg
406 %{_datadir}/services/amarok_helixengine_plugin.desktop
411 %defattr(644,root,root,755)
412 %attr(755,root,root) %{_libdir}/kde3/libamarok_xine-engine.so
413 %{_datadir}/config.kcfg/xinecfg.kcfg
414 %{_datadir}/services/amarok_xine-engine.desktop
420 %defattr(644,root,root,755)
421 #%{_datadir}/apps/zeroconf/_shoutcast._tcp
426 %defattr(644,root,root,755)
427 %dir %{_datadir}/apps/amarok/scripts/common
428 %{_datadir}/apps/amarok/scripts/common/Publisher.py
429 %{_datadir}/apps/amarok/scripts/common/Zeroconf.py
431 %dir %{_datadir}/apps/amarok/scripts/templates
432 %{_datadir}/apps/amarok/scripts/templates/amarok.rb
433 %{_datadir}/apps/amarok/scripts/templates/python_qt_template.py
434 %{_datadir}/apps/amarok/scripts/templates/ruby_qt_template.rb
436 # amarok searches for executable programs for scripts
437 # to figure out which files need to have execute permission, use this
439 # $ find $RPM_BUILD_ROOT/usr/share/apps/amarok/scripts -perm +1
441 #%dir %{_datadir}/apps/amarok/scripts/graphequalizer
442 #%{_datadir}/apps/amarok/scripts/graphequalizer/README
443 #%attr(755,root,root) %{_datadir}/apps/amarok/scripts/graphequalizer/graphequalizer
445 %dir %{_datadir}/apps/amarok/scripts/playlist2html
446 %{_datadir}/apps/amarok/scripts/playlist2html/README
447 %{_datadir}/apps/amarok/scripts/playlist2html/Playlist.py
448 %attr(755,root,root) %{_datadir}/apps/amarok/scripts/playlist2html/PlaylistServer.py
449 %attr(755,root,root) %{_datadir}/apps/amarok/scripts/playlist2html/playlist2html.py
450 %{_datadir}/apps/amarok/scripts/playlist2html/PlaylistServer.spec
451 %{_datadir}/apps/amarok/scripts/playlist2html/playlist2html.spec
454 %dir %{_datadir}/apps/amarok/scripts/webcontrol
455 %{_datadir}/apps/amarok/scripts/webcontrol/README
456 %{_datadir}/apps/amarok/scripts/webcontrol/Globals.py
457 %{_datadir}/apps/amarok/scripts/webcontrol/Playlist.py
458 %{_datadir}/apps/amarok/scripts/webcontrol/RequestHandler.py
459 %{_datadir}/apps/amarok/scripts/webcontrol/amarok_cut.png
460 %{_datadir}/apps/amarok/scripts/webcontrol/controlbackground.png
461 %{_datadir}/apps/amarok/scripts/webcontrol/main.css
462 %{_datadir}/apps/amarok/scripts/webcontrol/main.js
463 %{_datadir}/apps/amarok/scripts/webcontrol/player_end.png
464 %{_datadir}/apps/amarok/scripts/webcontrol/player_pause.png
465 %{_datadir}/apps/amarok/scripts/webcontrol/player_play.png
466 %{_datadir}/apps/amarok/scripts/webcontrol/player_start.png
467 %{_datadir}/apps/amarok/scripts/webcontrol/player_stop.png
468 %{_datadir}/apps/amarok/scripts/webcontrol/template.thtml
469 %{_datadir}/apps/amarok/scripts/webcontrol/vol_speaker.png
470 %{_datadir}/apps/amarok/scripts/webcontrol/WebPublisher.py
471 %{_datadir}/apps/amarok/scripts/webcontrol/WebControl.spec
472 %{_datadir}/apps/amarok/scripts/webcontrol/smallstar.png
473 %{_datadir}/apps/amarok/scripts/webcontrol/star.png
474 %attr(755,root,root) %{_datadir}/apps/amarok/scripts/webcontrol/WebControl.py
476 %dir %{_datadir}/apps/amarok/scripts/lyrics_astraweb
477 %{_datadir}/apps/amarok/scripts/lyrics_astraweb/COPYING
478 %{_datadir}/apps/amarok/scripts/lyrics_astraweb/README
479 %attr(755,root,root) %{_datadir}/apps/amarok/scripts/lyrics_astraweb/lyrics_astraweb.rb
480 %{_datadir}/apps/amarok/scripts/lyrics_astraweb/lyrics_astraweb.spec
482 %dir %{_datadir}/apps/amarok/scripts/lyrics_lyrc
483 %{_datadir}/apps/amarok/scripts/lyrics_lyrc/COPYING
484 %{_datadir}/apps/amarok/scripts/lyrics_lyrc/README
485 %attr(755,root,root) %{_datadir}/apps/amarok/scripts/lyrics_lyrc/lyrics_lyrc.rb
486 %{_datadir}/apps/amarok/scripts/lyrics_lyrc/lyrics_lyrc.spec
488 %dir %{_datadir}/apps/amarok/scripts/score_default
489 %{_datadir}/apps/amarok/scripts/score_default/COPYING
490 %{_datadir}/apps/amarok/scripts/score_default/README
491 %attr(755,root,root) %{_datadir}/apps/amarok/scripts/score_default/score_default.rb
492 %{_datadir}/apps/amarok/scripts/score_default/score_default.spec
493 %dir %{_datadir}/apps/amarok/scripts/score_impulsive
494 %{_datadir}/apps/amarok/scripts/score_impulsive/COPYING
495 %{_datadir}/apps/amarok/scripts/score_impulsive/README
496 %attr(755,root,root) %{_datadir}/apps/amarok/scripts/score_impulsive/score_impulsive.rb
497 %{_datadir}/apps/amarok/scripts/score_impulsive/score_impulsive.spec
500 %dir %{_datadir}/apps/amarok/scripts/amarok_live
501 %{_datadir}/apps/amarok/scripts/amarok_live/README
502 %{_datadir}/apps/amarok/scripts/amarok_live/amarok.live.remaster.part1.sh
503 %{_datadir}/apps/amarok/scripts/amarok_live/amarok.live.remaster.part2.sh
504 %attr(755,root,root) %{_datadir}/apps/amarok/scripts/amarok_live/amarok_live.py