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