]> git.pld-linux.org Git - packages/amarok.git/blame - amarok.spec
- there's some HelixPlayer engine since beta1
[packages/amarok.git] / amarok.spec
CommitLineData
8d75a549 1#
4fc43dcb 2# TODO:
3# * postgresql support alongside mysql
4# * NMM, MAS audio backend support
5# * make descriptions less useless
9f1fdd49 6# * HelixPlayer engine?
4fc43dcb 7#
948e9545 8# Conditional builds:
48801ec3 9%bcond_without arts # disable arts engine
8d75a549 10%bcond_without gstreamer # disable gstreamer
7dae3fc2 11%bcond_without xine # disable xine engine
48801ec3 12%bcond_without xmms # disable xmms wrapping
bdca4c01 13%bcond_without zeroconf # disbale suport for zeroconf
604d331d 14%bcond_with mysql # enable mysql support
d4535bda 15#
f4cb0767 16%define _beta beta2
3dce540f 17Summary: A KDE audio player
18Summary(pl): Odtwarzacz audio dla KDE
19Name: amarok
625e1885 20Version: 1.3
b79703cf 21Release: 0.%{_beta}.2
3dce540f 22License: GPL
23Group: X11/Applications/Multimedia
f4cb0767
SP
24Source0: http://dl.sourceforge.net/amarok/%{name}-%{version}-%{_beta}.tar.bz2
25# Source0-md5: ca7b22074dab6107c61b3b92dadbe26e
4fc43dcb 26Patch0: kde-common-gcc4.patch
567ab89c 27URL: http://amarok.kde.org/
4fc43dcb 28BuildRequires: SDL-devel
29BuildRequires: alsa-lib-devel
30BuildRequires: arts-qt-devel
31BuildRequires: automake
512f2835 32%{?with_gstreamer:BuildRequires: gstreamer-plugins-devel >= 0.8.1}
bb9faa6b 33BuildRequires: kdebase-devel
4fc43dcb 34BuildRequires: kdemultimedia-akode
ac33bc29 35BuildRequires: kdemultimedia-devel >= 9:3.1.93
acac53f1 36BuildRequires: libltdl-devel
4fc43dcb 37BuildRequires: libmusicbrainz-devel
38BuildRequires: libvisual-devel >= 0.2.0
39BuildRequires: pcre-devel
3022f84e 40BuildRequires: rpmbuild(macros) >= 1.129
43342c86 41BuildRequires: sed >= 4.0
48801ec3 42BuildRequires: sqlite3-devel
512f2835 43BuildRequires: taglib-devel >= 1.3.1
f96a59dd 44#BuildRequires: unsermake >= 040511
512f2835
SP
45%{?with_xine:BuildRequires: xine-lib-devel >= 2:1.0-0.rc5.0}
46%{?with_xmms:BuildRequires: xmms-devel}
47%{?with_mysql:BuildRequires: mysql-devel}
af820bda 48#BuildRequires: kdebindings-kjsembed-devel
48801ec3 49Requires: %{name}-plugin = %{version}-%{release}
3dce540f 50Requires: kdebase-core >= 9:3.1.93
50fa799e 51Requires: kdemultimedia-audiocd >= 9:3.1.93
3dce540f 52BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53
54%description
55A KDE audio player.
56
57%description -l pl
58Odtwarzacz audio dla KDE.
59
48801ec3 60%package arts
61Summary: Plugin arts
62Summary(pl): Wtyczka arts
63Group: X11/Applications/Multimedia
64Requires: %{name} = %{version}-%{release}
65Provides: %{name}-plugin = %{version}-%{release}
66
67%description arts
68Plugin arts.
69
70%description arts -l pl
71Wtyczka arts.
72
bdca4c01 73
4fc43dcb 74%package akode
625e1885
SP
75Summary: Plugin akode
76Summary(pl): Wtyczka akode
77Group: X11/Applications/Multimedia
78Requires: %{name} = %{version}-%{release}
79Provides: %{name}-plugin = %{version}-%{release}
4fc43dcb 80
81%description akode
82Plugin akode.
83
84%description akode -l pl
85Wtyczka akode.
86
87
8d75a549 88%package gstreamer
d4535bda 89Summary: Plugin gstreamer
8d75a549 90Summary(pl): Wtyczka gstreamer
91Group: X11/Applications/Multimedia
4fc43dcb 92# needed libs
625e1885 93# at least /usr/lib/gstreamer-0.8/libgstresample.so
4fc43dcb 94# probably /usr/lib/gstreamer-0.8/libgstadder.so
95# and probably /usr/lib/gstreamer-0.8/libgstvolume.so
96Requires: gstreamer-audio-effects
4d1b1b41 97Requires: %{name} = %{version}-%{release}
48801ec3 98Provides: %{name}-plugin = %{version}-%{release}
8d75a549 99
100%description gstreamer
d4535bda 101Plugin gstreamer.
8d75a549 102
103%description gstreamer -l pl
104Wtyczka gstreamer.
105
7dae3fc2 106%package xine
107Summary: Plugin xine
108Summary(pl): Wtyczka xine
109Group: X11/Applications/Multimedia
1aff4314 110Requires: %{name} = %{version}-%{release}
48801ec3 111Provides: %{name}-plugin = %{version}-%{release}
7dae3fc2 112
113%description xine
114Plugin xine.
115
116%description xine -l pl
117Wtyczka xine.
118
bdca4c01 119%package zeroconf
120Summary: Zeroconf data
121Summary(pl): Dane dla zeroconf
122Group: X11/Applications/Multimedia
123Requires: %{name} = %{version}-%{release}
124Requires: kdenetwork-kdnssd
125Provides: %{name}-plugin = %{version}-%{release}
126
127%description zeroconf
128Zeroconf data.
129
130%description zeroconf -l pl
131Zeroconf data.
132
133
3dce540f 134%prep
625e1885 135%setup -q -n %{name}-%{version}-%{_beta}
4fc43dcb 136%patch0 -p1
69409e85 137%{__sed} -i -e 's/Categories=.*/Categories=Qt;KDE;AudioVideo;Player;/' \
138 amarok/src/amarok.desktop \
139
3dce540f 140%build
4fc43dcb 141cp -f /usr/share/automake/config.sub admin
d3a55e61 142
4fc43dcb 143#export UNSERMAKE=/usr/share/unsermake/unsermake
d3a55e61 144
145%{__make} -f admin/Makefile.common cvs
146
3dce540f 147%configure \
148 --disable-rpath \
48801ec3 149 %{!?with_arts:--without-arts} \
7dae3fc2 150 %{!?with_xine:--without-xine} \
151 %{!?with_gstreamer:--without-gstreamer} \
f49f397f 152 %{?with_mysql:--with-mysql} \
bb9faa6b 153 --disable-final \
f15a6325 154 --with-qt-libraries=%{_libdir} \
155 --without-included-sqlite
3dce540f 156
157%{__make}
158
159%install
160rm -rf $RPM_BUILD_ROOT
161
162%{__make} install \
163 DESTDIR=$RPM_BUILD_ROOT \
bd5fd9cb 164 kde_htmldir=%{_kdedocdir} \
165 kde_libs_htmldir=%{_kdedocdir}
43342c86 166
3248aa1e 167# remove bogus dir
168rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/xx
169
4fc43dcb 170#find_lang amarok --all-name --with-kde
3dce540f 171
172%clean
173rm -rf $RPM_BUILD_ROOT
174
af820bda
SP
175%post
176echo "Remember to install libvisual-plugins-* packages if you"
177echo "want to have a visualizations in amarok."
178
625e1885
SP
179%files
180%defattr(644,root,root,755)
bdca4c01 181# -f %{name}.lang
3dce540f 182%defattr(644,root,root,755)
380fa0f9 183%doc AUTHORS ChangeLog README TODO
d4535bda 184%attr(755,root,root) %{_bindir}/amarok
3fd16f2f 185%{?with_xmms:%attr(755,root,root) %{_bindir}/amarok_xmmswrapper2}
d3a55e61 186%attr(755,root,root) %{_bindir}/amarokapp
add3317f 187%attr(755,root,root) %{_bindir}/amarok_libvisual
4fc43dcb 188#%attr(755,root,root) %{_bindir}/release_amarok
512f2835 189%{_libdir}/kde3/konqsidebar_universalamarok.la
512f2835 190%attr(755,root,root) %{_libdir}/kde3/konqsidebar_universalamarok.so
2aaa0c03 191%{_libdir}/kde3/libamarok_void-engine_plugin.la
192%attr(755,root,root) %{_libdir}/kde3/libamarok_void-engine_plugin.so
3dce540f 193%{_datadir}/apps/amarok
7dae3fc2 194%{_datadir}/apps/konqueror/servicemenus/amarok_append.desktop
2aaa0c03 195%{_datadir}/apps/konqsidebartng/add/amarok.desktop
4fc43dcb 196%{_datadir}/apps/konqsidebartng/entries/amarok.desktop
197%{_datadir}/apps/konqsidebartng/kicker_entries/amarok.desktop
2aaa0c03 198%{_datadir}/apps/profiles/amarok.profile.xml
199%{_datadir}/config/amarokrc
d3a55e61 200%{_datadir}/config.kcfg/amarok.kcfg
7dae3fc2 201%{_datadir}/services/amarok_void-engine_plugin.desktop
d3a55e61 202%{_datadir}/servicetypes/amarok_plugin.desktop
3dce540f 203%{_desktopdir}/kde/amarok.desktop
2aaa0c03 204%{_iconsdir}/*/*/apps/amarok.*
8d75a549 205
48801ec3 206%if %{with arts}
207%files arts
208%defattr(644,root,root,755)
209%{_libdir}/kde3/libamarok_artsengine_plugin.la
210%attr(755,root,root) %{_libdir}/kde3/libamarok_artsengine_plugin.so
211%{_libdir}/libamarokarts.la
212%attr(755,root,root) %{_libdir}/libamarokarts.so
213%{_libdir}/mcop/Amarok
214%{_libdir}/mcop/amarokarts.mcopclass
215%{_libdir}/mcop/amarokarts.mcoptype
216%{_datadir}/services/amarok_artsengine_plugin.desktop
217%endif
218
4fc43dcb 219%files akode
220%defattr(644,root,root,755)
221%{_libdir}/kde3/libamarok_aKode-engine.la
222%attr(755,root,root) %{_libdir}/kde3/libamarok_aKode-engine.so
223%{_datadir}/services/amarok_aKode-engine.desktop
224
8d75a549 225%if %{with gstreamer}
226%files gstreamer
227%defattr(644,root,root,755)
228%{_libdir}/kde3/libamarok_gstengine_plugin.la
229%attr(755,root,root) %{_libdir}/kde3/libamarok_gstengine_plugin.so
7dae3fc2 230%{_datadir}/config.kcfg/gstconfig.kcfg
8d75a549 231%{_datadir}/services/amarok_gstengine_plugin.desktop
232%endif
7dae3fc2 233
234%if %{with xine}
235%files xine
236%defattr(644,root,root,755)
237%{_libdir}/kde3/libamarok_xine-engine.la
238%attr(755,root,root) %{_libdir}/kde3/libamarok_xine-engine.so
239%{_datadir}/services/amarok_xine-engine.desktop
4fc43dcb 240#%{_datadir}/services/amarok_xineengine_plugin.desktop
7dae3fc2 241%endif
bdca4c01 242
243%if %{with zeroconf}
244%files zeroconf
245%defattr(644,root,root,755)
246%{_datadir}/apps/zeroconf/_shoutcast._tcp
247%endif
This page took 0.246917 seconds and 4 git commands to generate.