1 |
%define libname_orig lib%{name} |
2 |
%define libname %mklibname %{name} 0 |
3 |
%define develname %mklibname -d %{name} |
4 |
|
5 |
# Needed to obsolete old amarok2 packages |
6 |
%define libname_orig2 libamarok2 |
7 |
%define libname2 %mklibname amarok2 0 |
8 |
%define develname2 %mklibname -d amarok2 |
9 |
|
10 |
Name: amarok |
11 |
Summary: A powerful media player for KDE4 |
12 |
Version: 2.3.90 |
13 |
Release: %mkrel 2 |
14 |
Epoch: 3 |
15 |
License: GPL |
16 |
Url: http://amarok.kde.org/ |
17 |
Group: Sound |
18 |
Source0: http://fr2.rpmfind.net/linux/KDE/stable/%{name}/%{version}/src/%{name}-%{version}.tar.bz2 |
19 |
Patch0001: 0001-Fix-initial-preference-in-.desktop-from-2.1.90.patch |
20 |
Patch0002: 0002-Remove-appendAndPlay-service-from-2.2.2.90.patch |
21 |
Patch0003: 0003-Fix-CD-titleChanged-from-2.2.2.90.patch |
22 |
Patch0004: 0004-Do-not-enable-Last.fm-by-default-from-2.2.0.patch |
23 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
24 |
BuildRequires: taglib-devel >= 1.6-3 |
25 |
BuildRequires: cmake >= 2.4.5 |
26 |
BuildRequires: libnjb-devel |
27 |
BuildRequires: libifp-devel |
28 |
BuildRequires: libmtp-devel >= 0.3.0 |
29 |
BuildRequires: loudmouth-devel |
30 |
BuildRequires: mysql-static-devel |
31 |
BuildRequires: glib2-devel |
32 |
BuildRequires: libvisual-devel |
33 |
BuildRequires: kdelibs4-devel >= 2:4.2.0 |
34 |
BuildRequires: kdebase4-workspace-devel >= 4.2.0 |
35 |
BuildRequires: kdemultimedia4-devel >= 4.2.0 |
36 |
BuildRequires: libgpod-devel >= 0.7.0 |
37 |
BuildRequires: curl-devel |
38 |
BuildRequires: libmp4v2-devel |
39 |
BuildRequires: taglib-extras-devel >= 1.0.0-1 |
40 |
BuildRequires: qtscriptgenerator |
41 |
BuildRequires: liblastfm-devel |
42 |
BuildRequires: qca2-devel |
43 |
BuildRequires: libofa-devel |
44 |
BuildRequires: ffmpeg-devel |
45 |
BuildRequires: libaio-devel |
46 |
Requires: %name-scripts = %epoch:%version-%release |
47 |
Requires: %name-utils = %epoch:%version-%release |
48 |
%if %{mdkversion} >= 201000 |
49 |
Requires: mysql-common-core |
50 |
%else |
51 |
Requires: mysql-common |
52 |
%endif |
53 |
Requires: qtscriptbindings |
54 |
Requires: kde4-audiocd |
55 |
Conflicts: %{libname2}-devel < 1:2.0.0-1.svn743954.3 |
56 |
Conflicts: %{develname} < 3:2.2.0-1 |
57 |
Obsoletes: amarok2 < 2:2.0.0-0.svn794807.2 |
58 |
Obsoletes: amarok2-engine-phonon < 2:2.0.0-0.svn794807.2 |
59 |
Obsoletes: amarok2-engine-xine < 2:2.0.0-0.svn794807.2 |
60 |
Obsoletes: amarok2-engine-void < 2:2.0.0-0.svn794807.2 |
61 |
Obsoletes: amarok-engine-void < 2:2.0.0 |
62 |
Obsoletes: amarok-engine-xine < 2:2.0.0 |
63 |
Obsoletes: amarok-engine-yauap < 2:2.0.0 |
64 |
Obsoletes: amarok-engine-arts <= 1.4-0.beta1_rc1.10mdk |
65 |
Obsoletes: amarok-engine-gstreamer <= 1.4-0.beta1_rc1.10mdk |
66 |
Obsoletes: amarok-engine-akode <= 1.4-0.beta2.3mdk |
67 |
Obsoletes: amarok-engine-gstreamer0.10 <= 1.4-0.beta3.7mdk |
68 |
%if %mdkversion >= 201000 |
69 |
Obsoletes: kde3-amarok < 1:1.4.10-3 |
70 |
Obsoletes: kde3-amarok-engine-xine < 1:1.4.10-3 |
71 |
Obsoletes: kde3-amarok-engine-yauap < 1:1.4.10-3 |
72 |
Obsoletes: kde3-amarok-engine-void < 1:1.4.10-3 |
73 |
Obsoletes: kde3-amarok-engine < 1:1.4.10-3 |
74 |
%endif |
75 |
|
76 |
%description |
77 |
Feature Overview |
78 |
|
79 |
* Music Collection: |
80 |
You have a huge music library and want to locate tracks quickly? Let amaroK's |
81 |
powerful Collection take care of that! It's a database powered music store, |
82 |
which keeps track of your complete music library, allowing you to find any |
83 |
title in a matter of seconds. |
84 |
|
85 |
* Intuitive User Interface: |
86 |
You will be amazed to see how easy amaroK is to use! Simply drag-and-drop files |
87 |
into the playlist. No hassle with complicated buttons or tangled menus. |
88 |
Listening to music has never been easier! |
89 |
|
90 |
* Streaming Radio: |
91 |
Web streams take radio to the next level: Listen to thousands of great radio |
92 |
stations on the internet, for free! amaroK provides excellent streaming |
93 |
support, with advanced features, such as displaying titles of the currently |
94 |
playing songs. |
95 |
|
96 |
* Context Browser: |
97 |
This tool provides useful information on the music you are currently listening |
98 |
to, and can make listening suggestions, based on your personal music taste. An |
99 |
innovate and unique feature. |
100 |
|
101 |
* Visualizations: |
102 |
amaroK is compatible with XMMS visualization plugins. Allows you to use the |
103 |
great number of stunning visualizations available on the net. 3d visualizations |
104 |
with OpenGL are a great way to enhance your music experience. |
105 |
|
106 |
%files -f %name.lang |
107 |
%defattr(-,root,root) |
108 |
%{_kde_bindir}/amarok |
109 |
%{_kde_bindir}/amarok_afttagger |
110 |
%{_kde_bindir}/amarokmp3tunesharmonydaemon |
111 |
%{_kde_bindir}/amarokpkg |
112 |
%{_kde_datadir}/applications/kde4/amarok.desktop |
113 |
%{_kde_datadir}/applications/kde4/amarok_containers.desktop |
114 |
%{_kde_datadir}/config/amarok.knsrc |
115 |
%{_kde_datadir}/config/amarok_homerc |
116 |
%{_kde_datadir}/config.kcfg/amarokconfig.kcfg |
117 |
%{_kde_appsdir}/desktoptheme/* |
118 |
%{_kde_appsdir}/solid/actions/amarok-play-audiocd.desktop |
119 |
%dir %{_kde_appsdir}/amarok |
120 |
%{_kde_appsdir}/amarok/* |
121 |
%{_kde_libdir}/kde4/* |
122 |
%{_kde_libdir}/libampache_account_login.so |
123 |
%{_kde_datadir}/config/amarokapplets.knsrc |
124 |
%{_kde_datadir}/kde4/services/* |
125 |
%{_kde_datadir}/kde4/servicetypes/* |
126 |
%{_kde_iconsdir}/*/*/*/amarok.* |
127 |
%{_kde_datadir}/dbus-1/interfaces/* |
128 |
%exclude %{_kde_appsdir}/amarok/scripts/ |
129 |
|
130 |
#-------------------------------------------------------------------- |
131 |
|
132 |
%package utils |
133 |
Summary: Utilities for amarok |
134 |
Group: Graphical desktop/KDE |
135 |
|
136 |
%description utils |
137 |
Utilities for amarok |
138 |
|
139 |
%files utils |
140 |
%defattr(-,root,root) |
141 |
%{_kde_bindir}/amarokcollectionscanner |
142 |
|
143 |
#-------------------------------------------------------------------- |
144 |
|
145 |
%package scripts |
146 |
Summary: Scripts for amarok |
147 |
Group: Graphical desktop/KDE |
148 |
Requires: %name = %epoch:%version-%release |
149 |
Obsoletes: amarok2-scripts <= 2:2.0.0-0.svn794807.1 |
150 |
Obsoletes: %{_lib}amarok0-scripts < 2:2.0.0-0.svn794807.4 |
151 |
Obsoletes: %{_lib}amarok20-scripts < 2:2.0.0-0.svn794807.1 |
152 |
%if %mdkversion >= 201000 |
153 |
Obsoletes: kde3-amarok-scripts < 1:1.4.10-3 |
154 |
%endif |
155 |
|
156 |
%description scripts |
157 |
This package includes python scripts for amarok. |
158 |
|
159 |
%files scripts |
160 |
%defattr(-,root,root) |
161 |
%dir %{_kde_appsdir}/amarok/scripts/ |
162 |
%{_kde_appsdir}/amarok/scripts/* |
163 |
|
164 |
#------------------------------------------------ |
165 |
|
166 |
%define libamaroklib_major 1 |
167 |
%define libamaroklib %mklibname amaroklib %libamaroklib_major |
168 |
|
169 |
%package -n %libamaroklib |
170 |
Summary: Amarok 2 core library |
171 |
Group: System/Libraries |
172 |
Obsoletes: %{libname2} < 2:2.0.0-0.svn794807.1 |
173 |
|
174 |
%description -n %libamaroklib |
175 |
Amarok 2 core library. |
176 |
|
177 |
%files -n %libamaroklib |
178 |
%defattr(-,root,root) |
179 |
%_kde_libdir/libamaroklib.so.%{libamaroklib_major}* |
180 |
|
181 |
#------------------------------------------------ |
182 |
|
183 |
%define libamarokcore_major 1 |
184 |
%define libamarokcore %mklibname amarokcore %libamarokcore_major |
185 |
|
186 |
%package -n %libamarokcore |
187 |
Summary: Amarok 2 core library |
188 |
Group: System/Libraries |
189 |
|
190 |
%description -n %libamarokcore |
191 |
Amarok 2 core library. |
192 |
|
193 |
%files -n %libamarokcore |
194 |
%defattr(-,root,root) |
195 |
%_kde_libdir/libamarokcore.so.%{libamarokcore_major}* |
196 |
|
197 |
#------------------------------------------------ |
198 |
|
199 |
%define libamarokpud_major 1 |
200 |
%define libamarokpud %mklibname amarokpud %libamarokpud_major |
201 |
|
202 |
%package -n %libamarokpud |
203 |
Summary: Amarok 2 core library |
204 |
Group: System/Libraries |
205 |
Conflicts: %{libname2} < 2:2.0.0-0.svn794807.1 |
206 |
|
207 |
%description -n %libamarokpud |
208 |
Amarok 2 core library. |
209 |
|
210 |
%files -n %libamarokpud |
211 |
%defattr(-,root,root) |
212 |
%_kde_libdir/libamarokpud.so.%{libamarokpud_major}* |
213 |
|
214 |
#------------------------------------------------ |
215 |
|
216 |
%define libamarokqtjson_major 1 |
217 |
%define libamarokqtjson %mklibname amarokqtjson %libamarokqtjson_major |
218 |
|
219 |
%package -n %libamarokqtjson |
220 |
Summary: Amarok 2 core library |
221 |
Group: System/Libraries |
222 |
|
223 |
%description -n %libamarokqtjson |
224 |
Amarok 2 core library. |
225 |
|
226 |
%files -n %libamarokqtjson |
227 |
%defattr(-,root,root) |
228 |
%_kde_libdir/libamarokqtjson.so.%{libamarokqtjson_major}* |
229 |
|
230 |
#------------------------------------------------ |
231 |
|
232 |
%define libamarokocsclient_major 4 |
233 |
%define libamarokocsclient %mklibname amarokocsclient %libamarokocsclient_major |
234 |
|
235 |
%package -n %libamarokocsclient |
236 |
Summary: Amarok 2 core library |
237 |
Group: System/Libraries |
238 |
Conflicts: %{libname2} < 2:2.0.0-0.svn794807.1 |
239 |
|
240 |
%description -n %libamarokocsclient |
241 |
Amarok 2 core library. |
242 |
|
243 |
%files -n %libamarokocsclient |
244 |
%defattr(-,root,root) |
245 |
%_kde_libdir/libamarokocsclient.so.%{libamarokocsclient_major}* |
246 |
|
247 |
#------------------------------------------------ |
248 |
|
249 |
%define libamaroksqlcollection_major 1 |
250 |
%define libamaroksqlcollection %mklibname amarok-sqlcollection %libamaroksqlcollection_major |
251 |
|
252 |
%package -n %libamaroksqlcollection |
253 |
Summary: Amarok 2 core library |
254 |
Group: System/Libraries |
255 |
|
256 |
%description -n %libamaroksqlcollection |
257 |
Amarok 2 core library. |
258 |
|
259 |
%files -n %libamaroksqlcollection |
260 |
%defattr(-,root,root) |
261 |
%_kde_libdir/libamarok-sqlcollection.so.%{libamaroksqlcollection_major}* |
262 |
|
263 |
#------------------------------------------------ |
264 |
|
265 |
%define libamaroktranscoding_major 1 |
266 |
%define libamaroktranscoding %mklibname amarok-transcoding %libamaroktranscoding_major |
267 |
|
268 |
%package -n %libamaroktranscoding |
269 |
Summary: Amarok 2 core library |
270 |
Group: System/Libraries |
271 |
|
272 |
%description -n %libamaroktranscoding |
273 |
Amarok 2 core library. |
274 |
|
275 |
%files -n %libamaroktranscoding |
276 |
%defattr(-,root,root) |
277 |
%_kde_libdir/libamarok-transcoding.so.%{libamaroktranscoding_major}* |
278 |
|
279 |
#------------------------------------------------ |
280 |
|
281 |
%package -n %{develname} |
282 |
Summary: Headers of %name for development |
283 |
Group: Development/C |
284 |
Requires: %libamaroklib = %epoch:%{version}-%{release} |
285 |
Requires: %libamarokcore = %epoch:%{version}-%{release} |
286 |
Requires: %libamarokqtjson = %epoch:%{version}-%{release} |
287 |
Requires: %libamarokpud = %epoch:%{version}-%{release} |
288 |
Requires: %libamarokocsclient = %epoch:%{version}-%{release} |
289 |
Requires: %libamaroksqlcollection = %epoch:%{version}-%{release} |
290 |
Requires: %libamaroktranscoding = %epoch:%{version}-%{release} |
291 |
Provides: %{name}-devel = %epoch:%{version}-%{release} |
292 |
Provides: %{libname_orig}-devel = %epoch:%{version}-%{release} |
293 |
Obsoletes: %{mklibname -d amarok2 0} < 2:2.0.0-0.svn794807.2 |
294 |
Obsoletes: %{develname2} <= 2:2.0.0-0.svn794807.1 |
295 |
|
296 |
%description -n %{develname} |
297 |
Headers of %{name} for development. |
298 |
|
299 |
%files -n %{develname} |
300 |
%defattr(-,root,root) |
301 |
%{_kde_libdir}/libamaroklib.so |
302 |
%{_kde_libdir}/libamarokcore.so |
303 |
%{_kde_libdir}/libamarokpud.so |
304 |
%{_kde_libdir}/libamarokqtjson.so |
305 |
%{_kde_libdir}/libamarokocsclient.so |
306 |
%{_kde_libdir}/libamarok-sqlcollection.so |
307 |
%{_kde_libdir}/libamarok-transcoding.so |
308 |
|
309 |
#-------------------------------------------------------------------- |
310 |
|
311 |
%prep |
312 |
%setup -q -n %name-%version |
313 |
%patch0001 -p0 |
314 |
%patch0002 -p0 |
315 |
%patch0004 -p0 |
316 |
|
317 |
%build |
318 |
%cmake_kde4 |
319 |
%make |
320 |
|
321 |
%install |
322 |
rm -rf %buildroot |
323 |
%{makeinstall_std} -C build |
324 |
%find_lang %{name} amarokcollectionscanner_qt amarok_scriptengine_qscript amarokpkg --with-html |
325 |
|
326 |
%clean |
327 |
rm -rf %buildroot |
328 |
|
329 |
|