]> git.pld-linux.org Git - packages/amarok.git/blame - amarok.spec
- lang files back (why these were disabled?)
[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
15c8b434 21Release: 0.%{_beta}.4
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
c95e33f6 41BuildRequires: rpm-pythonprov
43342c86 42BuildRequires: sed >= 4.0
48801ec3 43BuildRequires: sqlite3-devel
512f2835 44BuildRequires: taglib-devel >= 1.3.1
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
bdca4c01 74
4fc43dcb 75%package akode
625e1885
SP
76Summary: Plugin akode
77Summary(pl): Wtyczka akode
78Group: X11/Applications/Multimedia
a921c62d 79PreReq: %{name} = %{version}-%{release}
625e1885 80Provides: %{name}-plugin = %{version}-%{release}
4fc43dcb 81
82%description akode
83Plugin akode.
84
85%description akode -l pl
86Wtyczka akode.
87
88
8d75a549 89%package gstreamer
d4535bda 90Summary: Plugin gstreamer
8d75a549 91Summary(pl): Wtyczka gstreamer
92Group: X11/Applications/Multimedia
a921c62d 93PreReq: %{name} = %{version}-%{release}
4fc43dcb 94# needed libs
625e1885 95# at least /usr/lib/gstreamer-0.8/libgstresample.so
4fc43dcb 96# probably /usr/lib/gstreamer-0.8/libgstadder.so
97# and probably /usr/lib/gstreamer-0.8/libgstvolume.so
98Requires: gstreamer-audio-effects
48801ec3 99Provides: %{name}-plugin = %{version}-%{release}
8d75a549 100
101%description gstreamer
d4535bda 102Plugin gstreamer.
8d75a549 103
104%description gstreamer -l pl
105Wtyczka gstreamer.
106
7dae3fc2 107%package xine
108Summary: Plugin xine
109Summary(pl): Wtyczka xine
110Group: X11/Applications/Multimedia
a921c62d 111PreReq: %{name} = %{version}-%{release}
48801ec3 112Provides: %{name}-plugin = %{version}-%{release}
7dae3fc2 113
114%description xine
115Plugin xine.
116
117%description xine -l pl
118Wtyczka xine.
119
bdca4c01 120%package zeroconf
121Summary: Zeroconf data
122Summary(pl): Dane dla zeroconf
123Group: X11/Applications/Multimedia
a921c62d 124PreReq: %{name} = %{version}-%{release}
bdca4c01 125Requires: kdenetwork-kdnssd
126Provides: %{name}-plugin = %{version}-%{release}
127
128%description zeroconf
129Zeroconf data.
130
131%description zeroconf -l pl
132Zeroconf data.
133
134
3dce540f 135%prep
625e1885 136%setup -q -n %{name}-%{version}-%{_beta}
4fc43dcb 137%patch0 -p1
69409e85 138%{__sed} -i -e 's/Categories=.*/Categories=Qt;KDE;AudioVideo;Player;/' \
139 amarok/src/amarok.desktop \
140
3dce540f 141%build
4fc43dcb 142cp -f /usr/share/automake/config.sub admin
d3a55e61 143
4fc43dcb 144#export UNSERMAKE=/usr/share/unsermake/unsermake
d3a55e61 145
146%{__make} -f admin/Makefile.common cvs
147
3dce540f 148%configure \
149 --disable-rpath \
48801ec3 150 %{!?with_arts:--without-arts} \
7dae3fc2 151 %{!?with_xine:--without-xine} \
152 %{!?with_gstreamer:--without-gstreamer} \
f49f397f 153 %{?with_mysql:--with-mysql} \
bb9faa6b 154 --disable-final \
f15a6325 155 --with-qt-libraries=%{_libdir} \
156 --without-included-sqlite
3dce540f 157
158%{__make}
159
160%install
161rm -rf $RPM_BUILD_ROOT
162
163%{__make} install \
164 DESTDIR=$RPM_BUILD_ROOT \
bd5fd9cb 165 kde_htmldir=%{_kdedocdir} \
166 kde_libs_htmldir=%{_kdedocdir}
43342c86 167
3248aa1e 168# remove bogus dir
169rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/xx
170
15c8b434 171%find_lang amarok --all-name --with-kde
3dce540f 172
173%clean
174rm -rf $RPM_BUILD_ROOT
175
af820bda
SP
176%post
177echo "Remember to install libvisual-plugins-* packages if you"
178echo "want to have a visualizations in amarok."
179
15c8b434 180%files -f %{name}.lang
3dce540f 181%defattr(644,root,root,755)
380fa0f9 182%doc AUTHORS ChangeLog README TODO
d4535bda 183%attr(755,root,root) %{_bindir}/amarok
3fd16f2f 184%{?with_xmms:%attr(755,root,root) %{_bindir}/amarok_xmmswrapper2}
d3a55e61 185%attr(755,root,root) %{_bindir}/amarokapp
add3317f 186%attr(755,root,root) %{_bindir}/amarok_libvisual
4fc43dcb 187#%attr(755,root,root) %{_bindir}/release_amarok
512f2835 188%{_libdir}/kde3/konqsidebar_universalamarok.la
512f2835 189%attr(755,root,root) %{_libdir}/kde3/konqsidebar_universalamarok.so
2aaa0c03 190%{_libdir}/kde3/libamarok_void-engine_plugin.la
191%attr(755,root,root) %{_libdir}/kde3/libamarok_void-engine_plugin.so
3dce540f 192%{_datadir}/apps/amarok
7dae3fc2 193%{_datadir}/apps/konqueror/servicemenus/amarok_append.desktop
2aaa0c03 194%{_datadir}/apps/konqsidebartng/add/amarok.desktop
4fc43dcb 195%{_datadir}/apps/konqsidebartng/entries/amarok.desktop
196%{_datadir}/apps/konqsidebartng/kicker_entries/amarok.desktop
2aaa0c03 197%{_datadir}/apps/profiles/amarok.profile.xml
198%{_datadir}/config/amarokrc
d3a55e61 199%{_datadir}/config.kcfg/amarok.kcfg
7dae3fc2 200%{_datadir}/services/amarok_void-engine_plugin.desktop
d3a55e61 201%{_datadir}/servicetypes/amarok_plugin.desktop
3dce540f 202%{_desktopdir}/kde/amarok.desktop
2aaa0c03 203%{_iconsdir}/*/*/apps/amarok.*
8d75a549 204
48801ec3 205%if %{with arts}
206%files arts
207%defattr(644,root,root,755)
208%{_libdir}/kde3/libamarok_artsengine_plugin.la
209%attr(755,root,root) %{_libdir}/kde3/libamarok_artsengine_plugin.so
210%{_libdir}/libamarokarts.la
211%attr(755,root,root) %{_libdir}/libamarokarts.so
212%{_libdir}/mcop/Amarok
213%{_libdir}/mcop/amarokarts.mcopclass
214%{_libdir}/mcop/amarokarts.mcoptype
215%{_datadir}/services/amarok_artsengine_plugin.desktop
216%endif
217
4fc43dcb 218%files akode
219%defattr(644,root,root,755)
220%{_libdir}/kde3/libamarok_aKode-engine.la
221%attr(755,root,root) %{_libdir}/kde3/libamarok_aKode-engine.so
222%{_datadir}/services/amarok_aKode-engine.desktop
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.055518 seconds and 4 git commands to generate.