3 %bcond_without gstreamer # disable gstreamer
4 %bcond_without xmms # disable xmms wrapping
5 %bcond_without xine # disable xine engine
7 Summary: A KDE audio player
8 Summary(pl): Odtwarzacz audio dla KDE
13 Group: X11/Applications/Multimedia
14 Source0: http://dl.sourceforge.net/amarok/%{name}-%{version}.tar.bz2
15 # Source0-md5: 6c0cccd4c8b508a2e0c9b0f187a907cf
16 URL: http://amarok.kde.org/
17 Buildrequires: alsa-lib-devel
18 Buildrequires: arts-qt-devel
19 Buildrequires: automake
20 %{?with_gstreamer:BuildRequires: gstreamer-devel >= 0.8.1}
21 BuildRequires: kdemultimedia-devel >= 9:3.1.93
22 BuildRequires: rpmbuild(macros) >= 1.129
23 BuildRequires: sed >= 4.0
24 BuildRequires: sqlite-devel >= 2.8
25 BuildRequires: taglib-devel >= 1.3
26 BuildRequires: unsermake >= 040511
27 %{?with_xine:BuildRequires: xine-lib-devel >= 2:1.0-0.rc5.0}
28 %{?with_xmms:Buildrequires: xmms-devel}
29 Buildrequires: libmusicbrainz-devel
30 Buildrequires: libvisual-devel >= 0.1.6-1
31 Buildrequires: pcre-devel
32 #BuildRequires: kdebindings-kjsembed-devel
33 Requires: kdebase-core >= 9:3.1.93
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 Odtwarzacz audio dla KDE.
43 Summary: Plugin gstreamer
44 Summary(pl): Wtyczka gstreamer
45 Group: X11/Applications/Multimedia
46 Requires: %{name} = %{version}-%{release}
48 %description gstreamer
51 %description gstreamer -l pl
56 Summary(pl): Wtyczka xine
57 Group: X11/Applications/Multimedia
58 Requires: %{name} = %{version}-%{release}
63 %description xine -l pl
67 %setup -q -n %{name}-%{version}
69 %{__sed} -i -e 's/Categories=.*/Categories=Qt;KDE;AudioVideo;Player;/' \
70 amarok/src/amarok.desktop \
73 cp -f %{_datadir}/automake/config.sub admin
75 export UNSERMAKE=%{_datadir}/unsermake/unsermake
77 %{__make} -f admin/Makefile.common cvs
81 %{!?with_xine:--without-xine} \
82 %{!?with_gstreamer:--without-gstreamer} \
83 --with-qt-libraries=%{_libdir}
88 rm -rf $RPM_BUILD_ROOT
91 DESTDIR=$RPM_BUILD_ROOT \
92 kde_htmldir=%{_kdedocdir} \
93 kde_libs_htmldir=%{_kdedocdir}
95 %find_lang amarok --all-name --with-kde
98 rm -rf $RPM_BUILD_ROOT
100 %files -f %{name}.lang
101 %defattr(644,root,root,755)
102 %doc AUTHORS ChangeLog README TODO
103 %attr(755,root,root) %{_bindir}/amarok
104 %{?with_xmms:%attr(755,root,root) %{_bindir}/amarok_xmmswrapper2}
105 %attr(755,root,root) %{_bindir}/amarokapp
106 %attr(755,root,root) %{_bindir}/amarok_libvisual
107 %attr(755,root,root) %{_bindir}/release_amarok
108 %{_libdir}/kde3/libamarok_artsengine_plugin.la
109 %attr(755,root,root) %{_libdir}/kde3/libamarok_artsengine_plugin.so
110 %{_libdir}/kde3/libamarok_void-engine_plugin.la
111 %attr(755,root,root) %{_libdir}/kde3/libamarok_void-engine_plugin.so
112 %{_libdir}/libamarokarts.la
113 %attr(755,root,root) %{_libdir}/libamarokarts.so
114 %{_libdir}/mcop/Amarok
115 %{_libdir}/mcop/amarokarts.mcopclass
116 %{_libdir}/mcop/amarokarts.mcoptype
117 %{_datadir}/apps/amarok
118 %{_datadir}/apps/konqueror/servicemenus/amarok_append.desktop
119 %{_datadir}/config.kcfg/amarok.kcfg
120 %{_datadir}/services/amarok_artsengine_plugin.desktop
121 %{_datadir}/services/amarok_void-engine_plugin.desktop
122 %{_datadir}/servicetypes/amarok_plugin.desktop
123 %{_desktopdir}/kde/amarok.desktop
124 %{_iconsdir}/*/*/apps/amarok.png
125 %{_iconsdir}/crystalsvg/*/*/player_playlist_2.png
128 %if %{with gstreamer}
130 %defattr(644,root,root,755)
131 %{_libdir}/kde3/libamarok_gstengine_plugin.la
132 %attr(755,root,root) %{_libdir}/kde3/libamarok_gstengine_plugin.so
133 %{_datadir}/config.kcfg/gstconfig.kcfg
134 %{_datadir}/services/amarok_gstengine_plugin.desktop
139 %defattr(644,root,root,755)
140 %{_libdir}/kde3/libamarok_xine-engine.la
141 %attr(755,root,root) %{_libdir}/kde3/libamarok_xine-engine.so
142 %{_datadir}/services/amarok_xine-engine.desktop
143 %{_datadir}/services/amarok_xineengine_plugin.desktop