-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathspotify-client.spec
242 lines (181 loc) · 9.03 KB
/
spotify-client.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
%global debug_package %{nil}
%global __strip /bin/true
# Build id links are sometimes in conflict with other RPMs.
%define _build_id_links none
# Remove bundled libraries from requirements/provides
%global __requires_exclude ^(libcef\\.so.*|libwidevinecdm.*\\.so.*|libEGL\\.so.*|libGLESv2\\.so.*)$
%global __provides_exclude ^(lib.*\\.so.*)$
Name: spotify-client
Summary: Spotify music player native client
Version: 1.2.53.440.g7b2f582a
Release: 1%{?dist}
Epoch: 1
License: https://www.spotify.com/legal/end-user-agreement
URL: http://www.spotify.com/
ExclusiveArch: x86_64
Source0: spotify-%{version}.tar.xz
Source1: spotify-tarball.py
Source2: spotify-wrapper
Source3: spotify.xml
Source4: spotify.appdata.xml
Source10: README.Fedora
BuildRequires: chrpath
BuildRequires: desktop-file-utils
BuildRequires: firewalld-filesystem
BuildRequires: libappstream-glib
Provides: spotify = %{version}-%{release}
Obsoletes: spotify-curl
Requires: firewalld-filesystem
Requires(post): firewalld-filesystem
Requires: hicolor-icon-theme
Requires: libnotify%{?_isa}
Requires: spotify-ffmpeg%{?_isa}
%description
Think of Spotify as your new music collection. Your library. Only this time your
collection is vast: millions of tracks and counting. Spotify comes in all shapes
and sizes, available for your PC, Mac, home audio system and mobile phone.
Wherever you go, your music follows you. And because the music plays live,
there’s no need to wait for downloads and no big dent in your hard drive.
%prep
%setup -q -n spotify-%{version}
cp %{SOURCE10} .
%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/icons/hicolor
mkdir -p %{buildroot}%{_libdir}/%{name}
# Program resources
cp -frp Apps *.pak *.so locales *.bin spotify *.so.1 *.dat *.json \
%{buildroot}%{_libdir}/%{name}
find %{buildroot}%{_libdir}/%{name} -name "*.so*" -exec chmod 755 {} \;
chmod 755 %{buildroot}%{_libdir}/%{name}/spotify
chrpath -d %{buildroot}%{_libdir}/%{name}/spotify
# 512x512 icon along main executable is needed by the client
install -p -D -m 644 icons/spotify-linux-512.png \
%{buildroot}%{_libdir}/%{name}/icons/spotify-linux-512.png
# Desktop menu entry
install -p -m 644 spotify.desktop %{buildroot}%{_datadir}/applications/
sed -i -e 's/^Icon=.*/Icon=spotify/g' \
%{buildroot}%{_datadir}/applications/spotify.desktop
# Wrapper script stuff
cat %{SOURCE2} | sed -e 's|INSTALL_DIR|%{_libdir}/%{name}|g' \
> %{buildroot}%{_bindir}/spotify
chmod +x %{buildroot}%{_bindir}/spotify
# Icons
for size in 16 22 24 32 48 64 128 256 512; do
install -p -D -m 644 icons/spotify-linux-${size}.png \
%{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/spotify.png
done
# Firewalld rules
install -D -m 644 -p %{SOURCE3} \
%{buildroot}%{_prefix}/lib/firewalld/services/spotify.xml
# Install AppData
mkdir -p %{buildroot}%{_metainfodir}/
install -p -m 0644 %{SOURCE4} %{buildroot}%{_metainfodir}/
%check
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/spotify.appdata.xml
desktop-file-validate %{buildroot}%{_datadir}/applications/spotify.desktop
%post
%firewalld_reload
%files
%doc README.Fedora
%{_bindir}/spotify
%{_datadir}/applications/spotify.desktop
%{_datadir}/icons/hicolor/*/apps/spotify.png
%{_libdir}/%{name}
%{_metainfodir}/spotify.appdata.xml
%{_prefix}/lib/firewalld/services/spotify.xml
%changelog
* Tue Jan 14 2025 Simone Caronni <[email protected]> - 1:1.2.53.440.g7b2f582a-1
- Update to version 1.2.53.440.g7b2f582a.
* Fri Dec 20 2024 Simone Caronni <[email protected]> - 1:1.2.52.442.g01893f92-1
- Update to version 1.2.52.442.g01893f92.
* Tue Nov 26 2024 Simone Caronni <[email protected]> - 1:1.2.50.335.g5e2860a8-1
- Update to version 1.2.50.335.g5e2860a8.
* Fri Oct 25 2024 Simone Caronni <[email protected]> - 1:1.2.48.405.gf2c48e6f-1
- Update to version 1.2.48.405.gf2c48e6f.
* Sun Oct 20 2024 Simone Caronni <[email protected]> - 1:1.2.45.454.gc16ec9f6-2
- libcurl and libXss are no longer required.
- Re-add custom libavcodec & libavformat for local playback and syncing.
* Tue Sep 24 2024 Simone Caronni <[email protected]> - 1:1.2.45.454.gc16ec9f6-1
- Update to version 1.2.45.454.gc16ec9f6.
* Mon Aug 05 2024 Simone Caronni <[email protected]> - 1:1.2.42.290.g242057a2-1
- Update to version 1.2.42.290.g242057a2.
* Wed Jun 26 2024 Simone Caronni <[email protected]> - 1:1.2.40.599.g606b7f29-1
- Update to version 1.2.40.599.g606b7f29.
* Sun Jun 02 2024 Simone Caronni <[email protected]> - 1:1.2.37.701.ge66eb7bc-1
- Update to version 1.2.37.701.ge66eb7bc.
* Tue Mar 19 2024 Simone Caronni <[email protected]> - 1:1.2.31.1205.g4d59ad7c-2
- Do not search for spotify-ffmpeg anymore.
* Sun Mar 03 2024 Simone Caronni <[email protected]> - 1:1.2.31.1205.g4d59ad7c-1
- Update to version 1.2.31.1205.g4d59ad7c.
* Thu Dec 07 2023 Simone Caronni <[email protected]> - 1:1.2.26.1187.g36b715a1-1
- Update to version 1.2.26.1187.g36b715a1.
* Mon Nov 27 2023 Simone Caronni <[email protected]> - 1:1.2.25.1011.g0348b2ea-1
- Update to 1.2.25.1011.g0348b2ea.
* Mon Nov 20 2023 Simone Caronni <[email protected]> - 1:1.2.25.1009.g075ce884-1
- Update to version 1.2.25.1009.g075ce884.
* Wed Oct 11 2023 Simone Caronni <[email protected]> - 1:1.2.22.982.g794acc0a-1
- Update to version 1.2.22.982.g794acc0a.
* Thu Sep 14 2023 Simone Caronni <[email protected]> - 1:1.2.20.1210.g2a8a8a57-1
- Update to version 1.2.20.1210.g2a8a8a57.
* Thu Jun 22 2023 Simone Caronni <[email protected]> - 1:1.2.13.661.ga588f749-1
- Update to version 1.2.13.661.ga588f749.
* Tue May 23 2023 Simone Caronni <[email protected]> - 1:1.2.11.916.geb595a67-1
- Update to version 1.2.11.916.geb595a67.
* Wed May 10 2023 Simone Caronni <[email protected]> - 1:1.2.11.914.gd3175972-1
- Update to version 1.2.11.914.gd3175972.
* Thu Apr 27 2023 Simone Caronni <[email protected]> - 1:1.2.9.743.g85d9593d-1
- Update to version 1.2.9.743.g85d9593d.
* Fri Mar 31 2023 Simone Caronni <[email protected]> - 1:1.2.8.923.g4f94bf0d-1
- Update to version 1.2.8.923.g4f94bf0d.
* Sun Mar 26 2023 Simone Caronni <[email protected]> - 1:1.1.99.878.g1e4ccc6e-3
- Simplify packaging.
* Fri Dec 16 2022 Simone Caronni <[email protected]> - 1:1.1.99.878.g1e4ccc6e-2
- Update requirements and add-on stuff.
- Trim changelog.
* Tue Nov 29 2022 Simone Caronni <[email protected]> - 1:1.1.99.878.g1e4ccc6e-1
- Update to version 1.1.99.878.g1e4ccc6e.
* Wed May 11 2022 Simone Caronni <[email protected]> - 1:1.1.84.716.gc5f8b819-1
- Update to version 1.1.84.716.gc5f8b819.
* Thu Mar 31 2022 Simone Caronni <[email protected]> - 1:1.1.80.699.gc3dac750-4
- Remove _isa from xprop requirement, as virtual provides do not provide the
isa.
* Mon Mar 21 2022 Simone Caronni <[email protected]> - 1:1.1.80.699.gc3dac750-3
- Simplify requirements for xprop (xorg-x11-utils provides xprop on EL9 and
lower).
* Mon Mar 21 2022 Simone Caronni <[email protected]> - 1:1.1.80.699.gc3dac750-2
- Make sure xprop is installed to get the dark titlebar.
* Thu Mar 10 2022 Simone Caronni <[email protected]> - 1:1.1.80.699.gc3dac750-1
- Update to version 1.1.80.699.gc3dac750.
* Tue Jan 25 2022 Simone Caronni <[email protected]> - 1:1.1.77.643.g3c4c6fc6-1
- Update to version 1.1.77.643.g3c4c6fc6.
* Mon Dec 13 2021 Simone Caronni <[email protected]> - 1:1.1.72.439.gc253025e-2
- Fix build id links in conflict with other RPMs.
* Fri Nov 12 2021 Simone Caronni <[email protected]> - 1:1.1.72.439.gc253025e-1
- Update to version 1.1.72.439.gc253025e.
- Rework tarball part, use a python script to check for new versions online
directly, update and repack the tarball. Source RPM is 50% smaller (~80 mb
removed). Only snaps are supported as deb packages are always lagging behind.
- Do not touch files in prep section.
- Move checks in the check section.
* Mon Oct 25 2021 Simone Caronni <[email protected]> - 1:1.1.70.610.g4585142b-1
- Fix versioning.
* Fri Oct 22 2021 Simone Caronni <[email protected]> - 1:1.1.68.632.g2b11de83-2
- Update to version 1.1.70.610.g4585142b.
* Wed Sep 22 2021 Simone Caronni <[email protected]> - 1:1.1.68.632.g2b11de83-1
- Update to 1.1.68.632.g2b11de83.
* Thu Sep 16 2021 Simone Caronni <[email protected]> - 1:1.1.67.586.gbb5ef64e-2
- Update to 1.1.68.628.geb44bd66.
* Sat Sep 04 2021 Simone Caronni <[email protected]> - 1:1.1.67.586.gbb5ef64e-1
- Update to version 1.1.67.586.gbb5ef64e.
* Fri Apr 09 2021 Simone Caronni <[email protected]> - 1:1.1.56.595.g2d2da0de-1
- Update to 1.1.56.595.g2d2da0de.
- Require private FFMpeg minimal build only if a fully fledged FFMpeg 3.4+
is not installed.
- Require libnotify.
- Import dark titlebar and scaling support from Flatpak build.
* Sun Mar 21 2021 Simone Caronni <[email protected]> - 1:1.1.55.498.gf9a83c60-1
- Update to 1.1.55.498.gf9a83c60.
* Tue Feb 09 2021 Simone Caronni <[email protected]> - 1:1.1.52.687.gf5565fe5-1
- Update to 1.1.52.687.gf5565fe5.