]>
Commit | Line | Data |
---|---|---|
a74cde9c | 1 | # TODO |
2 | # - try not to link with static mysql | |
3 | ||
4 | %define state stable | |
5 | %define qtver 4.5.0 | |
b5eaa586 | 6 | |
3dce540f | 7 | Summary: A KDE audio player |
78ae220a | 8 | Summary(pl.UTF-8): Odtwarzacz audio dla KDE |
3dce540f | 9 | Name: amarok |
f4cb2505 | 10 | Version: 2.1.1 |
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 |
f4cb2505 | 15 | # Source0-md5: c4ebec02fd1e8b3ef0d7a041726e6780 |
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 | |
41 | BuildRequires: libmtp-devel >= 0.3.0 | |
42 | BuildRequires: libnjb-devel >= 2.2.4 | |
62f70c2c | 43 | BuildRequires: libvisual-devel >= 0.4.0 |
a74cde9c | 44 | BuildRequires: loudmouth-devel |
6d11e954 | 45 | BuildRequires: mpeg4ip-devel >= 1:1.6 |
a74cde9c | 46 | BuildRequires: mysql-devel >= 5.1.31-3 |
6fc2033f | 47 | BuildRequires: pcre-devel |
f0306acf | 48 | BuildRequires: pkgconfig |
a74cde9c | 49 | BuildRequires: qt4-build >= %{qtver} |
50 | BuildRequires: qt4-qmake >= %{qtver} | |
51 | BuildRequires: qtscriptbindings | |
532341d1 | 52 | BuildRequires: rpm-pythonprov |
baa5dbe4 | 53 | BuildRequires: rpmbuild(macros) >= 1.129 |
a74cde9c | 54 | BuildRequires: soprano-devel >= 2.1 |
55 | BuildRequires: strigi-devel >= 0.5.10 | |
56 | BuildRequires: taglib-devel | |
57 | BuildRequires: taglib-extras-devel >= 0.1 | |
58 | BuildRequires: utempter-devel | |
59 | BuildRequires: xorg-lib-libXpm-devel | |
60 | Requires(post,postun): /sbin/ldconfig | |
61 | Requires: kde4-kdebase-core | |
62 | Requires: kde4-kdemultimedia-audiocd | |
63 | Requires: kde4-phonon | |
64 | Requires: qtscriptbindings | |
8028f5c0 PG |
65 | Suggests: libvisual-plugin-actor-JESS |
66 | Suggests: libvisual-plugin-actor-bumpscope | |
67 | Suggests: libvisual-plugin-actor-corona | |
68 | Suggests: libvisual-plugin-actor-flower | |
69 | Suggests: libvisual-plugin-actor-gdkpixbuf | |
70 | Suggests: libvisual-plugin-actor-gforce | |
a74cde9c | 71 | Suggests: libvisual-plugin-actor-gstreamer |
8028f5c0 PG |
72 | Suggests: libvisual-plugin-actor-infinite |
73 | Suggests: libvisual-plugin-actor-jakdaw | |
74 | Suggests: libvisual-plugin-actor-lv_analyzer | |
75 | Suggests: libvisual-plugin-actor-lv_gltest | |
76 | Suggests: libvisual-plugin-actor-lv_scope | |
77 | Suggests: libvisual-plugin-actor-madspin | |
78 | Suggests: libvisual-plugin-actor-nastyfft | |
79 | Suggests: libvisual-plugin-actor-oinksie | |
80 | Suggests: libvisual-plugin-input-alsa | |
81 | Suggests: libvisual-plugin-input-esd | |
82 | Suggests: libvisual-plugin-input-jack | |
83 | Suggests: libvisual-plugin-input-mplayer | |
84 | Suggests: libvisual-plugin-morph-alphablend | |
85 | Suggests: libvisual-plugin-morph-flash | |
86 | Suggests: libvisual-plugin-morph-slide | |
87 | Suggests: libvisual-plugin-morph-tentacle | |
86666641 | 88 | Obsoletes: amarok-arts |
1581e7f4 | 89 | Obsoletes: amarok-xmms |
a74cde9c | 90 | # It should require mysql-embeded |
91 | Requires: mysql >= 5.1.31-3 | |
92 | Conflicts: mysql < 5.1.31-3 | |
3be5e8cd | 93 | # sr@Latn vs. sr@latin |
94 | Conflicts: glibc-misc < 6:2.7 | |
3dce540f | 95 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
96 | ||
97 | %description | |
98 | A KDE audio player. | |
99 | ||
86426fe7 | 100 | %description -l pl.UTF-8 |
3dce540f | 101 | Odtwarzacz audio dla KDE. |
102 | ||
9d393535 ER |
103 | %package scripts |
104 | Summary: amaroK scripts | |
78ae220a | 105 | Summary(pl.UTF-8): Skrypty amaroKa |
9d393535 ER |
106 | Group: X11/Applications/Multimedia |
107 | Requires: %{name} = %{version}-%{release} | |
a74cde9c | 108 | Requires: kde4-kdebase-kdialog |
9d393535 ER |
109 | |
110 | %description scripts | |
111 | amaroK scripts allow you extend amaroK functionality. | |
112 | ||
113 | You can learn more about scripts in amaroK from here: | |
2fde3dac | 114 | <http://amarok.kde.org/amarokwiki/index.php/Script-Writing_HowTo>. |
9d393535 | 115 | |
86426fe7 JR |
116 | %description scripts -l pl.UTF-8 |
117 | Skrypty amaroKa pozwalające rozszerzać jego funkcjonalność. | |
cb7dcc83 | 118 | |
86426fe7 | 119 | Więcej o skryptach w amaroKu można dowiedzieć się stąd: |
2fde3dac | 120 | <http://amarok.kde.org/amarokwiki/index.php/Script-Writing_HowTo>. |
cb7dcc83 | 121 | |
3dce540f | 122 | %prep |
d6f0ca1c | 123 | %setup -q |
a74cde9c | 124 | %patch0 -p0 |
125 | #%patch1 -p0 | |
b5eaa586 | 126 | |
3dce540f | 127 | %build |
a74cde9c | 128 | install -d build |
129 | cd build | |
130 | %cmake \ | |
131 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
132 | -DLIB_INSTALL_DIR=%{_libdir} \ | |
133 | -DCMAKE_BUILD_TYPE=%{!?debug:release}%{?debug:debug} \ | |
134 | %if "%{_lib}" == "lib64" | |
135 | -DLIB_SUFFIX=64 \ | |
136 | %endif | |
137 | ../ | |
3dce540f | 138 | |
9a083733 | 139 | %{__make} |
3dce540f | 140 | |
141 | %install | |
142 | rm -rf $RPM_BUILD_ROOT | |
143 | ||
a74cde9c | 144 | %{__make} -C build install \ |
3dce540f | 145 | DESTDIR=$RPM_BUILD_ROOT \ |
bd5fd9cb | 146 | kde_htmldir=%{_kdedocdir} \ |
147 | kde_libs_htmldir=%{_kdedocdir} | |
43342c86 | 148 | |
3248aa1e | 149 | # remove bogus dir |
150 | rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/xx | |
151 | ||
aed7613d | 152 | %find_lang %{name} --with-kde |
3dce540f | 153 | |
154 | %clean | |
155 | rm -rf $RPM_BUILD_ROOT | |
156 | ||
a74cde9c | 157 | %post -p /sbin/ldconfig |
158 | %postun -p /sbin/ldconfig | |
b5eaa586 | 159 | |
aed7613d | 160 | %files -f %{name}.lang |
3dce540f | 161 | %defattr(644,root,root,755) |
2f1d9ab2 | 162 | %doc AUTHORS ChangeLog README |
d4535bda | 163 | %attr(755,root,root) %{_bindir}/amarok |
b5eaa586 | 164 | %attr(755,root,root) %{_bindir}/amarokcollectionscanner |
a74cde9c | 165 | %attr(755,root,root) %{_bindir}/amarokmp3tunesharmonydaemon |
166 | %attr(755,root,root) %{_bindir}/amarok_afttagger | |
167 | %attr(755,root,root) %ghost %{_libdir}/libamaroklib.so.? | |
168 | %attr(755,root,root) %{_libdir}/libamaroklib.so.*.*.* | |
a74cde9c | 169 | %attr(755,root,root) %ghost %{_libdir}/libamarokpud.so.? |
170 | %attr(755,root,root) %{_libdir}/libamarokpud.so.*.*.* | |
171 | %attr(755,root,root) %ghost %{_libdir}/libmediadevicelib.so.? | |
172 | %attr(755,root,root) %{_libdir}/libmediadevicelib.so.*.*.* | |
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 | |
176 | %attr(755,root,root) %{_libdir}/kde4/amarok_context_applet_bookmark.so | |
177 | %attr(755,root,root) %{_libdir}/kde4/amarok_context_applet_currenttrack.so | |
178 | %attr(755,root,root) %{_libdir}/kde4/amarok_context_applet_lyrics.so | |
179 | %attr(755,root,root) %{_libdir}/kde4/amarok_context_applet_serviceinfo.so | |
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 | |
183 | %attr(755,root,root) %{_libdir}/kde4/libamarok_collection-ipodcollection.so | |
184 | %attr(755,root,root) %{_libdir}/kde4/amarok_data_engine_current.so | |
185 | %attr(755,root,root) %{_libdir}/kde4/amarok_data_engine_lyrics.so | |
186 | %attr(755,root,root) %{_libdir}/kde4/amarok_data_engine_service.so | |
187 | %attr(755,root,root) %{_libdir}/kde4/amarok_data_engine_wikipedia.so | |
188 | %attr(755,root,root) %{_libdir}/kde4/amarok_service_ampache.so | |
189 | %attr(755,root,root) %{_libdir}/kde4/amarok_service_jamendo.so | |
190 | %attr(755,root,root) %{_libdir}/kde4/amarok_service_lastfm.so | |
191 | %attr(755,root,root) %{_libdir}/kde4/amarok_service_magnatunestore.so | |
192 | %attr(755,root,root) %{_libdir}/kde4/amarok_service_mp3tunes.so | |
193 | %attr(755,root,root) %{_libdir}/kde4/amarok_service_shoutcast.so | |
194 | %attr(755,root,root) %{_libdir}/kde4/kcm_amarok_service_ampache.so | |
195 | %attr(755,root,root) %{_libdir}/kde4/kcm_amarok_service_lastfm.so | |
196 | %attr(755,root,root) %{_libdir}/kde4/kcm_amarok_service_magnatunestore.so | |
197 | %attr(755,root,root) %{_libdir}/kde4/kcm_amarok_service_mp3tunes.so | |
198 | %attr(755,root,root) %{_libdir}/kde4/libamarok_collection-daapcollection.so | |
199 | %attr(755,root,root) %{_libdir}/kde4/libamarok_collection-sqlcollection.so | |
200 | %attr(755,root,root) %{_libdir}/kde4/amarok_context_applet_mediadevices.so | |
201 | %attr(755,root,root) %{_libdir}/kde4/libamarok_collection-mtpcollection.so | |
202 | %attr(755,root,root) %{_libdir}/kde4/libamarok_massstorage-device.so | |
203 | %attr(755,root,root) %{_libdir}/libamarok_service_liblastfm.so | |
9d393535 ER |
204 | %dir %{_datadir}/apps/amarok |
205 | %dir %{_datadir}/apps/amarok/scripts | |
9d393535 ER |
206 | %{_datadir}/apps/amarok/data |
207 | %{_datadir}/apps/amarok/icons | |
208 | %{_datadir}/apps/amarok/images | |
a74cde9c | 209 | %{_datadir}/apps/desktoptheme |
210 | %{_datadir}/config.kcfg/amarokconfig.kcfg | |
211 | %{_datadir}/config/amarok.knsrc | |
212 | %{_datadir}/dbus-1/interfaces/org.freedesktop.MediaPlayer.player.xml | |
213 | %{_datadir}/dbus-1/interfaces/org.freedesktop.MediaPlayer.root.xml | |
214 | %{_datadir}/dbus-1/interfaces/org.freedesktop.MediaPlayer.tracklist.xml | |
215 | %{_datadir}/kde4/services/amarok.protocol | |
216 | %{_datadir}/kde4/services/amaroklastfm.protocol | |
217 | %{_datadir}/kde4/services/ServiceMenus/amarok_append.desktop | |
218 | %{_datadir}/kde4/services/amarok-containment-vertical.desktop | |
219 | %{_datadir}/kde4/services/amarok-context-applet-bookmark.desktop | |
220 | %{_datadir}/kde4/services/amarok-context-applet-currenttrack.desktop | |
221 | %{_datadir}/kde4/services/amarok-context-applet-lyrics.desktop | |
222 | %{_datadir}/kde4/services/amarok-context-applet-serviceinfo.desktop | |
223 | %{_datadir}/kde4/services/amarok-context-applet-wikipedia.desktop | |
224 | %{_datadir}/kde4/services/amarok-context-applet-mediadevices.desktop | |
225 | %{_datadir}/kde4/services/amarok_collection-mtpcollection.desktop | |
226 | %{_datadir}/kde4/services/amarok-data-engine-current.desktop | |
227 | %{_datadir}/kde4/services/amarok-data-engine-lyrics.desktop | |
228 | %{_datadir}/kde4/services/amarok-data-engine-service.desktop | |
229 | %{_datadir}/kde4/services/amarok-data-engine-wikipedia.desktop | |
230 | %{_datadir}/kde4/services/amarok_collection-daapcollection.desktop | |
231 | %{_datadir}/kde4/services/amarok_collection-sqlcollection.desktop | |
232 | %{_datadir}/kde4/services/amarok_service_ampache.desktop | |
233 | %{_datadir}/kde4/services/amarok_service_ampache_config.desktop | |
234 | %{_datadir}/kde4/services/amarok_service_jamendo.desktop | |
235 | %{_datadir}/kde4/services/amarok_service_lastfm.desktop | |
236 | %{_datadir}/kde4/services/amarok_service_lastfm_config.desktop | |
237 | %{_datadir}/kde4/services/amarok_service_magnatunestore.desktop | |
238 | %{_datadir}/kde4/services/amarok_service_magnatunestore_config.desktop | |
239 | %{_datadir}/kde4/services/amarok_service_mp3tunes.desktop | |
240 | %{_datadir}/kde4/services/amarok_service_mp3tunes_config.desktop | |
241 | %{_datadir}/kde4/services/amarok_service_shoutcast.desktop | |
242 | %{_datadir}/kde4/services/amarok-context-applet-albums.desktop | |
243 | %{_datadir}/kde4/services/amarok_collection-ipodcollection.desktop | |
244 | %{_datadir}/kde4/services/amarok_massstorage-device.desktop | |
245 | %{_datadir}/kde4/services/amarok_service_opmldirectory.desktop | |
246 | %{_datadir}/kde4/servicetypes/amarok_context_applet.desktop | |
247 | %{_datadir}/kde4/servicetypes/amarok_data_engine.desktop | |
248 | %{_datadir}/kde4/servicetypes/amarok_plugin.desktop | |
249 | %{_datadir}/kde4/servicetypes/amarok_codecinstall.desktop | |
250 | %{_desktopdir}/kde4/amarok.desktop | |
60b883ee | 251 | %{_iconsdir}/*/*/apps/amarok.* |
a74cde9c | 252 | %{_datadir}/config/amarok_homerc |
9d393535 ER |
253 | |
254 | %files scripts | |
255 | %defattr(644,root,root,755) | |
a74cde9c | 256 | %dir %{_datadir}/apps/amarok/scripts/radio_station_service |
257 | %{_datadir}/apps/amarok/scripts/radio_station_service/main.js | |
258 | %{_datadir}/apps/amarok/scripts/radio_station_service/script.spec | |
259 | %dir %{_datadir}/apps/amarok/scripts/script_console | |
260 | %{_datadir}/apps/amarok/scripts/script_console/main.js | |
261 | %{_datadir}/apps/amarok/scripts/script_console/script.spec | |
262 | %dir %{_datadir}/apps/amarok/scripts/lyrics_lyricwiki | |
263 | %{_datadir}/apps/amarok/scripts/lyrics_lyricwiki/main.js | |
264 | %{_datadir}/apps/amarok/scripts/lyrics_lyricwiki/script.spec | |
265 | %dir %{_datadir}/apps/amarok/scripts/librivox_service | |
266 | %{_datadir}/apps/amarok/scripts/librivox_service/main.js | |
267 | %{_datadir}/apps/amarok/scripts/librivox_service/LibrivoxLogo.png | |
268 | %{_datadir}/apps/amarok/scripts/librivox_service/LibrivoxService.html | |
269 | %{_datadir}/apps/amarok/scripts/librivox_service/script.spec | |
aed7613d | 270 | %{_datadir}/apps/amarok/scripts/librivox_service/LibrivoxEmblem.png |
271 | %{_datadir}/apps/amarok/scripts/librivox_service/LibrivoxIcon.png | |
272 | %{_datadir}/apps/amarok/scripts/librivox_service/audio_book128.png |