Spotify client

Latest Spotify client re-packaged from the Ubuntu packages for supported Fedora and RHEL/CentOS distributions.spotify-client

This repository requires that multimedia libraries not bundled with Spotify. For this reason, it requires the multimedia repository to be enabled or alternatively RPMFusion.

Package information

This package tries to comply as maximum to the Fedora Packaging Guidelines; this means the packages has debuginfo packages, default Fedora’s GCC compile time options (where possible) and standard locations for binaries, data and docs.

The provided client is binary only and compiled for Ubuntu, so the Fedora package de-assembles the original Ubuntu package and moves all files in the appropriate places. To overcome library conflicts, the package contains symlinks from Fedora system libraries to match the original Ubuntu names, adds native Ubuntu OpenSSL libraries and leaves RUNPATH enabled for finding libraries on its own.

$ cd /usr/lib64/spotify-client
$ ls -l lib*
-rwxr-xr-x. 1 root root 92543584 Jun  4 14:53 libcef.so
-rwxr-xr-x. 1 root root  1965440 Jun  8 21:41 libcrypto.so.1.0.0
-rwxr-xr-x. 1 root root  1456016 Jun  4 14:53 libffmpegsumo.so
-rwxr-xr-x. 1 root root   387432 Jun  8 21:41 libssl.so.1.0.0
$ chrpath -l spotify
spotify: RPATH=$ORIGIN

Instead of bundling Ubuntu’s libgcrypt library along with OpenSSL; it uses the compat-libgcrypt package from ssaavedra/compat-libcrypt COPR repository.

Supported distributions:

  • Fedora 23 – i686/x86_64
  • Fedora 24 – i686/x86_64
  • Fedora 25 – i686/x86_64
  • RHEL/CentOS 7 – x86_64

The package requires ffmpeg-libs to enable playback of local files. You can install them by enabling the Multimedia repository or RPMFusion.

Starting from Fedora 25, the Spotify client is available for installation by default also in Gnome Software.

gnome-software-spotify

Installation

To install the repository on a supported Fedora 22+ distribution, run as root the following command:

dnf config-manager --add-repo=http://negativo17.org/repos/fedora-spotify.repo

To do the same on CentOS/RHEL:

yum-config-manager --add-repo=http://negativo17.org/repos/epel-spotify.repo

Then, to install the client and its data files, perform the following command:

# yum -y install spotify-client

Bugs

Just open an issue to the specific package on Github.

220 thoughts on “Spotify client

  1. Somehow the newer versions of Spotify don’t discover Spotify Connect devices on my network. The devices make themselves visible through avahi. They are only visible when they are linked to the same Spotify account, but before it worked just fine through automatic discovery. Any idea what could be causing this? A missing dependency, or just some regression at Spotify’s side? Sadly I can’t point to a specific version that still worked for me. Other devices can see the Spotify Connect devices just fine.

    1. Sadly there’s no changelog with the Spotify. They’ve released a new different build today for x86_64, will update to that, maybe it’s fixed.

  2. Comments from a fresh F25 installation. Seems to be a bit rough around the edges in comparison to the version I used for my F24 fresh install.

    Minor inconveniences I see:
    – Login in with facebook crashes the app. Have to type in login credentials.
    – The menu settings dont do anything if you click on them, ie. account | settings | logout

    Other than that the app is running fine. Thank you for providing this HOW TO!

    Question, your blog says in F25 it should show by default on Gnome Software. That was not the case for me, eventhough I selected to add the propietary repository in the gnome welcome menu. Did I miss anything?

  3. Weird, I’m using Fedora 25 and I’ve already added the repo, but I can’t find Spotify anywhere in the Gnome Software Center.

    However, manually installing it with dnf seems to work fine.
    Is anything wrong with my installation?

  4. Hi!
    I have noticed that my viber (http://www.viber.com/en/) seems to be conflicting with compat-openssl which goes with spotify-client. Viber starts consuming 300% CPU and doesn’t send images, etc.
    After compat-openssl removal viber starts working properly. Are there any suggestions?

      1. I can be wrong but I suppose it’s a viber issue because as i understand it shouln’t use this compat lib. Created a ticket to their support but no result so far.
        Still if anybody knows a workaround I would appreciate.

  5. please, for what are reason are you always providing the ‘yum’ (deprecated) command instead of ‘dnf’. It might create confusion in my opiniom

  6. Today’s update is trying to install compat-openssl, but it’s conflicting with openssl package already installed on Fedora 23! Halp!

    1. Can you paste the output here? I’m not seeing how it could conflict with OpenSSL 1.0.2 and its shared libraries versions’.

      1. I actually upgraded to F24 and removed the openssl1 package, so now everything’s okay. But, from what I remember, it was having file conflicts (lib64/libcrypto.so.1.0.0 and lib64/libssl.so.1.0.0).

        1. I don’t ship a package called openssl1; neither Fedora nor RPMFusion. I’ve seen that it comes from the postinstaller RPMs on Sourceforge.

          1. Puede borrar los paquetes de la caché ejecutando ‘dnf clean packages’.
            Error: Transaction check error:
            el archivo /usr/lib64/libcrypto.so.1.0.0 de la instalación de compat-openssl-1.0.0t-1.fc23.x86_64 entra en conflicto con el archivo del paquete openssl1-1.0.0-3.fc23.x86_64
            el archivo /usr/lib64/libssl.so.1.0.0 de la instalación de compat-openssl-1.0.0t-1.fc23.x86_64 entra en conflicto con el archivo del paquete openssl1-1.0.0-3.fc23.x86_64

          2. Don’t know if you’ve noticed, but everyone here writes in english.
            Just remove the package openssl1. I’m guaranteeing compatibility with Fedora and RPMFusion repositories, not everything that’s around.

  7. hello friends! i am trying to listen to local M4A’s using spotify, but it either crashes or does nothing when trying to play one; any suggestions ? (already installed ffmpeg-libs)

  8. This is awesome, thanks for maintaining this!

    Is there a way to install spotify locally, as I don’t have sufficient permissions to dnf config-manager –add-repo, or even to dnf –enable-repo?

    1. Really? Then the package is not very useful. Try to unpack it, create a script and set the appropriate library paths before starting it.

  9. In Fedora 24, I had to remove xterm -e “wget …” and execute wget directly in shell, because it wasn’t working otherwise

      1. Hello, I don’t understand. The path you specified is a link to a binary. What are you referring to?

        $ ls -al /usr/bin/spotify 
        lrwxrwxrwx. 1 root root 33 Jun  9 12:07 /usr/bin/spotify -> /usr/lib64/spotify-client/spotify
        $ file /usr/lib64/spotify-client/spotify
        /usr/lib64/spotify-client/spotify: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=8aba5fb1191078be1e87a1a5e2e8657c3c962271, stripped
  10. Hey, so i tried to install it, and it gives me the following:

    Error: nothing provides ffmpeg-libs needed by spotify-client-1.0.28.89.gf959d4ce-1.fc23.x86_64

    Many thanks,

  11. It seems there is a new version on the testing repository:

    1.0.27.71.g0a26e3b2-9

    Spotify devs claim it fixes MPRIS2. Anyone tried it yet on Fedora?

Leave a Reply