]> git.pld-linux.org Git - packages/amarok.git/blame - amarok.spec
- rel +0.1 for new bcond
[packages/amarok.git] / amarok.spec
CommitLineData
87fa3a5c
ER
1# This file does not like to be adapterized!
2# - or at least rpm is broken, as it doesn't build without rpm-pythonprov
7cdc9e11
AM
3#
4# TODO:
5# * postgresql support alongside mysql
6# * NMM audio backend support (fix build - propably some BRs)
7# * make descriptions less useless
8# * HelixPlayer engine (fix build - propably some BRs)
8d75a549 9#
948e9545 10# Conditional builds:
48801ec3 11%bcond_without arts # disable arts engine
8d75a549 12%bcond_without gstreamer # disable gstreamer
7cdc9e11 13%bcond_without mas # disable MAS audio backend
7dae3fc2 14%bcond_without xine # disable xine engine
48801ec3 15%bcond_without xmms # disable xmms wrapping
9d393535 16%bcond_without zeroconf # disable support for zeroconf
7cdc9e11
AM
17%bcond_with helix # enable HelixPlayer engine
18%bcond_with nmm # enable NMM audio backend
19%bcond_with mysql # enable mysql support
20%bcond_with akode # enable aKode engine (too buggy/incomplete)
291223ab 21%bcond_with altlyrics # use alternative lyrics provider
3dce540f 22Summary: A KDE audio player
23Summary(pl): Odtwarzacz audio dla KDE
24Name: amarok
7cdc9e11 25Version: 1.3
203b8dee 26Release: 1.4
3dce540f 27License: GPL
28Group: X11/Applications/Multimedia
68391d5a 29Source0: http://dl.sourceforge.net/amarok/%{name}-%{version}.tar.bz2
7cdc9e11
AM
30# Source0-md5: 2dd100584795fb20c621fdbc96cbee1e
31Patch0: kde-common-gcc4.patch
9d393535 32Patch1: http://websvn.kde.org/trunk/extragear/multimedia/amarok/src/playlistbrowseritem.h?rev=449581&r1=449054&r2=449581&makepatch=1&diff_format=u
47daea41 33Patch2: %{name}-lyricsurl.patch
567ab89c 34URL: http://amarok.kde.org/
6fc2033f 35BuildRequires: SDL-devel
36BuildRequires: alsa-lib-devel
37BuildRequires: arts-qt-devel
38BuildRequires: automake
60b883ee
SP
39%{?with_gstreamer:BuildRequires: gstreamer-plugins-devel >= 0.8.1}
40BuildRequires: kdebase-devel
7cdc9e11 41%{?with_akode:BuildRequires: kdemultimedia-akode}
ac33bc29 42BuildRequires: kdemultimedia-devel >= 9:3.1.93
7cdc9e11 43BuildRequires: libltdl-devel
6fc2033f 44BuildRequires: libmusicbrainz-devel
45BuildRequires: libvisual-devel >= 0.2.0
46BuildRequires: pcre-devel
3022f84e 47BuildRequires: rpmbuild(macros) >= 1.129
532341d1 48BuildRequires: rpm-pythonprov
43342c86 49BuildRequires: sed >= 4.0
48801ec3 50BuildRequires: sqlite3-devel
7cdc9e11 51BuildRequires: taglib-devel >= 1.4
60b883ee
SP
52#BuildRequires: unsermake >= 040511
53%{?with_xine:BuildRequires: xine-lib-devel >= 2:1.0-0.rc5.0}
54%{?with_xmms:BuildRequires: xmms-devel}
55%{?with_mysql:BuildRequires: mysql-devel}
56#BuildRequires: kdebindings-kjsembed-devel
48801ec3 57Requires: %{name}-plugin = %{version}-%{release}
3dce540f 58Requires: kdebase-core >= 9:3.1.93
60b883ee 59Requires: kdemultimedia-audiocd >= 9:3.1.93
3dce540f 60BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
61
62%description
63A KDE audio player.
64
65%description -l pl
66Odtwarzacz audio dla KDE.
67
48801ec3 68%package arts
69Summary: Plugin arts
70Summary(pl): Wtyczka arts
71Group: X11/Applications/Multimedia
68391d5a 72Requires: %{name} = %{version}-%{release}
48801ec3 73Provides: %{name}-plugin = %{version}-%{release}
74
75%description arts
76Plugin arts.
77
78%description arts -l pl
79Wtyczka arts.
80
7cdc9e11
AM
81%package akode
82Summary: Plugin akode
83Summary(pl): Wtyczka akode
84Group: X11/Applications/Multimedia
68391d5a 85Requires: %{name} = %{version}-%{release}
7cdc9e11
AM
86Provides: %{name}-plugin = %{version}-%{release}
87
88%description akode
89Plugin akode.
90
91%description akode -l pl
92Wtyczka akode.
93
8d75a549 94%package gstreamer
d4535bda 95Summary: Plugin gstreamer
8d75a549 96Summary(pl): Wtyczka gstreamer
97Group: X11/Applications/Multimedia
ee3a150f
ER
98# deps, to get it working:
99# mp3 decoder: gstreamer-mad
100# ogg decoder: gstreamer-vorbis
101# audio output driver: gstreamer-audiosink-alsa
102# from gstreamer-audio-effects to control volume, etc
103# needed libs:
87fa3a5c 104# at least /usr/lib/gstreamer-0.8/libgstresample.so
ee3a150f
ER
105# probably /usr/lib/gstreamer-0.8/libgstadder.so
106# and probably /usr/lib/gstreamer-0.8/libgstvolume.so
107# gstreamer-musicbrainz for being able to edit id3 tags on files.
22795390 108Requires: gstreamer-audio-effects
ee3a150f
ER
109Requires: gstreamer-audiosink
110Requires: gstreamer-mad
111Requires: gstreamer-vorbis
112Requires: gstreamer-musicbrainz
4d1b1b41 113Requires: %{name} = %{version}-%{release}
48801ec3 114Provides: %{name}-plugin = %{version}-%{release}
8d75a549 115
116%description gstreamer
d4535bda 117Plugin gstreamer.
8d75a549 118
119%description gstreamer -l pl
120Wtyczka gstreamer.
121
7dae3fc2 122%package xine
123Summary: Plugin xine
124Summary(pl): Wtyczka xine
125Group: X11/Applications/Multimedia
1aff4314 126Requires: %{name} = %{version}-%{release}
14c08c31 127Requires: xine-plugin-audio
48801ec3 128Provides: %{name}-plugin = %{version}-%{release}
7dae3fc2 129
130%description xine
131Plugin xine.
132
133%description xine -l pl
134Wtyczka xine.
135
7cdc9e11
AM
136%package zeroconf
137Summary: Zeroconf data
138Summary(pl): Dane dla zeroconf
139Group: X11/Applications/Multimedia
68391d5a 140Requires: %{name} = %{version}-%{release}
7cdc9e11
AM
141Requires: kdenetwork-kdnssd
142Provides: %{name}-plugin = %{version}-%{release}
143
144%description zeroconf
145Zeroconf data.
146
147%description zeroconf -l pl
68391d5a 148Dane dla zeroconf.
7cdc9e11 149
9d393535
ER
150%package scripts
151Summary: amaroK scripts
152Group: X11/Applications/Multimedia
153Requires: %{name} = %{version}-%{release}
b4ea7645 154Requires: kdebase-kdialog
74a15c28 155Requires: python-PyQt
9d393535
ER
156
157%description scripts
158amaroK scripts allow you extend amaroK functionality.
159
160You can learn more about scripts in amaroK from here:
161<http://amarok.kde.org/wiki/index.php/Scripts>.
162
3dce540f 163%prep
2f119dd8 164%setup -q
7cdc9e11 165%patch0 -p1
9d393535 166%patch1 -p3
291223ab 167%{?with_altlyrics:%patch2 -p1}
69409e85 168%{__sed} -i -e 's/Categories=.*/Categories=Qt;KDE;AudioVideo;Player;/' \
169 amarok/src/amarok.desktop \
170
3dce540f 171%build
2ec35f1d 172cp -f /usr/share/automake/config.sub admin
d3a55e61 173
2ec35f1d 174#export UNSERMAKE=/usr/share/unsermake/unsermake
d3a55e61 175
176%{__make} -f admin/Makefile.common cvs
177
3dce540f 178%configure \
179 --disable-rpath \
48801ec3 180 %{!?with_arts:--without-arts} \
7cdc9e11 181 %{?with_mas:--with-mas} \
7dae3fc2 182 %{!?with_xine:--without-xine} \
183 %{!?with_gstreamer:--without-gstreamer} \
7cdc9e11
AM
184 %{!?with_akode:--without-akode} \
185 %{?with_helix:--with-helix} \
186 %{?with_nmm:--with-nmm} \
60b883ee
SP
187 %{?with_mysql:--with-mysql} \
188 --disable-final \
f15a6325 189 --with-qt-libraries=%{_libdir} \
190 --without-included-sqlite
3dce540f 191
192%{__make}
193
194%install
195rm -rf $RPM_BUILD_ROOT
196
197%{__make} install \
198 DESTDIR=$RPM_BUILD_ROOT \
bd5fd9cb 199 kde_htmldir=%{_kdedocdir} \
200 kde_libs_htmldir=%{_kdedocdir}
43342c86 201
3248aa1e 202# remove bogus dir
203rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/xx
204
4d1b1b41 205%find_lang amarok --all-name --with-kde
3dce540f 206
207%clean
208rm -rf $RPM_BUILD_ROOT
209
60b883ee 210%post
553d5d05
ER
211if [ "$1" = 1 ]; then
212 echo "Remember to install libvisual-plugins-* packages if you"
213 echo "want to have a visualizations in amaroK."
214fi
60b883ee 215
08133359 216%files -f %{name}.lang
3dce540f 217%defattr(644,root,root,755)
8d75a549 218%doc AUTHORS ChangeLog README TODO
d4535bda 219%attr(755,root,root) %{_bindir}/amarok
3fd16f2f 220%{?with_xmms:%attr(755,root,root) %{_bindir}/amarok_xmmswrapper2}
d3a55e61 221%attr(755,root,root) %{_bindir}/amarokapp
7dae3fc2 222%attr(755,root,root) %{_bindir}/amarok_libvisual
f2f66851 223#%attr(755,root,root) %{_bindir}/release_amarok
60b883ee
SP
224%{_libdir}/kde3/konqsidebar_universalamarok.la
225%attr(755,root,root) %{_libdir}/kde3/konqsidebar_universalamarok.so
7dae3fc2 226%{_libdir}/kde3/libamarok_void-engine_plugin.la
227%attr(755,root,root) %{_libdir}/kde3/libamarok_void-engine_plugin.so
9d393535
ER
228%dir %{_datadir}/apps/amarok
229%dir %{_datadir}/apps/amarok/scripts
230%{_datadir}/apps/amarok/*.rc
231%{_datadir}/apps/amarok/data
232%{_datadir}/apps/amarok/icons
233%{_datadir}/apps/amarok/images
234%{_datadir}/apps/amarok/themes
7dae3fc2 235%{_datadir}/apps/konqueror/servicemenus/amarok_append.desktop
60b883ee 236%{_datadir}/apps/konqsidebartng/add/amarok.desktop
7cdc9e11
AM
237%{_datadir}/apps/konqsidebartng/entries/amarok.desktop
238%{_datadir}/apps/konqsidebartng/kicker_entries/amarok.desktop
60b883ee
SP
239%{_datadir}/apps/profiles/amarok.profile.xml
240%{_datadir}/config/amarokrc
d3a55e61 241%{_datadir}/config.kcfg/amarok.kcfg
7dae3fc2 242%{_datadir}/services/amarok_void-engine_plugin.desktop
d3a55e61 243%{_datadir}/servicetypes/amarok_plugin.desktop
3dce540f 244%{_desktopdir}/kde/amarok.desktop
60b883ee 245%{_iconsdir}/*/*/apps/amarok.*
8d75a549 246
48801ec3 247%if %{with arts}
248%files arts
249%defattr(644,root,root,755)
250%{_libdir}/kde3/libamarok_artsengine_plugin.la
251%attr(755,root,root) %{_libdir}/kde3/libamarok_artsengine_plugin.so
252%{_libdir}/libamarokarts.la
253%attr(755,root,root) %{_libdir}/libamarokarts.so
254%{_libdir}/mcop/Amarok
255%{_libdir}/mcop/amarokarts.mcopclass
256%{_libdir}/mcop/amarokarts.mcoptype
257%{_datadir}/services/amarok_artsengine_plugin.desktop
258%endif
259
7cdc9e11
AM
260%if %{with akode}
261%files akode
262%defattr(644,root,root,755)
263%{_libdir}/kde3/libamarok_aKode-engine.la
264%attr(755,root,root) %{_libdir}/kde3/libamarok_aKode-engine.so
265%{_datadir}/services/amarok_aKode-engine.desktop
266%endif
267
8d75a549 268%if %{with gstreamer}
269%files gstreamer
270%defattr(644,root,root,755)
271%{_libdir}/kde3/libamarok_gstengine_plugin.la
272%attr(755,root,root) %{_libdir}/kde3/libamarok_gstengine_plugin.so
7dae3fc2 273%{_datadir}/config.kcfg/gstconfig.kcfg
8d75a549 274%{_datadir}/services/amarok_gstengine_plugin.desktop
275%endif
7dae3fc2 276
277%if %{with xine}
278%files xine
279%defattr(644,root,root,755)
280%{_libdir}/kde3/libamarok_xine-engine.la
281%attr(755,root,root) %{_libdir}/kde3/libamarok_xine-engine.so
7cdc9e11 282%{_datadir}/config.kcfg/xinecfg.kcfg
7dae3fc2 283%{_datadir}/services/amarok_xine-engine.desktop
0047a4b2 284#%{_datadir}/services/amarok_xineengine_plugin.desktop
7dae3fc2 285%endif
7cdc9e11
AM
286
287%if %{with zeroconf}
288%files zeroconf
289%defattr(644,root,root,755)
290%{_datadir}/apps/zeroconf/_shoutcast._tcp
291%endif
9d393535
ER
292
293%files scripts
294%defattr(644,root,root,755)
295
296%dir %{_datadir}/apps/amarok/scripts/alarm
297%{_datadir}/apps/amarok/scripts/alarm/README
298%attr(755,root,root) %{_datadir}/apps/amarok/scripts/alarm/alarm.py
299
300%dir %{_datadir}/apps/amarok/scripts/graphequalizer
301%{_datadir}/apps/amarok/scripts/graphequalizer/README
302%attr(755,root,root) %{_datadir}/apps/amarok/scripts/graphequalizer/graphequalizer
303
304%dir %{_datadir}/apps/amarok/scripts/playlist2html
305%{_datadir}/apps/amarok/scripts/playlist2html/README
306%{_datadir}/apps/amarok/scripts/playlist2html/Playlist.py
307%{_datadir}/apps/amarok/scripts/playlist2html/PlaylistServer.py
308%{_datadir}/apps/amarok/scripts/playlist2html/playlist2html.py
309
310%dir %{_datadir}/apps/amarok/scripts/templates
311%{_datadir}/apps/amarok/scripts/templates/amarok.rb
312%{_datadir}/apps/amarok/scripts/templates/python_qt_template.py
313%{_datadir}/apps/amarok/scripts/templates/ruby_qt_template.rb
314
315%dir %{_datadir}/apps/amarok/scripts/webcontrol
316%{_datadir}/apps/amarok/scripts/webcontrol/README
317%{_datadir}/apps/amarok/scripts/webcontrol/Globals.py
318%{_datadir}/apps/amarok/scripts/webcontrol/Playlist.py
319%{_datadir}/apps/amarok/scripts/webcontrol/RequestHandler.py
320%{_datadir}/apps/amarok/scripts/webcontrol/amarok_cut.png
321%{_datadir}/apps/amarok/scripts/webcontrol/controlbackground.png
322%{_datadir}/apps/amarok/scripts/webcontrol/main.css
323%{_datadir}/apps/amarok/scripts/webcontrol/main.js
324%{_datadir}/apps/amarok/scripts/webcontrol/player_end.png
325%{_datadir}/apps/amarok/scripts/webcontrol/player_pause.png
326%{_datadir}/apps/amarok/scripts/webcontrol/player_play.png
327%{_datadir}/apps/amarok/scripts/webcontrol/player_start.png
328%{_datadir}/apps/amarok/scripts/webcontrol/player_stop.png
329%{_datadir}/apps/amarok/scripts/webcontrol/template.thtml
330%{_datadir}/apps/amarok/scripts/webcontrol/vol_speaker.png
331%{_datadir}/apps/amarok/scripts/webcontrol/WebPublisher.py
332%attr(755,root,root) %{_datadir}/apps/amarok/scripts/webcontrol/WebControl.py
333
334%dir %{_datadir}/apps/amarok/scripts/common
335%{_datadir}/apps/amarok/scripts/common/Publisher.py
336%{_datadir}/apps/amarok/scripts/common/Zeroconf.py
337
338%dir %{_datadir}/apps/amarok/scripts/shouter
339%{_datadir}/apps/amarok/scripts/shouter/README
340%{_datadir}/apps/amarok/scripts/shouter/ChangeLog
341%{_datadir}/apps/amarok/scripts/shouter/Amarok.py
342%{_datadir}/apps/amarok/scripts/shouter/Globals.py
343%{_datadir}/apps/amarok/scripts/shouter/Playlist.py
344%{_datadir}/apps/amarok/scripts/shouter/Services.py
345%{_datadir}/apps/amarok/scripts/shouter/ShouterConfig.py
346%{_datadir}/apps/amarok/scripts/shouter/ShouterExceptions.py
347%{_datadir}/apps/amarok/scripts/shouter/StreamConfig.py
348%{_datadir}/apps/amarok/scripts/shouter/StreamController.py
349%{_datadir}/apps/amarok/scripts/shouter/StreamPublisher.py
350%{_datadir}/apps/amarok/scripts/shouter/binfuncs.py
351%{_datadir}/apps/amarok/scripts/shouter/debug.py
352%{_datadir}/apps/amarok/scripts/shouter/propfind-req.xml
353%dir %{_datadir}/apps/amarok/scripts/shouter/silence
354%{_datadir}/apps/amarok/scripts/shouter/silence/silence-128.mp3
355%{_datadir}/apps/amarok/scripts/shouter/silence/silence-160.mp3
356%{_datadir}/apps/amarok/scripts/shouter/silence/silence-192.mp3
357%{_datadir}/apps/amarok/scripts/shouter/silence/silence-224.mp3
358%{_datadir}/apps/amarok/scripts/shouter/silence/silence-256.mp3
359%{_datadir}/apps/amarok/scripts/shouter/silence/silence-320.mp3
360%{_datadir}/apps/amarok/scripts/shouter/silence/silence-48.mp3
361%dir %{_datadir}/apps/amarok/scripts/shouter/test
362%{_datadir}/apps/amarok/scripts/shouter/test/client.py
363%attr(755,root,root) %{_datadir}/apps/amarok/scripts/shouter/Shouter.py
364
365%dir %{_datadir}/apps/amarok/scripts/amarok_live
366%{_datadir}/apps/amarok/scripts/amarok_live/README
367%{_datadir}/apps/amarok/scripts/amarok_live/amarok.live.remaster.part1.sh
368%{_datadir}/apps/amarok/scripts/amarok_live/amarok.live.remaster.part2.sh
369%attr(755,root,root) %{_datadir}/apps/amarok/scripts/amarok_live/amarok_live.py
This page took 0.29779 seconds and 4 git commands to generate.