]>
Commit | Line | Data |
---|---|---|
a74cde9c | 1 | # TODO |
2 | # - try not to link with static mysql | |
3 | ||
4 | %define state stable | |
cbffc205 | 5 | %define qtver 4.5.3 |
b5eaa586 | 6 | |
3dce540f | 7 | Summary: A KDE audio player |
78ae220a | 8 | Summary(pl.UTF-8): Odtwarzacz audio dla KDE |
3dce540f | 9 | Name: amarok |
214a918d | 10 | Version: 2.2.0 |
f4cb2505 | 11 | Release: 1 |
3dce540f | 12 | License: GPL |
13 | Group: X11/Applications/Multimedia | |
a74cde9c | 14 | Source0: ftp://ftp.kde.org/pub/kde/%{state}/amarok/%{version}/src/%{name}-%{version}.tar.bz2 |
214a918d | 15 | # Source0-md5: 5a0188c5eb7d343109b82964942d8eb5 |
a74cde9c | 16 | Patch0: %{name}-link.patch |
17 | Patch1: %{name}-qthreadpool.patch | |
567ab89c | 18 | URL: http://amarok.kde.org/ |
a74cde9c | 19 | BuildRequires: Qt3Support-devel >= %{qtver} |
20 | BuildRequires: QtCore-devel >= %{qtver} | |
21 | BuildRequires: QtDBus-devel >= %{qtver} | |
22 | BuildRequires: QtDesigner-devel >= %{qtver} | |
23 | BuildRequires: QtNetwork-devel >= %{qtver} | |
24 | BuildRequires: QtOpenGL-devel >= %{qtver} | |
25 | BuildRequires: QtScript-devel >= %{qtver} | |
26 | BuildRequires: QtSql-devel >= %{qtver} | |
27 | BuildRequires: QtSvg-devel >= %{qtver} | |
28 | BuildRequires: QtTest-devel >= %{qtver} | |
29 | BuildRequires: QtUiTools-devel >= %{qtver} | |
30 | BuildRequires: QtWebKit-devel >= %{qtver} | |
31 | BuildRequires: QtXml-devel >= %{qtver} | |
32 | BuildRequires: automoc4 | |
33 | BuildRequires: cmake >= 2.6.1-2 | |
34 | BuildRequires: curl-devel | |
35 | BuildRequires: giflib-devel | |
36 | BuildRequires: glib2-devel | |
37 | BuildRequires: kde4-kdebase-devel | |
38 | BuildRequires: kde4-kdemultimedia-devel | |
39 | BuildRequires: libgpod-devel >= 0.7.0 | |
40 | BuildRequires: libifp-devel >= 1.0.0.2 | |
214a918d | 41 | BuildRequires: liblastfm-devel |
a74cde9c | 42 | BuildRequires: libmtp-devel >= 0.3.0 |
43 | BuildRequires: libnjb-devel >= 2.2.4 | |
62f70c2c | 44 | BuildRequires: libvisual-devel >= 0.4.0 |
a74cde9c | 45 | BuildRequires: loudmouth-devel |
6d11e954 | 46 | BuildRequires: mpeg4ip-devel >= 1:1.6 |
a74cde9c | 47 | BuildRequires: mysql-devel >= 5.1.31-3 |
6fc2033f | 48 | BuildRequires: pcre-devel |
f0306acf | 49 | BuildRequires: pkgconfig |
a74cde9c | 50 | BuildRequires: qt4-build >= %{qtver} |
51 | BuildRequires: qt4-qmake >= %{qtver} | |
52 | BuildRequires: qtscriptbindings | |
532341d1 | 53 | BuildRequires: rpm-pythonprov |
baa5dbe4 | 54 | BuildRequires: rpmbuild(macros) >= 1.129 |
a74cde9c | 55 | BuildRequires: soprano-devel >= 2.1 |
56 | BuildRequires: strigi-devel >= 0.5.10 | |
214a918d SP |
57 | BuildRequires: taglib-devel >= 1.6 |
58 | BuildRequires: taglib-extras-devel >= 1.0.0 | |
a74cde9c | 59 | BuildRequires: utempter-devel |
60 | BuildRequires: xorg-lib-libXpm-devel | |
61 | Requires(post,postun): /sbin/ldconfig | |
62 | Requires: kde4-kdebase-core | |
63 | Requires: kde4-kdemultimedia-audiocd | |
64 | Requires: kde4-phonon | |
65 | Requires: qtscriptbindings | |
8028f5c0 PG |
66 | Suggests: libvisual-plugin-actor-JESS |
67 | Suggests: libvisual-plugin-actor-bumpscope | |
68 | Suggests: libvisual-plugin-actor-corona | |
69 | Suggests: libvisual-plugin-actor-flower | |
70 | Suggests: libvisual-plugin-actor-gdkpixbuf | |
71 | Suggests: libvisual-plugin-actor-gforce | |
a74cde9c | 72 | Suggests: libvisual-plugin-actor-gstreamer |
8028f5c0 PG |
73 | Suggests: libvisual-plugin-actor-infinite |
74 | Suggests: libvisual-plugin-actor-jakdaw | |
75 | Suggests: libvisual-plugin-actor-lv_analyzer | |
76 | Suggests: libvisual-plugin-actor-lv_gltest | |
77 | Suggests: libvisual-plugin-actor-lv_scope | |
78 | Suggests: libvisual-plugin-actor-madspin | |
79 | Suggests: libvisual-plugin-actor-nastyfft | |
80 | Suggests: libvisual-plugin-actor-oinksie | |
81 | Suggests: libvisual-plugin-input-alsa | |
82 | Suggests: libvisual-plugin-input-esd | |
83 | Suggests: libvisual-plugin-input-jack | |
84 | Suggests: libvisual-plugin-input-mplayer | |
85 | Suggests: libvisual-plugin-morph-alphablend | |
86 | Suggests: libvisual-plugin-morph-flash | |
87 | Suggests: libvisual-plugin-morph-slide | |
88 | Suggests: libvisual-plugin-morph-tentacle | |
86666641 | 89 | Obsoletes: amarok-arts |
1581e7f4 | 90 | Obsoletes: amarok-xmms |
a74cde9c | 91 | # It should require mysql-embeded |
92 | Requires: mysql >= 5.1.31-3 | |
93 | Conflicts: mysql < 5.1.31-3 | |
3be5e8cd | 94 | # sr@Latn vs. sr@latin |
95 | Conflicts: glibc-misc < 6:2.7 | |
3dce540f | 96 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
97 | ||
98 | %description | |
99 | A KDE audio player. | |
100 | ||
86426fe7 | 101 | %description -l pl.UTF-8 |
3dce540f | 102 | Odtwarzacz audio dla KDE. |
103 | ||
9d393535 ER |
104 | %package scripts |
105 | Summary: amaroK scripts | |
78ae220a | 106 | Summary(pl.UTF-8): Skrypty amaroKa |
9d393535 ER |
107 | Group: X11/Applications/Multimedia |
108 | Requires: %{name} = %{version}-%{release} | |
a74cde9c | 109 | Requires: kde4-kdebase-kdialog |
9d393535 ER |
110 | |
111 | %description scripts | |
112 | amaroK scripts allow you extend amaroK functionality. | |
113 | ||
114 | You can learn more about scripts in amaroK from here: | |
2fde3dac | 115 | <http://amarok.kde.org/amarokwiki/index.php/Script-Writing_HowTo>. |
9d393535 | 116 | |
86426fe7 JR |
117 | %description scripts -l pl.UTF-8 |
118 | Skrypty amaroKa pozwalające rozszerzać jego funkcjonalność. | |
cb7dcc83 | 119 | |
86426fe7 | 120 | Więcej o skryptach w amaroKu można dowiedzieć się stąd: |
2fde3dac | 121 | <http://amarok.kde.org/amarokwiki/index.php/Script-Writing_HowTo>. |
cb7dcc83 | 122 | |
3dce540f | 123 | %prep |
d6f0ca1c | 124 | %setup -q |
214a918d | 125 | #%patch0 -p0 |
a74cde9c | 126 | #%patch1 -p0 |
b5eaa586 | 127 | |
3dce540f | 128 | %build |
a74cde9c | 129 | install -d build |
130 | cd build | |
131 | %cmake \ | |
132 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
133 | -DLIB_INSTALL_DIR=%{_libdir} \ | |
50398d35 | 134 | -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \ |
a74cde9c | 135 | %if "%{_lib}" == "lib64" |
136 | -DLIB_SUFFIX=64 \ | |
137 | %endif | |
138 | ../ | |
3dce540f | 139 | |
9a083733 | 140 | %{__make} |
3dce540f | 141 | |
142 | %install | |
143 | rm -rf $RPM_BUILD_ROOT | |
144 | ||
a74cde9c | 145 | %{__make} -C build install \ |
3dce540f | 146 | DESTDIR=$RPM_BUILD_ROOT \ |
bd5fd9cb | 147 | kde_htmldir=%{_kdedocdir} \ |
148 | kde_libs_htmldir=%{_kdedocdir} | |
43342c86 | 149 | |
3248aa1e | 150 | # remove bogus dir |
151 | rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/xx | |
152 | ||
aed7613d | 153 | %find_lang %{name} --with-kde |
3dce540f | 154 | |
155 | %clean | |
156 | rm -rf $RPM_BUILD_ROOT | |
157 | ||
a74cde9c | 158 | %post -p /sbin/ldconfig |
159 | %postun -p /sbin/ldconfig | |
b5eaa586 | 160 | |
aed7613d | 161 | %files -f %{name}.lang |
3dce540f | 162 | %defattr(644,root,root,755) |
2f1d9ab2 | 163 | %doc AUTHORS ChangeLog README |
d4535bda | 164 | %attr(755,root,root) %{_bindir}/amarok |
214a918d | 165 | %attr(755,root,root) %{_bindir}/amarokpkg |
b5eaa586 | 166 | %attr(755,root,root) %{_bindir}/amarokcollectionscanner |
a74cde9c | 167 | %attr(755,root,root) %{_bindir}/amarokmp3tunesharmonydaemon |
168 | %attr(755,root,root) %{_bindir}/amarok_afttagger | |
169 | %attr(755,root,root) %ghost %{_libdir}/libamaroklib.so.? | |
170 | %attr(755,root,root) %{_libdir}/libamaroklib.so.*.*.* | |
a74cde9c | 171 | %attr(755,root,root) %ghost %{_libdir}/libamarokpud.so.? |
172 | %attr(755,root,root) %{_libdir}/libamarokpud.so.*.*.* | |
a74cde9c | 173 | %attr(755,root,root) %{_libdir}/strigi/strigita_audible.so |
174 | %attr(755,root,root) %{_libdir}/strigi/strigita_mp4.so | |
175 | %attr(755,root,root) %{_libdir}/kde4/amarok_containment_vertical.so | |
a74cde9c | 176 | %attr(755,root,root) %{_libdir}/kde4/amarok_context_applet_currenttrack.so |
177 | %attr(755,root,root) %{_libdir}/kde4/amarok_context_applet_lyrics.so | |
a74cde9c | 178 | %attr(755,root,root) %{_libdir}/kde4/amarok_context_applet_wikipedia.so |
179 | %attr(755,root,root) %{_libdir}/kde4/amarok_context_applet_albums.so | |
180 | %attr(755,root,root) %{_libdir}/kde4/amarok_service_opmldirectory.so | |
a74cde9c | 181 | %attr(755,root,root) %{_libdir}/kde4/amarok_data_engine_current.so |
182 | %attr(755,root,root) %{_libdir}/kde4/amarok_data_engine_lyrics.so | |
a74cde9c | 183 | %attr(755,root,root) %{_libdir}/kde4/amarok_data_engine_wikipedia.so |
184 | %attr(755,root,root) %{_libdir}/kde4/amarok_service_ampache.so | |
185 | %attr(755,root,root) %{_libdir}/kde4/amarok_service_jamendo.so | |
186 | %attr(755,root,root) %{_libdir}/kde4/amarok_service_lastfm.so | |
187 | %attr(755,root,root) %{_libdir}/kde4/amarok_service_magnatunestore.so | |
188 | %attr(755,root,root) %{_libdir}/kde4/amarok_service_mp3tunes.so | |
a74cde9c | 189 | %attr(755,root,root) %{_libdir}/kde4/kcm_amarok_service_ampache.so |
190 | %attr(755,root,root) %{_libdir}/kde4/kcm_amarok_service_lastfm.so | |
191 | %attr(755,root,root) %{_libdir}/kde4/kcm_amarok_service_magnatunestore.so | |
192 | %attr(755,root,root) %{_libdir}/kde4/kcm_amarok_service_mp3tunes.so | |
214a918d SP |
193 | %attr(755,root,root) %{_libdir}/kde4/amarok_appletscript_simple_javascript.so |
194 | %attr(755,root,root) %{_libdir}/kde4/amarok_collection-audiocdcollection.so | |
195 | %attr(755,root,root) %{_libdir}/kde4/amarok_collection-daapcollection.so | |
196 | %attr(755,root,root) %{_libdir}/kde4/amarok_collection-ipodcollection.so | |
197 | %attr(755,root,root) %{_libdir}/kde4/amarok_collection-mtpcollection.so | |
198 | %attr(755,root,root) %{_libdir}/kde4/amarok_collection-mysqlecollection.so | |
199 | %attr(755,root,root) %{_libdir}/kde4/amarok_collection-mysqlservercollection.so | |
200 | %attr(755,root,root) %{_libdir}/kde4/amarok_collection-umscollection.so | |
201 | %attr(755,root,root) %{_libdir}/kde4/amarok_context_applet_info.so | |
202 | %attr(755,root,root) %{_libdir}/kde4/amarok_context_applet_photos.so | |
203 | %attr(755,root,root) %{_libdir}/kde4/amarok_context_applet_videoclip.so | |
204 | %attr(755,root,root) %{_libdir}/kde4/amarok_data_engine_info.so | |
205 | %attr(755,root,root) %{_libdir}/kde4/amarok_data_engine_photos.so | |
206 | %attr(755,root,root) %{_libdir}/kde4/amarok_data_engine_videoclip.so | |
207 | %attr(755,root,root) %{_libdir}/kde4/amarok_massstorage-device.so | |
208 | %attr(755,root,root) %{_libdir}/kde4/amarok_runnerscript_javascript.so | |
9d393535 | 209 | %dir %{_datadir}/apps/amarok |
214a918d SP |
210 | %attr(755,root,root) %{_libdir}/libamaroklib.so |
211 | %attr(755,root,root) %{_libdir}/libamarokocsclient.so | |
212 | %attr(755,root,root) %{_libdir}/libamarokocsclient.so.4 | |
213 | %attr(755,root,root) %{_libdir}/libamarokocsclient.so.4.3.0 | |
214 | %attr(755,root,root) %{_libdir}/libamarokpud.so | |
9d393535 | 215 | %dir %{_datadir}/apps/amarok/scripts |
9d393535 ER |
216 | %{_datadir}/apps/amarok/data |
217 | %{_datadir}/apps/amarok/icons | |
218 | %{_datadir}/apps/amarok/images | |
a74cde9c | 219 | %{_datadir}/apps/desktoptheme |
214a918d | 220 | %{_datadir}/apps/solid/actions/amarok-play-audiocd.desktop |
a74cde9c | 221 | %{_datadir}/config.kcfg/amarokconfig.kcfg |
222 | %{_datadir}/config/amarok.knsrc | |
214a918d | 223 | %{_datadir}/config/amarokapplets.knsrc |
a74cde9c | 224 | %{_datadir}/dbus-1/interfaces/org.freedesktop.MediaPlayer.player.xml |
225 | %{_datadir}/dbus-1/interfaces/org.freedesktop.MediaPlayer.root.xml | |
226 | %{_datadir}/dbus-1/interfaces/org.freedesktop.MediaPlayer.tracklist.xml | |
214a918d SP |
227 | %{_datadir}/dbus-1/interfaces/org.kde.amarok.Collection.xml |
228 | %{_datadir}/dbus-1/interfaces/org.kde.amarok.SqlCollection.xml | |
a74cde9c | 229 | %{_datadir}/kde4/services/amarok.protocol |
230 | %{_datadir}/kde4/services/amaroklastfm.protocol | |
231 | %{_datadir}/kde4/services/ServiceMenus/amarok_append.desktop | |
232 | %{_datadir}/kde4/services/amarok-containment-vertical.desktop | |
a74cde9c | 233 | %{_datadir}/kde4/services/amarok-context-applet-currenttrack.desktop |
234 | %{_datadir}/kde4/services/amarok-context-applet-lyrics.desktop | |
a74cde9c | 235 | %{_datadir}/kde4/services/amarok-context-applet-wikipedia.desktop |
a74cde9c | 236 | %{_datadir}/kde4/services/amarok_collection-mtpcollection.desktop |
237 | %{_datadir}/kde4/services/amarok-data-engine-current.desktop | |
238 | %{_datadir}/kde4/services/amarok-data-engine-lyrics.desktop | |
a74cde9c | 239 | %{_datadir}/kde4/services/amarok-data-engine-wikipedia.desktop |
240 | %{_datadir}/kde4/services/amarok_collection-daapcollection.desktop | |
a74cde9c | 241 | %{_datadir}/kde4/services/amarok_service_ampache.desktop |
242 | %{_datadir}/kde4/services/amarok_service_ampache_config.desktop | |
243 | %{_datadir}/kde4/services/amarok_service_jamendo.desktop | |
244 | %{_datadir}/kde4/services/amarok_service_lastfm.desktop | |
245 | %{_datadir}/kde4/services/amarok_service_lastfm_config.desktop | |
246 | %{_datadir}/kde4/services/amarok_service_magnatunestore.desktop | |
247 | %{_datadir}/kde4/services/amarok_service_magnatunestore_config.desktop | |
248 | %{_datadir}/kde4/services/amarok_service_mp3tunes.desktop | |
249 | %{_datadir}/kde4/services/amarok_service_mp3tunes_config.desktop | |
a74cde9c | 250 | %{_datadir}/kde4/services/amarok-context-applet-albums.desktop |
251 | %{_datadir}/kde4/services/amarok_collection-ipodcollection.desktop | |
252 | %{_datadir}/kde4/services/amarok_massstorage-device.desktop | |
253 | %{_datadir}/kde4/services/amarok_service_opmldirectory.desktop | |
214a918d SP |
254 | %{_datadir}/kde4/services/amarok-context-applet-info.desktop |
255 | %{_datadir}/kde4/services/amarok-context-applet-photos.desktop | |
256 | %{_datadir}/kde4/services/amarok-context-applet-videoclip.desktop | |
257 | %{_datadir}/kde4/services/amarok-data-engine-info.desktop | |
258 | %{_datadir}/kde4/services/amarok-data-engine-photos.desktop | |
259 | %{_datadir}/kde4/services/amarok-data-engine-videoclip.desktop | |
260 | %{_datadir}/kde4/services/amarok-scriptengine-applet-simple-javascript.desktop | |
261 | %{_datadir}/kde4/services/amarok-scriptengine-runner-javascript.desktop | |
262 | %{_datadir}/kde4/services/amarok_collection-audiocdcollection.desktop | |
263 | %{_datadir}/kde4/services/amarok_collection-mysqlecollection.desktop | |
264 | %{_datadir}/kde4/services/amarok_collection-mysqlservercollection.desktop | |
265 | %{_datadir}/kde4/services/amarok_collection-umscollection.desktop | |
a74cde9c | 266 | %{_datadir}/kde4/servicetypes/amarok_context_applet.desktop |
267 | %{_datadir}/kde4/servicetypes/amarok_data_engine.desktop | |
268 | %{_datadir}/kde4/servicetypes/amarok_plugin.desktop | |
269 | %{_datadir}/kde4/servicetypes/amarok_codecinstall.desktop | |
270 | %{_desktopdir}/kde4/amarok.desktop | |
60b883ee | 271 | %{_iconsdir}/*/*/apps/amarok.* |
a74cde9c | 272 | %{_datadir}/config/amarok_homerc |
9d393535 ER |
273 | |
274 | %files scripts | |
275 | %defattr(644,root,root,755) | |
a74cde9c | 276 | %dir %{_datadir}/apps/amarok/scripts/radio_station_service |
277 | %{_datadir}/apps/amarok/scripts/radio_station_service/main.js | |
278 | %{_datadir}/apps/amarok/scripts/radio_station_service/script.spec | |
279 | %dir %{_datadir}/apps/amarok/scripts/script_console | |
280 | %{_datadir}/apps/amarok/scripts/script_console/main.js | |
281 | %{_datadir}/apps/amarok/scripts/script_console/script.spec | |
282 | %dir %{_datadir}/apps/amarok/scripts/lyrics_lyricwiki | |
283 | %{_datadir}/apps/amarok/scripts/lyrics_lyricwiki/main.js | |
284 | %{_datadir}/apps/amarok/scripts/lyrics_lyricwiki/script.spec | |
285 | %dir %{_datadir}/apps/amarok/scripts/librivox_service | |
286 | %{_datadir}/apps/amarok/scripts/librivox_service/main.js | |
287 | %{_datadir}/apps/amarok/scripts/librivox_service/LibrivoxLogo.png | |
214a918d | 288 | %{_datadir}/apps/amarok/scripts/librivox_service/LibrivoxScalableEmblem.svgz |
a74cde9c | 289 | %{_datadir}/apps/amarok/scripts/librivox_service/LibrivoxService.html |
290 | %{_datadir}/apps/amarok/scripts/librivox_service/script.spec | |
aed7613d | 291 | %{_datadir}/apps/amarok/scripts/librivox_service/LibrivoxEmblem.png |
292 | %{_datadir}/apps/amarok/scripts/librivox_service/LibrivoxIcon.png | |
293 | %{_datadir}/apps/amarok/scripts/librivox_service/audio_book128.png |