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