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