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