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