Article: Install Spotify under openSUSE - the easy way

I created this post because I’m an alien hater. And I have no time to explain why standard RPM is over alien. Just search “alien vs standard rpm”. I’m Chinese, those English tech bloggers write better essay than I do. In theory, any Deb oriented package has to be fixed to fit RPM needs.So I wrote a spec and a shell script to build that specfile on your system. Now let’s get everything started:

  1. Open a terminal (GNOME Terminal or Konsole):
wget https://raw.github.com/marguerite/opensuse-spotify-installer/master/spotify-rpm-generator.sh
chmod +x spotify-rpm-generator.sh 
./spotify-rpm-generator.sh
  1. Done! Now you have Spotify installed and a backup RPM under your home.

Next time, you can install that RPM like this:

sudo rpm -ivh --nodeps spotify-*.rpm

or

sudo zypper install --no-refresh --force-resolution spotify-*.rpm

Note: --nodeps and --force-resolution are very important!

Have a lot of fun!https://raw.github.com/marguerite/opensuse-spotify-installer/master/spotify-screenshot.png

Spotify is currently not available in your country

Sad but true

I have the windows version running using wine… Works fine if you ignore the occasional banner bar talking about a unsupported client. Why is this one different?

Thanks very much Marguerite. Works a treat for me in 12.2

Yeah, tried it there now as well… smooth install… The copy and paste in the first point should probably be split since you have to run your very handy script as root… But other than that it’s working great and a lot nicer than the windows client using wine! Thank you! I will link this to a how-to in the Dutch forums… the way explained there is very long winded… this is so much easier!!

Smooth indeed, and it seems also a more native way to install Spotify under OpenSUSE, than this alternative:
Re: Segfault on opensuse 12.2 - The Spotify Community.

Thnxs, also for the very smooth KDM login you created. You rock!

Work done for nothing, André? I defnitely hope not. Or can you include these changes in your dutch howto?

Yep, outsmarted in just the blink of an eye.rotfl!

I’m glad that there are multiple sophisticated ways now to install Spotify native on OpenSUSE by using scripts: choice to me is freedom. There are finally people who shame the Spotify Company by doing what it should have done a long time ago. Now I can link to this article in the new howto I’m finishing right now on the Dutch forum and devote some space on other Spotify related subjects.

Hello MargueriteSu. Thanks for sharing your work.

The script has stopped working because they changed the DEB package version of Spotify. Now is 0.8.8.323.gd143501.250-1

Sorry to be brief, English is not my native language.

A greeting.

Hi there,
It seems that another script (install-spotify) has been published in the packman repo for openSUSE 12.2. It’s Spotify version independant or it’s been updated for the 0.8.8.323. I used it to install this new spotify version and it works very well. MargueriteSu: perhaps you would want to check this other script and update yours or joine forces or whatever you feel like doing with it.
It would be rather nice though to see a reaction from you, with your thoughts.

As of right now, both methods are outdated and neither works in order to install Spotify. An update would be appreciated.

Thanks!

I just changed the version in /usr/bin/install-spotify and /usr/src/packages/SPECS/spotify-client.spec, then I remove ~/rpmbuild and it installs fine. I haven’t started Spotify yet though so I don’t know if it will actually run :slight_smile:

Doesn’t seem to work in 13.2. The scripts all seem to do their job, but there is nothing in the GNOME menus.

roger@VAIO:~/Downloads> sudo ./spotify-rpm-generator.sh
–2014-11-02 10:37:09-- https://raw.github.com/marguerite/opensuse-spotify-installer/master/spotify.spec
Resolving raw.github.com (raw.github.com)… 199.27.79.133
Connecting to raw.github.com (raw.github.com)|199.27.79.133|:443… connected.
HTTP request sent, awaiting response… 301 Moved Permanently
Location: https://raw.githubusercontent.com/marguerite/opensuse-spotify-installer/master/spotify.spec [following]
–2014-11-02 10:37:10-- https://raw.githubusercontent.com/marguerite/opensuse-spotify-installer/master/spotify.spec
Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 199.27.79.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|199.27.79.133|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 4497 (4.4K) [text/plain]
Saving to: ‘spotify.spec’

100%===========================================================================================================================================================================>] 4,497 --.-K/s in 0.002s

2014-11-02 10:37:10 (2.35 MB/s) - ‘spotify.spec’ saved [4497/4497]

If you already have spotify deb, please press ‘ctrl + c’,
put it under your home, and restart this script.(ignore if it’s already done.)
or else we’ll download it (may take a long time).
Downloading…
–2014-11-02 10:37:15-- http://repository.spotify.com/pool/non-free/s/spotify/spotify-client_0.8.4.103.g9cb177b.260-1_amd64.deb
Resolving repository.spotify.com (repository.spotify.com)… 54.192.118.233, 54.239.132.83, 54.192.118.242, …
Connecting to repository.spotify.com (repository.spotify.com)|54.192.118.233|:80… connected.
HTTP request sent, awaiting response… 404 Not Found
2014-11-02 10:37:15 ERROR 404: Not Found.

Building…
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.70LAiH

  • umask 022
  • cd /usr/src/packages/BUILD
  • cd /usr/src/packages/BUILD
  • rm -rf spotify-0.8.4.103
  • /usr/bin/mkdir -p spotify-0.8.4.103
  • cd spotify-0.8.4.103
  • /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
  • cp -r /usr/src/packages/SOURCES/spotify-client_0.8.4.103.g9cb177b.260-1_amd64.deb ./
    cp: cannot stat ‘/usr/src/packages/SOURCES/spotify-client_0.8.4.103.g9cb177b.260-1_amd64.deb’: No such file or directory
    error: Bad exit status from /var/tmp/rpm-tmp.70LAiH (%prep)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.70LAiH (%prep)
Build done! Cleaning…
cp: cannot stat ‘…/RPMS/x86_64/.rpm’: No such file or directory
Resolving dependencies…
Installing…
Preparing… ################################# [100%]
Updating / installing…
1:spotify-client-gnome-support-0.9.################################# 50%]
2:spotify-client-0.9.11.27.g2b1a638################################# [100%]
Congrats! Installation finished.
We put the generated RPM under your home.
Next time you can use 'sudo rpm -ivh --force --nodeps spotify-
.rpm’ or
‘sudo zypper --no-refresh install --force-resolution’ to install it.
Quitting…

Same thing on 13.1.

https://forums.opensuse.org/showthread.php/502691-Spotify-not-working