1 |
# |
2 |
# Please do not update/rebuild/touch this package before asking first |
3 |
# neoclust and/or daviddavid |
4 |
# This package is part of the KDE Stack. |
5 |
# |
6 |
|
7 |
Name: amarok |
8 |
Summary: The powerful media player for KDE |
9 |
Epoch: 3 |
10 |
Version: 2.9.82 |
11 |
Release: %mkrel 1 |
12 |
License: GPLv2 and LGPLv2 and GFDL |
13 |
Group: Sound/Players |
14 |
Url: https://amarok.kde.org/ |
15 |
Source0: https://download.kde.org/unstable/%{name}/%{version}/%{name}-%{version}.tar.xz |
16 |
|
17 |
## Mageia patches (100->199) |
18 |
Patch100: amarok-2.9.70-amarokpud-soversion.patch |
19 |
|
20 |
BuildRequires: kf5-rpm-macros |
21 |
|
22 |
BuildRequires: pkgconfig(Qt5Concurrent) |
23 |
BuildRequires: pkgconfig(Qt5Core) |
24 |
BuildRequires: pkgconfig(Qt5DBus) |
25 |
BuildRequires: pkgconfig(Qt5Gui) |
26 |
BuildRequires: pkgconfig(Qt5Help) |
27 |
BuildRequires: pkgconfig(Qt5Network) |
28 |
BuildRequires: pkgconfig(Qt5QuickControls2) |
29 |
BuildRequires: pkgconfig(Qt5QuickWidgets) |
30 |
BuildRequires: pkgconfig(Qt5Qml) |
31 |
BuildRequires: pkgconfig(Qt5Sql) |
32 |
BuildRequires: pkgconfig(Qt5Svg) |
33 |
BuildRequires: pkgconfig(Qt5Test) |
34 |
BuildRequires: pkgconfig(Qt5UiTools) |
35 |
BuildRequires: pkgconfig(Qt5WebEngine) |
36 |
BuildRequires: pkgconfig(Qt5Widgets) |
37 |
BuildRequires: pkgconfig(Qt5Xml) |
38 |
|
39 |
BuildRequires: cmake(KF5Archive) |
40 |
BuildRequires: cmake(KF5Attica) |
41 |
BuildRequires: cmake(KF5Codecs) |
42 |
BuildRequires: cmake(KF5Config) |
43 |
BuildRequires: cmake(KF5ConfigWidgets) |
44 |
BuildRequires: cmake(KF5CoreAddons) |
45 |
BuildRequires: cmake(KF5Crash) |
46 |
BuildRequires: cmake(KF5DBusAddons) |
47 |
BuildRequires: cmake(KF5Declarative) |
48 |
BuildRequires: cmake(KF5DNSSD) |
49 |
BuildRequires: cmake(KF5DocTools) |
50 |
BuildRequires: cmake(KF5GlobalAccel) |
51 |
BuildRequires: cmake(KF5GuiAddons) |
52 |
BuildRequires: cmake(KF5I18n) |
53 |
BuildRequires: cmake(KF5IconThemes) |
54 |
BuildRequires: cmake(KF5KCMUtils) |
55 |
BuildRequires: cmake(KF5KIO) |
56 |
BuildRequires: cmake(KF5NewStuff) |
57 |
BuildRequires: cmake(KF5Notifications) |
58 |
BuildRequires: cmake(KF5Package) |
59 |
BuildRequires: cmake(KF5Solid) |
60 |
BuildRequires: cmake(KF5TextEditor) |
61 |
BuildRequires: cmake(KF5ThreadWeaver) |
62 |
BuildRequires: cmake(KF5WidgetsAddons) |
63 |
BuildRequires: cmake(KF5WindowSystem) |
64 |
BuildRequires: cmake(KF5Kirigami2) |
65 |
BuildRequires: cmake(KF5Wallet) |
66 |
|
67 |
BuildRequires: pkgconfig(fftw3) |
68 |
BuildRequires: pkgconfig(glib-2.0) |
69 |
BuildRequires: pkgconfig(gobject-2.0) |
70 |
BuildRequires: pkgconfig(libavcodec) |
71 |
BuildRequires: pkgconfig(libcurl) |
72 |
BuildRequires: pkgconfig(libgpod-1.0) >= 0.8.2 |
73 |
BuildRequires: pkgconfig(libofa) |
74 |
BuildRequires: pkgconfig(libmtp) >= 1.0.0 |
75 |
BuildRequires: pkgconfig(libmygpo-qt5) |
76 |
BuildRequires: pkgconfig(libxml-2.0) |
77 |
BuildRequires: pkgconfig(loudmouth-1.0) |
78 |
BuildRequires: pkgconfig(openssl) |
79 |
BuildRequires: pkgconfig(phonon4qt5) |
80 |
BuildRequires: pkgconfig(taglib) >= 1.12 |
81 |
BuildRequires: pkgconfig(taglib-extras) >= 1.0.1 |
82 |
BuildRequires: pkgconfig(gmock) |
83 |
BuildRequires: pkgconfig(zlib) |
84 |
BuildRequires: liblastfm-qt5-devel |
85 |
BuildRequires: mysql-devel |
86 |
BuildRequires: mysql-embedded-devel |
87 |
|
88 |
Requires: mysql-common-core |
89 |
Recommends: audiocd-kio |
90 |
Requires: amarok-utils = %{epoch}:%{version}-%{release} |
91 |
Requires: mariadb-embedded |
92 |
Requires: kf5-kirigami2 |
93 |
Requires: qtquickcontrols2 |
94 |
Recommends: amarok-handbook |
95 |
Recommends: ifuse |
96 |
Recommends: kio-extras-kf5 |
97 |
# Allow transcoding |
98 |
Recommends: ffmpeg |
99 |
|
100 |
%description |
101 |
There are many media players around these days, it's true. What's missing |
102 |
from most players is a user interface that doesn't get in the way of the |
103 |
user. How many buttons do you have to press for simply adding some new |
104 |
tracks to the playlist? Amarok tries to be a little different, providing |
105 |
a simple drag and drop interface that really makes playlist handling easy. |
106 |
|
107 |
Feature Overview |
108 |
================= |
109 |
|
110 |
* Quick and simple drag and drop playlist creation |
111 |
* Music library |
112 |
* Cross platform: Support for Unix, MacOS X and Windows |
113 |
* Plays all audio formats known to man |
114 |
* Cover art download using Last.fm services |
115 |
* Automatic play-statistics generation (iRate style) |
116 |
* Full lyrics download |
117 |
* Learn about your music with integrated Wikipedia |
118 |
* Full Last.fm support |
119 |
* gpodder.net support |
120 |
* Configurable on screen display for track changes |
121 |
* Podcast support |
122 |
* iPod support, as well as other media players |
123 |
* Powerful scripting interface |
124 |
* Integration with Plasma and KDE Applications |
125 |
* Integration with multiple web sources including Magnatune, Jamendo, |
126 |
Ampache, MP3tunes, and others. |
127 |
|
128 |
%files -f %{name}.lang |
129 |
%{_kf5_sysconfdir}/xdg/amarok_homerc |
130 |
%{_kf5_bindir}/amarok |
131 |
%{_kf5_bindir}/amarokpkg |
132 |
%{_qt5_plugindir}/amarok*.so |
133 |
%{_qt5_plugindir}/kcm_amarok*.so |
134 |
%{_kf5_qmldir}/org/kde/amarok/ |
135 |
%{_kf5_libdir}/libampache_account_login.so |
136 |
%{_kf5_libdir}/libgpodder_service_config.so |
137 |
%{_kf5_libdir}/libamarok_service_lastfm_config.so |
138 |
%{_kf5_applicationsdir}/org.kde.amarok.desktop |
139 |
%{_kf5_applicationsdir}/org.kde.amarok_containers.desktop |
140 |
%{_kf5_metainfodir}/org.kde.%{name}*.appdata.xml |
141 |
%{_kf5_datadir}/config.kcfg/amarokconfig.kcfg |
142 |
%{_kf5_knotificationsdir}/amarok.notifyrc |
143 |
%{_kf5_datadir}/amarok/ |
144 |
%{_kf5_datadir}/dbus-1/services/org.kde.amarok.service |
145 |
%{_kf5_datadir}/kpackage/amarok/ |
146 |
%{_kf5_datadir}/kpackage/genericqml/org.kde.amarok.context/ |
147 |
%{_kf5_datadir}/solid/actions/amarok-play-audiocd.desktop |
148 |
%{_kf5_datadir}/kconf_update/amarok-2.4.1-tokens_syntax_update.pl |
149 |
%{_kf5_datadir}/kconf_update/amarok.upd |
150 |
%{_kf5_datadir}/knsrcfiles/amarok.knsrc |
151 |
%{_kf5_services}/ServiceMenus/amarok_append.desktop |
152 |
%{_kf5_services}/amarok*.protocol |
153 |
%{_kf5_services}/amarok*.desktop |
154 |
%{_kf5_servicetypes}/amarok*.desktop |
155 |
%{_kf5_iconsdir}/hicolor/*/*/amarok.png |
156 |
%{_kf5_datadir}/dbus-1/interfaces/*.xml |
157 |
|
158 |
#-------------------------------------------------------------------- |
159 |
|
160 |
%package utils |
161 |
Summary: Utilities for amarok |
162 |
Group: Graphical desktop/KDE |
163 |
URL: https://community.kde.org/Amarok/Development/BatchMode |
164 |
|
165 |
%description utils |
166 |
Utilities for amarok |
167 |
This package provides two utilities for amarok amarokcollectionscanner |
168 |
(https://community.kde.org/Amarok/Development/BatchMode) |
169 |
This utility can be used to scan your collection without amarok installed |
170 |
amarok_afttagger (https://community.kde.org/Amarok/Development/AFT) |
171 |
This utility allows editing/removing AFT tags. |
172 |
|
173 |
%files utils -f amarokcollectionscanner_qt.lang |
174 |
%{_kf5_bindir}/amarokcollectionscanner |
175 |
%{_kf5_bindir}/amarok_afttagger |
176 |
|
177 |
#-------------------------------------------------------------------- |
178 |
|
179 |
%package handbook |
180 |
Summary: Amarok Handbook |
181 |
BuildArch: noarch |
182 |
|
183 |
%description handbook |
184 |
This package provides Amarok Handbook. |
185 |
|
186 |
%files handbook -f amarok-doc.lang |
187 |
%doc COPYING COPYING.LIB COPYING.DOC AUTHORS README |
188 |
|
189 |
#------------------------------------------------ |
190 |
|
191 |
%define libamaroklib_major 1 |
192 |
%define libamaroklib %mklibname amaroklib %{libamaroklib_major} |
193 |
|
194 |
%package -n %{libamaroklib} |
195 |
Summary: Amarok 2 Lib library |
196 |
Group: System/Libraries |
197 |
|
198 |
%description -n %{libamaroklib} |
199 |
Amarok 2 Lib library. |
200 |
|
201 |
%files -n %{libamaroklib} |
202 |
%{_kf5_libdir}/libamaroklib.so.%{libamaroklib_major}{,.*} |
203 |
|
204 |
#------------------------------------------------ |
205 |
|
206 |
%define libamarokcore_major 1 |
207 |
%define libamarokcore %mklibname amarokcore %{libamarokcore_major} |
208 |
|
209 |
%package -n %{libamarokcore} |
210 |
Summary: Amarok 2 Core library |
211 |
Group: System/Libraries |
212 |
|
213 |
%description -n %{libamarokcore} |
214 |
Amarok 2 Core library. |
215 |
|
216 |
%files -n %{libamarokcore} |
217 |
%{_kf5_libdir}/libamarokcore.so.%{libamarokcore_major}{,.*} |
218 |
|
219 |
#------------------------------------------------ |
220 |
|
221 |
%define libamarokpud_major 1 |
222 |
%define libamarokpud %mklibname amarokpud %{libamarokpud_major} |
223 |
|
224 |
%package -n %{libamarokpud} |
225 |
Summary: Amarok 2 Pud library |
226 |
Group: System/Libraries |
227 |
|
228 |
%description -n %{libamarokpud} |
229 |
Amarok 2 Pud library. |
230 |
|
231 |
%files -n %{libamarokpud} |
232 |
%{_kf5_libdir}/libamarokpud.so.%{libamarokpud_major}{,.*} |
233 |
|
234 |
#------------------------------------------------ |
235 |
|
236 |
%define libamaroksqlcollection_major 1 |
237 |
%define libamaroksqlcollection %mklibname amarok-sqlcollection %{libamaroksqlcollection_major} |
238 |
|
239 |
%package -n %{libamaroksqlcollection} |
240 |
Summary: Amarok 2 Sqlcollection library |
241 |
Group: System/Libraries |
242 |
|
243 |
%description -n %{libamaroksqlcollection} |
244 |
Amarok 2 Sqlcollection library. |
245 |
|
246 |
%files -n %{libamaroksqlcollection} |
247 |
%{_kf5_libdir}/libamarok-sqlcollection.so.%{libamaroksqlcollection_major}{,.*} |
248 |
|
249 |
#------------------------------------------------ |
250 |
|
251 |
%define libamaroktranscoding_major 1 |
252 |
%define libamaroktranscoding %mklibname amarok-transcoding %{libamaroktranscoding_major} |
253 |
|
254 |
%package -n %{libamaroktranscoding} |
255 |
Summary: Amarok 2 Transcoding library |
256 |
Group: System/Libraries |
257 |
|
258 |
%description -n %{libamaroktranscoding} |
259 |
Amarok 2 Transcoding library. |
260 |
|
261 |
%files -n %{libamaroktranscoding} |
262 |
%{_kf5_libdir}/libamarok-transcoding.so.%{libamaroktranscoding_major}{,.*} |
263 |
|
264 |
#------------------------------------------------ |
265 |
|
266 |
%define libamarokshared_major 1 |
267 |
%define libamarokshared %mklibname amarokshared %{libamarokshared_major} |
268 |
|
269 |
%package -n %{libamarokshared} |
270 |
Summary: Amarok 2 Shared library |
271 |
Group: System/Libraries |
272 |
|
273 |
%description -n %{libamarokshared} |
274 |
Amarok 2 Shared library. |
275 |
|
276 |
%files -n %{libamarokshared} |
277 |
%{_kf5_libdir}/libamarokshared.so.%{libamarokshared_major}{,.*} |
278 |
|
279 |
#------------------------------------------------ |
280 |
|
281 |
%define develname %mklibname %{name} -d |
282 |
|
283 |
%package -n %{develname} |
284 |
Summary: Headers of %{name} for development |
285 |
Group: Development/KDE and Qt |
286 |
Requires: %{libamaroklib} = %{epoch}:%{version}-%{release} |
287 |
Requires: %{libamarokcore} = %{epoch}:%{version}-%{release} |
288 |
Requires: %{libamarokpud} = %{epoch}:%{version}-%{release} |
289 |
Requires: %{libamaroksqlcollection} = %{epoch}:%{version}-%{release} |
290 |
Requires: %{libamaroktranscoding} = %{epoch}:%{version}-%{release} |
291 |
Requires: %{libamarokshared} = %{epoch}:%{version}-%{release} |
292 |
Provides: %{name}-devel = %{epoch}:%{version}-%{release} |
293 |
|
294 |
%description -n %{develname} |
295 |
Headers of %{name} for development. |
296 |
|
297 |
%files -n %{develname} |
298 |
%{_kf5_libdir}/libamaroklib.so |
299 |
%{_kf5_libdir}/libamarokcore.so |
300 |
%{_kf5_libdir}/libamarokpud.so |
301 |
%{_kf5_libdir}/libamarok-sqlcollection.so |
302 |
%{_kf5_libdir}/libamarok-transcoding.so |
303 |
%{_kf5_libdir}/libamarokshared.so |
304 |
|
305 |
#-------------------------------------------------------------------- |
306 |
|
307 |
%prep |
308 |
%autosetup -p1 |
309 |
|
310 |
# Fix mygpo-qt5 headers path |
311 |
find . -name '*.h' -exec sed -i 's|<mygpo-qt5/|<mygpo-qt/|g' {} \; |
312 |
find . -name '*.cpp' -exec sed -i 's|<mygpo-qt5/|<mygpo-qt/|g' {} \; |
313 |
|
314 |
%build |
315 |
%cmake_kf5 -DMYSQLCONFIG_EXECUTABLE:BOOL=OFF |
316 |
%cmake_build |
317 |
|
318 |
%install |
319 |
%cmake_install |
320 |
|
321 |
%find_lang %{name} --with-kde --with-html --without-mo && mv %{name}.lang %{name}-doc.lang |
322 |
%find_lang %{name} |
323 |
%find_lang_kf5 amarokcollectionscanner_qt |
324 |
%find_lang amarokpkg && cat amarokpkg.lang >> %{name}.lang |