+#
# TODO
-# - try not to link with static mysql
+# - use mysql-embedded in the future and try not to link with static mysqld lib
+#
%define state stable
-%define qtver 4.7.0
-%define kdever 4.5.0
+%define qtver 4.7.1
+%define kdever 4.5.5
Summary: A KDE audio player
Summary(pl.UTF-8): Odtwarzacz audio dla KDE
Name: amarok
Version: 2.4.0
-Release: 1
-License: GPL
+Release: 5
+License: GPL v2+ and LGPL v2.1+
Group: X11/Applications/Multimedia
Source0: ftp://ftp.kde.org/pub/kde/%{state}/amarok/%{version}/src/%{name}-%{version}.tar.bz2
# Source0-md5: bdb6ddc8e38d0982a0786ff8ac96d923
Suggests: libvisual-plugin-actor-nastyfft
Suggests: libvisual-plugin-actor-oinksie
Suggests: libvisual-plugin-input-alsa
-Suggests: libvisual-plugin-input-esd
Suggests: libvisual-plugin-input-jack
Suggests: libvisual-plugin-input-mplayer
Suggests: libvisual-plugin-morph-alphablend
%build
install -d build
cd build
-%cmake ..
+%cmake \
+ -DWITH_MYSQL_EMBEDDED=OFF \
+ ../
%{__make}
kde_htmldir=%{_kdedocdir} \
kde_libs_htmldir=%{_kdedocdir}
-# remove bogus dir
-rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/xx
-
# remove unsupported locale
-rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/sr@ijekavian*
+%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/sr@ijekavian*
# remove .so symlinks so that noone gets the stupid idea to package them
-rm -f $RPM_BUILD_ROOT%{_libdir}/libamarok*.so
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libamarok*.so
%find_lang %{name} --all-name --with-kde
%attr(755,root,root) %{_libdir}/kde4/amarok_collection-daapcollection.so
%attr(755,root,root) %{_libdir}/kde4/amarok_collection-ipodcollection.so
%attr(755,root,root) %{_libdir}/kde4/amarok_collection-mtpcollection.so
-%attr(755,root,root) %{_libdir}/kde4/amarok_collection-mysqlecollection.so
+#%%attr(755,root,root) %{_libdir}/kde4/amarok_collection-mysqlecollection.so
%attr(755,root,root) %{_libdir}/kde4/amarok_collection-mysqlservercollection.so
%attr(755,root,root) %{_libdir}/kde4/amarok_collection-umscollection.so
%attr(755,root,root) %{_libdir}/kde4/amarok_containment_vertical.so
%{_datadir}/kde4/services/amarok_collection-daapcollection.desktop
%{_datadir}/kde4/services/amarok_collection-ipodcollection.desktop
%{_datadir}/kde4/services/amarok_collection-mtpcollection.desktop
-%{_datadir}/kde4/services/amarok_collection-mysqlecollection.desktop
+#%%{_datadir}/kde4/services/amarok_collection-mysqlecollection.desktop
%{_datadir}/kde4/services/amarok_collection-mysqlservercollection.desktop
%{_datadir}/kde4/services/amarok_collection-umscollection.desktop
%{_datadir}/kde4/services/amarok-containment-vertical.desktop