-
-%bcond_without xmms # disable xmms wrapping
-
-%define _ver 1.0
-%define _snap 040612
-%define _packager djurban
-
+#
+# Conditional builds:
+%bcond_without gstreamer # disable gstreamer
+%bcond_without xmms # disable xmms wrapping
+#
Summary: A KDE audio player
Summary(pl): Odtwarzacz audio dla KDE
Name: amarok
-Version: %{_ver}
-Release: 0.%{_snap}.1
+Version: 1.1.1
+Release: 0.1
License: GPL
Group: X11/Applications/Multimedia
-# adgor I've changed the dir!
-Source0: http://ep09.pld-linux.org/~%{_packager}/kde/snap/%{name}-%{_snap}.tar.bz2
-# Source0-md5: 01758b643901bf6e99f67bbbfa88c002
-#Source0: http://dl.sourceforge.net/amarok/%{name}-%{version}.tar.bz2
-URL: http://amarok.sf.net/
+Source0: http://dl.sourceforge.net/amarok/%{name}-%{version}.tar.bz2
+# Source0-md5: 6c0cccd4c8b508a2e0c9b0f187a907cf
+URL: http://amarok.kde.org/
+Buildrequires: alsa-lib-devel
Buildrequires: arts-qt-devel
Buildrequires: automake
+%{?with_gstreamer:BuildRequires: gstreamer-devel >= 0.8.1}
BuildRequires: kdemultimedia-devel >= 9:3.1.93
BuildRequires: rpmbuild(macros) >= 1.129
BuildRequires: sed >= 4.0
-BuildRequires: taglib-devel >= 0.95
+BuildRequires: sqlite >= 3.0.0
+BuildRequires: taglib-devel >= 1.3
BuildRequires: unsermake >= 040511
BuildRequires: xine-lib-devel
-%{?with_xmms:BuildRequires: xmms-devel}
+%{?with_xmms:Buildrequires: xmms-devel}
Requires: kdebase-core >= 9:3.1.93
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description -l pl
Odtwarzacz audio dla KDE.
+%package gstreamer
+Summary: Plugin gstreamer
+Summary(pl): Wtyczka gstreamer
+Group: X11/Applications/Multimedia
+Requires: %{name} = %{version}-%{release}
+
+%description gstreamer
+Plugin gstreamer.
+
+%description gstreamer -l pl
+Wtyczka gstreamer.
+
%prep
-%setup -q -n %{name}
+%setup -q -n %{name}-%{version}
+
+%{__sed} -i -e 's/Categories=.*/Categories=Qt;KDE;AudioVideo;Player;/' \
+ amarok/src/amarok.desktop \
%build
-cp -f /usr/share/automake/config.sub admin
+cp -f %{_datadir}/automake/config.sub admin
-export UNSERMAKE=/usr/share/unsermake/unsermake
+export UNSERMAKE=%{_datadir}/unsermake/unsermake
%{__make} -f admin/Makefile.common cvs
kde_htmldir=%{_kdedocdir} \
kde_libs_htmldir=%{_kdedocdir}
-#find_lang %{name} --with-kde
+%find_lang amarok --all-name --with-kde
%clean
rm -rf $RPM_BUILD_ROOT
-%files
-#-f %{name}.lang
+%files -f %{name}.lang
%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog README TODO
%attr(755,root,root) %{_bindir}/amarok
-%{?with_xmms:%attr(755,root,root) %{_bindir}/amarok_xmmswrapper}
+%{?with_xmms:%attr(755,root,root) %{_bindir}/amarok_xmmswrapper2}
%attr(755,root,root) %{_bindir}/amarokapp
+%attr(755,root,root) %{_bindir}/release_amarok
%{_libdir}/kde3/libamarok_artsengine_plugin.la
%attr(755,root,root) %{_libdir}/kde3/libamarok_artsengine_plugin.so
%{_libdir}/libamarokarts.la
%{_libdir}/mcop/amarokarts.mcoptype
%{_datadir}/apps/amarok
%{_datadir}/config.kcfg/amarok.kcfg
+%{_datadir}/config.kcfg/gstconfig.kcfg
%{_datadir}/services/amarok_artsengine_plugin.desktop
%{_datadir}/servicetypes/amarok_plugin.desktop
%{_desktopdir}/kde/amarok.desktop
%{_iconsdir}/[!l]*/*/apps/amarok.png
+%{_iconsdir}/crystalsvg/*/*/player_playlist_2.png
%{_datadir}/config/*
+
+%if %{with gstreamer}
+%files gstreamer
+%defattr(644,root,root,755)
+%{_libdir}/kde3/libamarok_gstengine_plugin.la
+%attr(755,root,root) %{_libdir}/kde3/libamarok_gstengine_plugin.so
+%{_datadir}/services/amarok_gstengine_plugin.desktop
+%endif