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