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