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