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