3 # * postgresql support alongside mysql
4 # * NMM audio backend support (fix build - propably some BRs)
5 # * make descriptions less useless
6 # * HelixPlayer engine (fix build - propably some BRs)
9 %bcond_without arts # disable arts engine
10 %bcond_without gstreamer # disable gstreamer
11 %bcond_without mas # disable MAS audio backend
12 %bcond_without xine # disable xine engine
13 %bcond_without xmms # disable xmms wrapping
14 %bcond_without zeroconf # disable suport for zeroconf
15 %bcond_with helixplayer # enable HelixPlayer engine
16 %bcond_with nmm # enable NMM audio backend
17 %bcond_with mysql # enable mysql support
18 %bcond_with akode # enable aKode engine (too buggy/incomplete)
21 Summary: A KDE audio player
22 Summary(pl): Odtwarzacz audio dla KDE
27 Group: X11/Applications/Multimedia
28 Source0: http://dl.sourceforge.net/amarok/%{name}-%{version}-%{_beta}.tar.bz2
29 # Source0-md5: e6587bcdd3dc9a811d40d00b89e13ceb
30 Patch0: kde-common-gcc4.patch
31 URL: http://amarok.kde.org/
32 BuildRequires: SDL-devel
33 BuildRequires: alsa-lib-devel
34 BuildRequires: arts-qt-devel
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: sed >= 4.0
46 BuildRequires: sqlite3-devel
47 BuildRequires: taglib-devel >= 1.4
48 #BuildRequires: unsermake >= 040511
49 %{?with_xine:BuildRequires: xine-lib-devel >= 2:1.0-0.rc5.0}
50 %{?with_xmms:BuildRequires: xmms-devel}
51 %{?with_mysql:BuildRequires: mysql-devel}
52 #BuildRequires: kdebindings-kjsembed-devel
53 Requires: %{name}-plugin = %{version}-%{release}
54 Requires: kdebase-core >= 9:3.1.93
55 Requires: kdemultimedia-audiocd >= 9:3.1.93
56 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
62 Odtwarzacz audio dla KDE.
66 Summary(pl): Wtyczka arts
67 Group: X11/Applications/Multimedia
68 PreReq: %{name} = %{version}-%{release}
69 Provides: %{name}-plugin = %{version}-%{release}
74 %description arts -l pl
79 Summary(pl): Wtyczka akode
80 Group: X11/Applications/Multimedia
81 PreReq: %{name} = %{version}-%{release}
82 Provides: %{name}-plugin = %{version}-%{release}
87 %description akode -l pl
91 Summary: Plugin gstreamer
92 Summary(pl): Wtyczka gstreamer
93 Group: X11/Applications/Multimedia
94 PreReq: %{name} = %{version}-%{release}
96 # at least /usr/lib/gstreamer-0.8/libgstresample.so
97 # probably /usr/lib/gstreamer-0.8/libgstadder.so
98 # and probably /usr/lib/gstreamer-0.8/libgstvolume.so
99 Requires: gstreamer-audio-effects
100 Provides: %{name}-plugin = %{version}-%{release}
102 %description gstreamer
105 %description gstreamer -l pl
110 Summary(pl): Wtyczka xine
111 Group: X11/Applications/Multimedia
112 PreReq: %{name} = %{version}-%{release}
113 Provides: %{name}-plugin = %{version}-%{release}
118 %description xine -l pl
122 Summary: Zeroconf data
123 Summary(pl): Dane dla zeroconf
124 Group: X11/Applications/Multimedia
125 PreReq: %{name} = %{version}-%{release}
126 Requires: kdenetwork-kdnssd
127 Provides: %{name}-plugin = %{version}-%{release}
129 %description zeroconf
132 %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_mas:--with-mas} \
152 %{!?with_xine:--without-xine} \
153 %{!?with_gstreamer:--without-gstreamer} \
154 %{!?with_akode:--without-akode} \
155 %{?with_helix:--with-helix} \
156 %{?with_mysql:--with-mysql} \
158 --with-qt-libraries=%{_libdir} \
159 --without-included-sqlite
164 rm -rf $RPM_BUILD_ROOT
167 DESTDIR=$RPM_BUILD_ROOT \
168 kde_htmldir=%{_kdedocdir} \
169 kde_libs_htmldir=%{_kdedocdir}
172 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/xx
174 %find_lang amarok --all-name --with-kde
177 rm -rf $RPM_BUILD_ROOT
180 echo "Remember to install libvisual-plugins-* packages if you"
181 echo "want to have a visualizations in amarok."
183 %files -f %{name}.lang
184 %defattr(644,root,root,755)
185 %doc AUTHORS ChangeLog README TODO
186 %attr(755,root,root) %{_bindir}/amarok
187 %{?with_xmms:%attr(755,root,root) %{_bindir}/amarok_xmmswrapper2}
188 %attr(755,root,root) %{_bindir}/amarokapp
189 %attr(755,root,root) %{_bindir}/amarok_libvisual
190 #%attr(755,root,root) %{_bindir}/release_amarok
191 %{_libdir}/kde3/konqsidebar_universalamarok.la
192 %attr(755,root,root) %{_libdir}/kde3/konqsidebar_universalamarok.so
193 %{_libdir}/kde3/libamarok_void-engine_plugin.la
194 %attr(755,root,root) %{_libdir}/kde3/libamarok_void-engine_plugin.so
195 %{_datadir}/apps/amarok
196 %{_datadir}/apps/konqueror/servicemenus/amarok_append.desktop
197 %{_datadir}/apps/konqsidebartng/add/amarok.desktop
198 %{_datadir}/apps/konqsidebartng/entries/amarok.desktop
199 %{_datadir}/apps/konqsidebartng/kicker_entries/amarok.desktop
200 %{_datadir}/apps/profiles/amarok.profile.xml
201 %{_datadir}/config/amarokrc
202 %{_datadir}/config.kcfg/amarok.kcfg
203 %{_datadir}/services/amarok_void-engine_plugin.desktop
204 %{_datadir}/servicetypes/amarok_plugin.desktop
205 %{_desktopdir}/kde/amarok.desktop
206 %{_iconsdir}/*/*/apps/amarok.*
210 %defattr(644,root,root,755)
211 %{_libdir}/kde3/libamarok_artsengine_plugin.la
212 %attr(755,root,root) %{_libdir}/kde3/libamarok_artsengine_plugin.so
213 %{_libdir}/libamarokarts.la
214 %attr(755,root,root) %{_libdir}/libamarokarts.so
215 %{_libdir}/mcop/Amarok
216 %{_libdir}/mcop/amarokarts.mcopclass
217 %{_libdir}/mcop/amarokarts.mcoptype
218 %{_datadir}/services/amarok_artsengine_plugin.desktop
223 %defattr(644,root,root,755)
224 %{_libdir}/kde3/libamarok_aKode-engine.la
225 %attr(755,root,root) %{_libdir}/kde3/libamarok_aKode-engine.so
226 %{_datadir}/services/amarok_aKode-engine.desktop
229 %if %{with gstreamer}
231 %defattr(644,root,root,755)
232 %{_libdir}/kde3/libamarok_gstengine_plugin.la
233 %attr(755,root,root) %{_libdir}/kde3/libamarok_gstengine_plugin.so
234 %{_datadir}/config.kcfg/gstconfig.kcfg
235 %{_datadir}/services/amarok_gstengine_plugin.desktop
240 %defattr(644,root,root,755)
241 %{_libdir}/kde3/libamarok_xine-engine.la
242 %attr(755,root,root) %{_libdir}/kde3/libamarok_xine-engine.so
243 %{_datadir}/config.kcfg/xinecfg.kcfg
244 %{_datadir}/services/amarok_xine-engine.desktop
245 #%{_datadir}/services/amarok_xineengine_plugin.desktop
250 %defattr(644,root,root,755)
251 %{_datadir}/apps/zeroconf/_shoutcast._tcp