3 # * postgresql support alongside mysql
4 # * NMM, MAS audio backend support
5 # * make descriptions less useless
6 # * HelixPlayer engine?
9 %bcond_without arts # disable arts engine
10 %bcond_without gstreamer # disable gstreamer
11 %bcond_without xine # disable xine engine
12 %bcond_without xmms # disable xmms wrapping
13 %bcond_without zeroconf # disbale suport for zeroconf
14 %bcond_with mysql # enable mysql support
17 Summary: A KDE audio player
18 Summary(pl): Odtwarzacz audio dla KDE
23 Group: X11/Applications/Multimedia
24 Source0: http://dl.sourceforge.net/amarok/%{name}-%{version}-%{_beta}.tar.bz2
25 # Source0-md5: ca7b22074dab6107c61b3b92dadbe26e
26 Patch0: kde-common-gcc4.patch
27 URL: http://amarok.kde.org/
28 BuildRequires: SDL-devel
29 BuildRequires: alsa-lib-devel
30 BuildRequires: arts-qt-devel
31 BuildRequires: automake
32 %{?with_gstreamer:BuildRequires: gstreamer-plugins-devel >= 0.8.1}
33 BuildRequires: kdebase-devel
34 BuildRequires: kdemultimedia-akode
35 BuildRequires: kdemultimedia-devel >= 9:3.1.93
36 BuildRequires: libltdl-devel
37 BuildRequires: libmusicbrainz-devel
38 BuildRequires: libvisual-devel >= 0.2.0
39 BuildRequires: pcre-devel
40 BuildRequires: rpmbuild(macros) >= 1.129
41 BuildRequires: rpm-pythonprov
42 BuildRequires: sed >= 4.0
43 BuildRequires: sqlite3-devel
44 BuildRequires: taglib-devel >= 1.3.1
45 #BuildRequires: unsermake >= 040511
46 %{?with_xine:BuildRequires: xine-lib-devel >= 2:1.0-0.rc5.0}
47 %{?with_xmms:BuildRequires: xmms-devel}
48 %{?with_mysql:BuildRequires: mysql-devel}
49 #BuildRequires: kdebindings-kjsembed-devel
50 Requires: %{name}-plugin = %{version}-%{release}
51 Requires: kdebase-core >= 9:3.1.93
52 Requires: kdemultimedia-audiocd >= 9:3.1.93
53 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
59 Odtwarzacz audio dla KDE.
63 Summary(pl): Wtyczka arts
64 Group: X11/Applications/Multimedia
65 Requires: %{name} = %{version}-%{release}
66 Provides: %{name}-plugin = %{version}-%{release}
71 %description arts -l pl
77 Summary(pl): Wtyczka akode
78 Group: X11/Applications/Multimedia
79 Requires: %{name} = %{version}-%{release}
80 Provides: %{name}-plugin = %{version}-%{release}
85 %description akode -l pl
90 Summary: Plugin gstreamer
91 Summary(pl): Wtyczka gstreamer
92 Group: X11/Applications/Multimedia
94 # at least /usr/lib/gstreamer-0.8/libgstresample.so
95 # probably /usr/lib/gstreamer-0.8/libgstadder.so
96 # and probably /usr/lib/gstreamer-0.8/libgstvolume.so
97 Requires: gstreamer-audio-effects
98 Requires: %{name} = %{version}-%{release}
99 Provides: %{name}-plugin = %{version}-%{release}
101 %description gstreamer
104 %description gstreamer -l pl
109 Summary(pl): Wtyczka xine
110 Group: X11/Applications/Multimedia
111 Requires: %{name} = %{version}-%{release}
112 Provides: %{name}-plugin = %{version}-%{release}
117 %description xine -l pl
121 Summary: Zeroconf data
122 Summary(pl): Dane dla zeroconf
123 Group: X11/Applications/Multimedia
124 Requires: %{name} = %{version}-%{release}
125 Requires: kdenetwork-kdnssd
126 Provides: %{name}-plugin = %{version}-%{release}
128 %description zeroconf
131 %description zeroconf -l pl
136 %setup -q -n %{name}-%{version}-%{_beta}
138 %{__sed} -i -e 's/Categories=.*/Categories=Qt;KDE;AudioVideo;Player;/' \
139 amarok/src/amarok.desktop \
142 cp -f /usr/share/automake/config.sub admin
144 #export UNSERMAKE=/usr/share/unsermake/unsermake
146 %{__make} -f admin/Makefile.common cvs
150 %{!?with_arts:--without-arts} \
151 %{!?with_xine:--without-xine} \
152 %{!?with_gstreamer:--without-gstreamer} \
153 %{?with_mysql:--with-mysql} \
155 --with-qt-libraries=%{_libdir} \
156 --without-included-sqlite
161 rm -rf $RPM_BUILD_ROOT
164 DESTDIR=$RPM_BUILD_ROOT \
165 kde_htmldir=%{_kdedocdir} \
166 kde_libs_htmldir=%{_kdedocdir}
169 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/xx
171 #find_lang amarok --all-name --with-kde
174 rm -rf $RPM_BUILD_ROOT
177 echo "Remember to install libvisual-plugins-* packages if you"
178 echo "want to have a visualizations in amarok."
181 %defattr(644,root,root,755)
183 %defattr(644,root,root,755)
184 %doc AUTHORS ChangeLog README TODO
185 %attr(755,root,root) %{_bindir}/amarok
186 %{?with_xmms:%attr(755,root,root) %{_bindir}/amarok_xmmswrapper2}
187 %attr(755,root,root) %{_bindir}/amarokapp
188 %attr(755,root,root) %{_bindir}/amarok_libvisual
189 #%attr(755,root,root) %{_bindir}/release_amarok
190 %{_libdir}/kde3/konqsidebar_universalamarok.la
191 %attr(755,root,root) %{_libdir}/kde3/konqsidebar_universalamarok.so
192 %{_libdir}/kde3/libamarok_void-engine_plugin.la
193 %attr(755,root,root) %{_libdir}/kde3/libamarok_void-engine_plugin.so
194 %{_datadir}/apps/amarok
195 %{_datadir}/apps/konqueror/servicemenus/amarok_append.desktop
196 %{_datadir}/apps/konqsidebartng/add/amarok.desktop
197 %{_datadir}/apps/konqsidebartng/entries/amarok.desktop
198 %{_datadir}/apps/konqsidebartng/kicker_entries/amarok.desktop
199 %{_datadir}/apps/profiles/amarok.profile.xml
200 %{_datadir}/config/amarokrc
201 %{_datadir}/config.kcfg/amarok.kcfg
202 %{_datadir}/services/amarok_void-engine_plugin.desktop
203 %{_datadir}/servicetypes/amarok_plugin.desktop
204 %{_desktopdir}/kde/amarok.desktop
205 %{_iconsdir}/*/*/apps/amarok.*
209 %defattr(644,root,root,755)
210 %{_libdir}/kde3/libamarok_artsengine_plugin.la
211 %attr(755,root,root) %{_libdir}/kde3/libamarok_artsengine_plugin.so
212 %{_libdir}/libamarokarts.la
213 %attr(755,root,root) %{_libdir}/libamarokarts.so
214 %{_libdir}/mcop/Amarok
215 %{_libdir}/mcop/amarokarts.mcopclass
216 %{_libdir}/mcop/amarokarts.mcoptype
217 %{_datadir}/services/amarok_artsengine_plugin.desktop
221 %defattr(644,root,root,755)
222 %{_libdir}/kde3/libamarok_aKode-engine.la
223 %attr(755,root,root) %{_libdir}/kde3/libamarok_aKode-engine.so
224 %{_datadir}/services/amarok_aKode-engine.desktop
226 %if %{with gstreamer}
228 %defattr(644,root,root,755)
229 %{_libdir}/kde3/libamarok_gstengine_plugin.la
230 %attr(755,root,root) %{_libdir}/kde3/libamarok_gstengine_plugin.so
231 %{_datadir}/config.kcfg/gstconfig.kcfg
232 %{_datadir}/services/amarok_gstengine_plugin.desktop
237 %defattr(644,root,root,755)
238 %{_libdir}/kde3/libamarok_xine-engine.la
239 %attr(755,root,root) %{_libdir}/kde3/libamarok_xine-engine.so
240 %{_datadir}/services/amarok_xine-engine.desktop
241 #%{_datadir}/services/amarok_xineengine_plugin.desktop
246 %defattr(644,root,root,755)
247 %{_datadir}/apps/zeroconf/_shoutcast._tcp