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