2 # * postgresql support alongside mysql
3 # * NMM audio backend support (fix build - propably some BRs)
4 # * make descriptions less useless
5 # * HelixPlayer engine (fix build - propably some BRs)
8 %bcond_without arts # disable arts engine
9 %bcond_without gstreamer # disable gstreamer
10 %bcond_without mas # disable MAS audio backend
11 %bcond_without xine # disable xine engine
12 %bcond_without xmms # disable xmms wrapping
13 %bcond_without zeroconf # disable support for zeroconf
14 %bcond_with helix # enable HelixPlayer engine
15 %bcond_with nmm # enable NMM audio backend
16 %bcond_with mysql # enable mysql support
17 %bcond_with akode # enable aKode engine (too buggy/incomplete)
18 %bcond_with altlyrics # use alternative lyrics provider
19 Summary: A KDE audio player
20 Summary(pl): Odtwarzacz audio dla KDE
25 Group: X11/Applications/Multimedia
26 Source0: http://dl.sourceforge.net/amarok/%{name}-%{version}.tar.bz2
27 # Source0-md5: 31f504e5fe985bbdb3c99f0e72d08fa1
28 Patch0: kde-common-gcc4.patch
29 Patch1: %{name}-lyricsurl.patch
30 URL: http://amarok.kde.org/
31 BuildRequires: SDL-devel
32 BuildRequires: alsa-lib-devel
33 BuildRequires: arts-qt-devel
34 BuildRequires: autoconf
35 BuildRequires: automake
36 %{?with_gstreamer:BuildRequires: gstreamer-plugins-devel >= 0.8.1}
37 BuildRequires: kdebase-devel
38 %{?with_akode:BuildRequires: kdemultimedia-akode}
39 BuildRequires: kdemultimedia-devel >= 9:3.1.93
40 BuildRequires: libltdl-devel
41 BuildRequires: libmusicbrainz-devel
42 BuildRequires: libvisual-devel >= 0.2.0
43 BuildRequires: pcre-devel
44 BuildRequires: rpmbuild(macros) >= 1.129
45 BuildRequires: rpm-pythonprov
46 BuildRequires: sed >= 4.0
47 BuildRequires: sqlite3-devel
48 BuildRequires: taglib-devel >= 1.4
49 #BuildRequires: unsermake >= 040511
50 %{?with_xine:BuildRequires: xine-lib-devel >= 2:1.0-0.rc5.0}
51 %{?with_xmms:BuildRequires: xmms-devel}
52 %{?with_mysql:BuildRequires: mysql-devel}
53 #BuildRequires: kdebindings-kjsembed-devel
54 Requires: %{name}-plugin = %{version}-%{release}
55 Requires: kdebase-core >= 9:3.1.93
56 Requires: kdemultimedia-audiocd >= 9:3.1.93
57 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
63 Odtwarzacz audio dla KDE.
67 Summary(pl): Wtyczka arts
68 Group: X11/Applications/Multimedia
69 Requires: %{name} = %{version}-%{release}
70 Provides: %{name}-plugin = %{version}-%{release}
75 %description arts -l pl
80 Summary(pl): Wtyczka akode
81 Group: X11/Applications/Multimedia
82 Requires: %{name} = %{version}-%{release}
83 Provides: %{name}-plugin = %{version}-%{release}
88 %description akode -l pl
92 Summary: Plugin gstreamer
93 Summary(pl): Wtyczka gstreamer
94 Group: X11/Applications/Multimedia
95 # deps, to get it working:
96 # mp3 decoder: gstreamer-mad
97 # ogg decoder: gstreamer-vorbis
98 # audio output driver: gstreamer-audiosink-alsa
99 # from gstreamer-audio-effects to control volume, etc
101 # at least /usr/lib/gstreamer-0.8/libgstresample.so
102 # probably /usr/lib/gstreamer-0.8/libgstadder.so
103 # and probably /usr/lib/gstreamer-0.8/libgstvolume.so
104 # gstreamer-musicbrainz for being able to edit id3 tags on files.
105 Requires: gstreamer-audio-effects
106 Requires: gstreamer-audiosink
107 Requires: gstreamer-mad
108 Requires: gstreamer-vorbis
109 Requires: gstreamer-musicbrainz
110 Requires: %{name} = %{version}-%{release}
111 Provides: %{name}-plugin = %{version}-%{release}
113 %description gstreamer
116 %description gstreamer -l pl
121 Summary(pl): Wtyczka xine
122 Group: X11/Applications/Multimedia
123 Requires: %{name} = %{version}-%{release}
124 Requires: xine-plugin-audio
125 Provides: %{name}-plugin = %{version}-%{release}
130 %description xine -l pl
134 Summary: Zeroconf data
135 Summary(pl): Dane dla zeroconf
136 Group: X11/Applications/Multimedia
137 Requires: %{name} = %{version}-%{release}
138 Requires: kdenetwork-kdnssd
139 Provides: %{name}-plugin = %{version}-%{release}
141 %description zeroconf
144 %description zeroconf -l pl
148 Summary: amaroK scripts
149 Summary(pl): Skrypty amaroKa
150 Group: X11/Applications/Multimedia
151 Requires: %{name} = %{version}-%{release}
152 Requires: kdebase-kdialog
153 Requires: python-PyQt
156 amaroK scripts allow you extend amaroK functionality.
158 You can learn more about scripts in amaroK from here:
159 <http://amarok.kde.org/wiki/index.php/Scripts>.
161 %description scripts -l pl
162 Skrypty amaroKa pozwalaj±ce rozszerzaæ jego funkcjonalno¶æ.
164 Wiêcej o skryptach w amaroKu mo¿na dowiedzieæ siê st±d:
165 <http://amarok.kde.org/wiki/index.php/Scripts>.
170 %{?with_altlyrics:%patch1 -p1}
171 %{__sed} -i -e 's/Categories=.*/Categories=Qt;KDE;AudioVideo;Player;/' \
172 amarok/src/amarok.desktop \
174 # see kde bug #110909
175 sed -i -e 's/amarok_live//' amarok/src/scripts/Makefile.am
183 cp -f /usr/share/automake/config.sub admin
185 #export UNSERMAKE=/usr/share/unsermake/unsermake
187 %{__make} -f admin/Makefile.common cvs
191 %{!?with_arts:--without-arts} \
192 %{?with_mas:--with-mas} \
193 %{!?with_xine:--without-xine} \
194 %{!?with_gstreamer:--without-gstreamer} \
195 %{!?with_akode:--without-akode} \
196 %{?with_helix:--with-helix} \
197 %{?with_nmm:--with-nmm} \
198 %{?with_mysql:--with-mysql} \
200 --with-qt-libraries=%{_libdir} \
201 --without-included-sqlite
206 rm -rf $RPM_BUILD_ROOT
209 DESTDIR=$RPM_BUILD_ROOT \
210 kde_htmldir=%{_kdedocdir} \
211 kde_libs_htmldir=%{_kdedocdir}
214 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/xx
216 %find_lang amarok --all-name --with-kde
219 rm -rf $RPM_BUILD_ROOT
222 if [ "$1" = 1 ]; then
223 echo "Remember to install libvisual-plugins-* packages if you"
224 echo "want to have a visualizations in amaroK."
227 %files -f %{name}.lang
228 %defattr(644,root,root,755)
229 %doc AUTHORS ChangeLog README TODO
230 %attr(755,root,root) %{_bindir}/amarok
231 %{?with_xmms:%attr(755,root,root) %{_bindir}/amarok_xmmswrapper2}
232 %attr(755,root,root) %{_bindir}/amarokapp
233 %attr(755,root,root) %{_bindir}/amarok_libvisual
234 #%attr(755,root,root) %{_bindir}/release_amarok
235 %{_libdir}/kde3/konqsidebar_universalamarok.la
236 %attr(755,root,root) %{_libdir}/kde3/konqsidebar_universalamarok.so
237 %{_libdir}/kde3/libamarok_void-engine_plugin.la
238 %attr(755,root,root) %{_libdir}/kde3/libamarok_void-engine_plugin.so
239 %dir %{_datadir}/apps/amarok
240 %dir %{_datadir}/apps/amarok/scripts
241 %{_datadir}/apps/amarok/*.rc
242 %{_datadir}/apps/amarok/data
243 %{_datadir}/apps/amarok/icons
244 %{_datadir}/apps/amarok/images
245 %{_datadir}/apps/amarok/themes
246 %{_datadir}/apps/konqueror/servicemenus/amarok_append.desktop
247 %{_datadir}/apps/konqsidebartng/add/amarok.desktop
248 %{_datadir}/apps/konqsidebartng/entries/amarok.desktop
249 %{_datadir}/apps/konqsidebartng/kicker_entries/amarok.desktop
250 %{_datadir}/apps/profiles/amarok.profile.xml
251 %{_datadir}/config/amarokrc
252 %{_datadir}/config.kcfg/amarok.kcfg
253 %{_datadir}/services/amarok_void-engine_plugin.desktop
254 %{_datadir}/servicetypes/amarok_plugin.desktop
255 %{_desktopdir}/kde/amarok.desktop
256 %{_iconsdir}/*/*/apps/amarok.*
260 %defattr(644,root,root,755)
261 %{_libdir}/kde3/libamarok_artsengine_plugin.la
262 %attr(755,root,root) %{_libdir}/kde3/libamarok_artsengine_plugin.so
263 %{_libdir}/libamarokarts.la
264 %attr(755,root,root) %{_libdir}/libamarokarts.so
265 %{_libdir}/mcop/Amarok
266 %{_libdir}/mcop/amarokarts.mcopclass
267 %{_libdir}/mcop/amarokarts.mcoptype
268 %{_datadir}/services/amarok_artsengine_plugin.desktop
273 %defattr(644,root,root,755)
274 %{_libdir}/kde3/libamarok_aKode-engine.la
275 %attr(755,root,root) %{_libdir}/kde3/libamarok_aKode-engine.so
276 %{_datadir}/services/amarok_aKode-engine.desktop
279 %if %{with gstreamer}
281 %defattr(644,root,root,755)
282 %{_libdir}/kde3/libamarok_gstengine_plugin.la
283 %attr(755,root,root) %{_libdir}/kde3/libamarok_gstengine_plugin.so
284 %{_datadir}/config.kcfg/gstconfig.kcfg
285 %{_datadir}/services/amarok_gstengine_plugin.desktop
290 %defattr(644,root,root,755)
291 %{_libdir}/kde3/libamarok_xine-engine.la
292 %attr(755,root,root) %{_libdir}/kde3/libamarok_xine-engine.so
293 %{_datadir}/config.kcfg/xinecfg.kcfg
294 %{_datadir}/services/amarok_xine-engine.desktop
295 #%{_datadir}/services/amarok_xineengine_plugin.desktop
300 %defattr(644,root,root,755)
301 %{_datadir}/apps/zeroconf/_shoutcast._tcp
305 %defattr(644,root,root,755)
307 %dir %{_datadir}/apps/amarok/scripts/alarm
308 %{_datadir}/apps/amarok/scripts/alarm/README
309 %attr(755,root,root) %{_datadir}/apps/amarok/scripts/alarm/alarm.py
311 %dir %{_datadir}/apps/amarok/scripts/graphequalizer
312 %{_datadir}/apps/amarok/scripts/graphequalizer/README
313 %attr(755,root,root) %{_datadir}/apps/amarok/scripts/graphequalizer/graphequalizer
315 %dir %{_datadir}/apps/amarok/scripts/playlist2html
316 %{_datadir}/apps/amarok/scripts/playlist2html/README
317 %{_datadir}/apps/amarok/scripts/playlist2html/Playlist.py
318 %{_datadir}/apps/amarok/scripts/playlist2html/PlaylistServer.py
319 %{_datadir}/apps/amarok/scripts/playlist2html/playlist2html.py
321 %dir %{_datadir}/apps/amarok/scripts/templates
322 %{_datadir}/apps/amarok/scripts/templates/amarok.rb
323 %{_datadir}/apps/amarok/scripts/templates/python_qt_template.py
324 %{_datadir}/apps/amarok/scripts/templates/ruby_qt_template.rb
326 %dir %{_datadir}/apps/amarok/scripts/webcontrol
327 %{_datadir}/apps/amarok/scripts/webcontrol/README
328 %{_datadir}/apps/amarok/scripts/webcontrol/Globals.py
329 %{_datadir}/apps/amarok/scripts/webcontrol/Playlist.py
330 %{_datadir}/apps/amarok/scripts/webcontrol/RequestHandler.py
331 %{_datadir}/apps/amarok/scripts/webcontrol/amarok_cut.png
332 %{_datadir}/apps/amarok/scripts/webcontrol/controlbackground.png
333 %{_datadir}/apps/amarok/scripts/webcontrol/main.css
334 %{_datadir}/apps/amarok/scripts/webcontrol/main.js
335 %{_datadir}/apps/amarok/scripts/webcontrol/player_end.png
336 %{_datadir}/apps/amarok/scripts/webcontrol/player_pause.png
337 %{_datadir}/apps/amarok/scripts/webcontrol/player_play.png
338 %{_datadir}/apps/amarok/scripts/webcontrol/player_start.png
339 %{_datadir}/apps/amarok/scripts/webcontrol/player_stop.png
340 %{_datadir}/apps/amarok/scripts/webcontrol/template.thtml
341 %{_datadir}/apps/amarok/scripts/webcontrol/vol_speaker.png
342 %{_datadir}/apps/amarok/scripts/webcontrol/WebPublisher.py
343 %attr(755,root,root) %{_datadir}/apps/amarok/scripts/webcontrol/WebControl.py
345 %dir %{_datadir}/apps/amarok/scripts/common
346 %{_datadir}/apps/amarok/scripts/common/Publisher.py
347 %{_datadir}/apps/amarok/scripts/common/Zeroconf.py
349 %dir %{_datadir}/apps/amarok/scripts/shouter
350 %{_datadir}/apps/amarok/scripts/shouter/README
351 %{_datadir}/apps/amarok/scripts/shouter/ChangeLog
352 %{_datadir}/apps/amarok/scripts/shouter/Amarok.py
353 %{_datadir}/apps/amarok/scripts/shouter/Globals.py
354 %{_datadir}/apps/amarok/scripts/shouter/Playlist.py
355 %{_datadir}/apps/amarok/scripts/shouter/Services.py
356 %{_datadir}/apps/amarok/scripts/shouter/ShouterConfig.py
357 %{_datadir}/apps/amarok/scripts/shouter/ShouterExceptions.py
358 %{_datadir}/apps/amarok/scripts/shouter/StreamConfig.py
359 %{_datadir}/apps/amarok/scripts/shouter/StreamController.py
360 %{_datadir}/apps/amarok/scripts/shouter/StreamPublisher.py
361 %{_datadir}/apps/amarok/scripts/shouter/binfuncs.py
362 %{_datadir}/apps/amarok/scripts/shouter/debug.py
363 %{_datadir}/apps/amarok/scripts/shouter/propfind-req.xml
364 %dir %{_datadir}/apps/amarok/scripts/shouter/silence
365 %{_datadir}/apps/amarok/scripts/shouter/silence/silence-128.mp3
366 %{_datadir}/apps/amarok/scripts/shouter/silence/silence-160.mp3
367 %{_datadir}/apps/amarok/scripts/shouter/silence/silence-192.mp3
368 %{_datadir}/apps/amarok/scripts/shouter/silence/silence-224.mp3
369 %{_datadir}/apps/amarok/scripts/shouter/silence/silence-256.mp3
370 %{_datadir}/apps/amarok/scripts/shouter/silence/silence-320.mp3
371 %{_datadir}/apps/amarok/scripts/shouter/silence/silence-48.mp3
372 %dir %{_datadir}/apps/amarok/scripts/shouter/test
373 %{_datadir}/apps/amarok/scripts/shouter/test/client.py
374 %attr(755,root,root) %{_datadir}/apps/amarok/scripts/shouter/Shouter.py
377 %dir %{_datadir}/apps/amarok/scripts/amarok_live
378 %{_datadir}/apps/amarok/scripts/amarok_live/README
379 %{_datadir}/apps/amarok/scripts/amarok_live/amarok.live.remaster.part1.sh
380 %{_datadir}/apps/amarok/scripts/amarok_live/amarok.live.remaster.part2.sh
381 %attr(755,root,root) %{_datadir}/apps/amarok/scripts/amarok_live/amarok_live.py