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