If you want to install Spotify on openSUSE and you see that Spotify doesn’t provide rpm binaries don’t worry, you can still do it!
I have tested this with Leap 42.1 & 15.0 and Tumbleweed (20180124 and older). It should work with other versions of Leap as well.
It seems that there are two possibilities, on my installation of openSUSE I can use the script and download and package Spotify, although on a fresh installation the script will fail.
Start by cloning the repository [opensuse-spotify-installer (master)]
Before installing make sure that you have the package update-desktop-files, so
> sudo zypper in update-desktop-files
After that, run: (at some point you will be asked to enter your root password)
It will take some time to download and install.
In order to run it type:
Nothing provides libcurl-gnutls.so.4()(64bit):
On my tumbleweed 20180828 I get the following problem while installing:
Problem: nothing provides libcurl-gnutls.so.4()(64bit) needed by spotify-client-126.96.36.1993.g15c26ea1-14.x86_64 Solution 1: do not install spotify-client-188.8.131.523.g15c26ea1-14.x86_64 Solution 2: break spotify-client-184.108.40.2063.g15c26ea1-14.x86_64 by ignoring some of its dependencies
Find your libcurl.so.4:
> find /usr/lib64 -name libcurl\*
Link your libcurl.so.4 to libcurl-gnutls.so.4
> cd /usr/lib64 > sudo ln -s libcurl.so.4 libcurl-gnutls.so.4
— You can uninstall it by:
> rpm -e spotify-client
> ./install-spotify.sh -u
Enjoy your music! 😀
— edit: changed the link of the repository to my fork, the repository I forked doesn’t work on leap after he updated his version.
— update [27/05/2016]: The repository that I cloned, got updated and now works with openSUSE Leap by default. Instructions got updated.
— update [20/06/2016]: Changes from the last update don’t work on a fresh installation.
— update [26/01/2018]: Changed title specifying a multi version solution and added the tested versions.
— update [2018/08/16]: Tested and works on Leap 15.0 also.
— update [2018/08/31]: Edited the method and added the problem section
** Now the original repository may work but I redirect to mine in the case he does any changes and doesn’t work any more on Leap.