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