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