3 %bcond_without arts # disable arts engine
4 %bcond_without gstreamer # disable gstreamer
5 %bcond_without xine # disable xine engine
6 %bcond_without xmms # disable xmms wrapping
7 %bcond_with mysql # enable mysql support
11 Summary: A KDE audio player
12 Summary(pl): Odtwarzacz audio dla KDE
17 Group: X11/Applications/Multimedia
18 Source0: http://dl.sourceforge.net/amarok/%{name}-1.2-%{_beta}.tar.bz2
19 # Source0-md5: 8535db7a873f0ee2e697b98135e4b60d
20 URL: http://amarok.kde.org/
21 Buildrequires: alsa-lib-devel
22 Buildrequires: arts-qt-devel
23 Buildrequires: automake
24 %{?with_gstreamer:BuildRequires: gstreamer-devel >= 0.8.1}
25 BuildRequires: kdebase-devel
26 BuildRequires: kdemultimedia-devel >= 9:3.1.93
27 Buildrequires: libmusicbrainz-devel
28 Buildrequires: libvisual-devel >= 0.2.0
29 Buildrequires: pcre-devel
30 BuildRequires: rpmbuild(macros) >= 1.129
31 BuildRequires: sed >= 4.0
32 BuildRequires: sqlite3-devel
33 BuildRequires: taglib-devel >= 1.3
34 BuildRequires: unsermake >= 040511
35 %{?with_xine:BuildRequires: xine-lib-devel >= 2:1.0-0.rc5.0}
36 %{?with_xmms:BuildRequires: xmms-devel}
37 %{?with_mysql:BuildRequires: mysql-devel}
38 #BuildRequires: kdebindings-kjsembed-devel
39 Requires: %{name}-plugin = %{version}-%{release}
40 Requires: kdebase-core >= 9:3.1.93
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 Odtwarzacz audio dla KDE.
51 Summary(pl): Wtyczka arts
52 Group: X11/Applications/Multimedia
53 Requires: %{name} = %{version}-%{release}
54 Provides: %{name}-plugin = %{version}-%{release}
59 %description arts -l pl
63 Summary: Plugin gstreamer
64 Summary(pl): Wtyczka gstreamer
65 Group: X11/Applications/Multimedia
66 Requires: %{name} = %{version}-%{release}
67 Provides: %{name}-plugin = %{version}-%{release}
69 %description gstreamer
72 %description gstreamer -l pl
77 Summary(pl): Wtyczka xine
78 Group: X11/Applications/Multimedia
79 Requires: %{name} = %{version}-%{release}
80 Provides: %{name}-plugin = %{version}-%{release}
85 %description xine -l pl
89 %setup -q -n %{name}-1.2-%{_beta}
91 %{__sed} -i -e 's/Categories=.*/Categories=Qt;KDE;AudioVideo;Player;/' \
92 amarok/src/amarok.desktop \
95 cp -f %{_datadir}/automake/config.sub admin
97 export UNSERMAKE=%{_datadir}/unsermake/unsermake
99 %{__make} -f admin/Makefile.common cvs
103 %{!?with_arts:--without-arts} \
104 %{!?with_xine:--without-xine} \
105 %{!?with_gstreamer:--without-gstreamer} \
106 %{?with_mysql:--with-mysql} \
108 --with-qt-libraries=%{_libdir} \
109 --without-included-sqlite
114 rm -rf $RPM_BUILD_ROOT
117 DESTDIR=$RPM_BUILD_ROOT \
118 kde_htmldir=%{_kdedocdir} \
119 kde_libs_htmldir=%{_kdedocdir}
122 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/xx
124 %find_lang amarok --all-name --with-kde
127 rm -rf $RPM_BUILD_ROOT
129 %files -f %{name}.lang
130 %defattr(644,root,root,755)
131 %doc AUTHORS ChangeLog README TODO
132 %attr(755,root,root) %{_bindir}/amarok
133 %{?with_xmms:%attr(755,root,root) %{_bindir}/amarok_xmmswrapper2}
134 %attr(755,root,root) %{_bindir}/amarokapp
135 %attr(755,root,root) %{_bindir}/amarok_libvisual
136 %attr(755,root,root) %{_bindir}/release_amarok
137 %{_libdir}/kde3/libamarok_void-engine_plugin.la
138 %attr(755,root,root) %{_libdir}/kde3/libamarok_void-engine_plugin.so
139 %{_datadir}/apps/amarok
140 %{_datadir}/apps/konqueror/servicemenus/amarok_append.desktop
141 %{_datadir}/config.kcfg/amarok.kcfg
142 %{_datadir}/services/amarok_void-engine_plugin.desktop
143 %{_datadir}/servicetypes/amarok_plugin.desktop
144 %{_desktopdir}/kde/amarok.desktop
145 %{_iconsdir}/*/*/apps/amarok.png
146 %{_iconsdir}/crystalsvg/*/*/player_playlist_2.png
151 %defattr(644,root,root,755)
152 %{_libdir}/kde3/libamarok_artsengine_plugin.la
153 %attr(755,root,root) %{_libdir}/kde3/libamarok_artsengine_plugin.so
154 %{_libdir}/libamarokarts.la
155 %attr(755,root,root) %{_libdir}/libamarokarts.so
156 %{_libdir}/mcop/Amarok
157 %{_libdir}/mcop/amarokarts.mcopclass
158 %{_libdir}/mcop/amarokarts.mcoptype
159 %{_datadir}/services/amarok_artsengine_plugin.desktop
162 %if %{with gstreamer}
164 %defattr(644,root,root,755)
165 %{_libdir}/kde3/libamarok_gstengine_plugin.la
166 %attr(755,root,root) %{_libdir}/kde3/libamarok_gstengine_plugin.so
167 %{_datadir}/config.kcfg/gstconfig.kcfg
168 %{_datadir}/services/amarok_gstengine_plugin.desktop
173 %defattr(644,root,root,755)
174 %{_libdir}/kde3/libamarok_xine-engine.la
175 %attr(755,root,root) %{_libdir}/kde3/libamarok_xine-engine.so
176 %{_datadir}/services/amarok_xine-engine.desktop
177 %{_datadir}/services/amarok_xineengine_plugin.desktop