%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.*|libcurl-gnutls\\.so\\..*)$ %global __provides_exclude ^(lib.*\\.so.*)$ Name: spotify-client Summary: Spotify music player native client Version: 1.2.40.599.g606b7f29 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} Requires: firewalld-filesystem Requires(post): firewalld-filesystem Requires: hicolor-icon-theme Requires: libnotify%{?_isa} # Chrome Embedded Framework dynamically loads libXss.so.1: Requires: libXScrnSaver%{?_isa} Requires: spotify-curl%{?_isa} # No "Obsoletes" support in rich booleans Suggests: (libavcodec58%{?_isa} and libavformat58) %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 * Wed Jun 26 2024 Simone Caronni - 1:1.2.40.599.g606b7f29-1 - Update to version 1.2.40.599.g606b7f29. * Sun Jun 02 2024 Simone Caronni - 1:1.2.37.701.ge66eb7bc-1 - Update to version 1.2.37.701.ge66eb7bc. * Tue Mar 19 2024 Simone Caronni - 1:1.2.31.1205.g4d59ad7c-2 - Do not search for spotify-ffmpeg anymore. * Sun Mar 03 2024 Simone Caronni - 1:1.2.31.1205.g4d59ad7c-1 - Update to version 1.2.31.1205.g4d59ad7c. * Thu Dec 07 2023 Simone Caronni - 1:1.2.26.1187.g36b715a1-1 - Update to version 1.2.26.1187.g36b715a1. * Mon Nov 27 2023 Simone Caronni - 1:1.2.25.1011.g0348b2ea-1 - Update to 1.2.25.1011.g0348b2ea. * Mon Nov 20 2023 Simone Caronni - 1:1.2.25.1009.g075ce884-1 - Update to version 1.2.25.1009.g075ce884. * Wed Oct 11 2023 Simone Caronni - 1:1.2.22.982.g794acc0a-1 - Update to version 1.2.22.982.g794acc0a. * Thu Sep 14 2023 Simone Caronni - 1:1.2.20.1210.g2a8a8a57-1 - Update to version 1.2.20.1210.g2a8a8a57. * Thu Jun 22 2023 Simone Caronni - 1:1.2.13.661.ga588f749-1 - Update to version 1.2.13.661.ga588f749. * Tue May 23 2023 Simone Caronni - 1:1.2.11.916.geb595a67-1 - Update to version 1.2.11.916.geb595a67. * Wed May 10 2023 Simone Caronni - 1:1.2.11.914.gd3175972-1 - Update to version 1.2.11.914.gd3175972. * Thu Apr 27 2023 Simone Caronni - 1:1.2.9.743.g85d9593d-1 - Update to version 1.2.9.743.g85d9593d. * Fri Mar 31 2023 Simone Caronni - 1:1.2.8.923.g4f94bf0d-1 - Update to version 1.2.8.923.g4f94bf0d. * Sun Mar 26 2023 Simone Caronni - 1:1.1.99.878.g1e4ccc6e-3 - Simplify packaging. * Fri Dec 16 2022 Simone Caronni - 1:1.1.99.878.g1e4ccc6e-2 - Update requirements and add-on stuff. - Trim changelog. * Tue Nov 29 2022 Simone Caronni - 1:1.1.99.878.g1e4ccc6e-1 - Update to version 1.1.99.878.g1e4ccc6e. * Wed May 11 2022 Simone Caronni - 1:1.1.84.716.gc5f8b819-1 - Update to version 1.1.84.716.gc5f8b819. * Thu Mar 31 2022 Simone Caronni - 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 - 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 - 1:1.1.80.699.gc3dac750-2 - Make sure xprop is installed to get the dark titlebar. * Thu Mar 10 2022 Simone Caronni - 1:1.1.80.699.gc3dac750-1 - Update to version 1.1.80.699.gc3dac750. * Tue Jan 25 2022 Simone Caronni - 1:1.1.77.643.g3c4c6fc6-1 - Update to version 1.1.77.643.g3c4c6fc6. * Mon Dec 13 2021 Simone Caronni - 1:1.1.72.439.gc253025e-2 - Fix build id links in conflict with other RPMs. * Fri Nov 12 2021 Simone Caronni - 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 - 1:1.1.70.610.g4585142b-1 - Fix versioning. * Fri Oct 22 2021 Simone Caronni - 1:1.1.68.632.g2b11de83-2 - Update to version 1.1.70.610.g4585142b. * Wed Sep 22 2021 Simone Caronni - 1:1.1.68.632.g2b11de83-1 - Update to 1.1.68.632.g2b11de83. * Thu Sep 16 2021 Simone Caronni - 1:1.1.67.586.gbb5ef64e-2 - Update to 1.1.68.628.geb44bd66. * Sat Sep 04 2021 Simone Caronni - 1:1.1.67.586.gbb5ef64e-1 - Update to version 1.1.67.586.gbb5ef64e. * Fri Apr 09 2021 Simone Caronni - 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 - 1:1.1.55.498.gf9a83c60-1 - Update to 1.1.55.498.gf9a83c60. * Tue Feb 09 2021 Simone Caronni - 1:1.1.52.687.gf5565fe5-1 - Update to 1.1.52.687.gf5565fe5.