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