Giter Club home page Giter Club logo

opensuse-spotify-installer's Introduction

Spotify automatic installer for openSUSE

WARNING: This repository is currently broken and unmaintained!

We are looking for a volunteer to take over maintainership! Please see issue #50 if you are interested in volunteering, or just want the latest information.

Description

This script avoided the need to illegally redistribute Spotify binaries by downloading the Linux client .deb from repository.spotify.com, converting it to .rpm format, and then installing it along with some evil hacks to provide the necessary libraries where Spotify expects them to be.

Current status

Currently this code is broken. Work to fix it, such as PR #37 has stalled and seems unlikely to resume any time soon.

In the mean time, you may find the following alternatives useful:

The hope is that we ultimately reach a unified solution which reuses the combined efforts of as many people as possible, in an efficient and collaborative manner.

How to try it

This installer is conveniently pre-packaged on PackMan. The easiest way to use it is as follows:

  1. Install the spotify-installer package from PackMan via 1-click install (you can also find the button on this page), or via YaST and/or zypper.
  2. Run install-spotify as a non-root user (e.g. from any terminal program).

Alternatively, if we fix some known issues, you will be able to skip PackMan and use it as follows:

  1. Download the install-spotify.sh script
  2. Download spotify-client.spec and place it in /usr/src/packages/SPECS
  3. (optional) Read the source to make sure it's not going to pwn your computer.
  4. Make the script executable, e.g. from a terminal, type chmod +x install-spotify.sh
  5. Run it as a non-root user, e.g. from a terminal type ./install-spotify.sh

The installer uses sudo for operations which require root privileges, so you may be prompted for a password during the install.

Support, bugs, development etc.

Please see CONTRIBUTING.md.

Why not just use the new web-based player?

There's a new browser-based Spotify player accessible via https://play.spotify.com/ or https://apps.facebook.com/get-spotify/.

However, it does not seem to be generally available yet, and is missing many features compared to the standalone Linux client.

Credits and thanks

This is not all my own work. The following people deserve credit and thanks for some of the code in this installer:

  • Armin on the Spotify community forums, who wrote the original version.
  • Marguerite Su who provided an initial .spec file and helped eventually convince me it was worth moving away from alien.

Huge thanks also to the relatively anonymous Spotify employees such as parbo who have been donating some of their free time to make the Linux client available. No thanks go to Spotify middle/upper management for consistently refusing to invest the small amount of resources required to even acknowledge their Linux-based customers, let alone support them.

License

This installer does not contain any material whatsoever copyrighted by Spotify:

  • install-spotify.sh is a derivative of Armin's original version which he posted it without any copyright notice, so I unless I hear otherwise I'll assume it's in the public domain.
  • spotify-client.spec is a derivative of Marguerite Su's original spotify.spec, the header of which seems to imply that it's MIT-licensed (since the pristine package the header refers to is either Spotify or non-existent, depending on how you look at it).
  • spotify-installer.spec is all my work.

Therefore I think it's fair to say the overall license is MIT (i.e. less ambiguously, the X11 license).

Why is this script here on github?

I hope it's kind of obvious from the above. But since you got me on the soapbox ...

<rant length="very long">

Web forums breed endless technological misery. They are bloated, slow, clunky quagmires which result in long meandering threads of unstructured communication. Trying to install Spotify after every distribution upgrade typically involves the following steps:

  1. google for something like 'spotify opensuse 12.2'
  2. wade through a huge number of hits from web forum threads or blog post or wiki page, many of which are too old to be useful
  3. select the most promising looking hit
  4. wade through a long forum thread or web page
  5. re-live other people's trial-and-error experiences
  6. realise that most people on this thread don't really know what they're doing and no-one fully figured it out
  7. repeat steps 3--6 a few times
  8. observe that every man and his dog has come up with their own partial solution which is similar but slightly different to the next person's, due to various gotchas which apply in some cases but not others
  9. scream "I don't care, I just want the ****ing thing to work!" a few times
  10. mentally recombine several different nuggets of information
  11. experiment a bit

... and eventually maybe you get it to work. If you're really lucky Spotify might only segfault occasionally!

(If I was rms, now would be the time to point out that this is inevitable karma for trying to use freedom-denying software; sadly I do not possess as much integrity as him though.)

I've been working closely with Linux since 1995 and even with a lot of experience I find process this painful and frustrating every time. So I can't imagine how annoyed Linux newbies must get when they want to do something as conceptually simple as installing Spotify on an rpm-based distro, and find that they have to struggle through this crap. It flies against all conventional wisdom regarding best practices in software development and deployment.

Going through this yet again after this latest upgrade to openSUSE 12.2 was the straw that broke the camel's back (Fedora 16 was the penultimate straw...) So let's take a stand. We can and will do better! Barring an unexpected miracle from Spotify management where they suddenly decide to stop ignoring their Linux user base, the solution is relatively simple. We just need to treat the problem with respect, i.e. just like any other free or open source software project out there - it deserves standard best practices. That means an automated deployment mechanism which is tracked properly using decentralized version control, a bug tracker, and a collaborative platform which allows anyone to chip in and help in a structured fashion. Fortunately github is totally mind-bendingly awesome at this, and free! So let's use it!

</rant>

opensuse-spotify-installer's People

Contributors

aspiers avatar hennevogel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

opensuse-spotify-installer's Issues

*.deb File format not recognized

Hey people,

as a linux noob I can't really say that my problem is related to the installer, but I can't get it to work. If someone could point me into the right direction I would be grateful! I'm running openSUSE 13.1.

install-spotify
rpm-build is already installed.

Spotify .deb package already exists:

~/rpmbuild/SOURCES/spotify-client_0.9.4.183.g644e24e.428-1_amd64.deb

Skipping download.

About to build spotify-client rpm; please be patient ...

Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.GEGHta

  • umask 022
  • cd /home/h83/rpmbuild/BUILD
  • cd /home/h83/rpmbuild/BUILD
  • rm -rf spotify-client-0.9.4.183.g644e24e.428
  • /usr/bin/mkdir -p spotify-client-0.9.4.183.g644e24e.428
  • cd spotify-client-0.9.4.183.g644e24e.428
  • /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
  • ar -x /home/h83/rpmbuild/SOURCES/spotify-client_0.9.4.183.g644e24e.428-1_amd64.deb
    ar: /home/h83/rpmbuild/SOURCES/spotify-client_0.9.4.183.g644e24e.428-1_amd64.deb: File format not recognized
    error: Bad exit status from /var/tmp/rpm-tmp.GEGHta (%prep)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.GEGHta (%prep)
rpmbuild -ba /usr/src/packages/SPECS/spotify-client.spec failed! Aborting.

Does not run on openSUSE 13.2

Hi,

I have been using opensuse-spotify-installer for a while. I know about prefixing libcef.so with Data and actualize Spotify version in .spec files. But those good times seem to be over.

I am running a brand new Opensuse 13.2, and using opensuse-spotify-installer looks like:

$ install-spotify   
rpm-build is already installed.

Spotify .deb package already exists:

  ~/rpmbuild/SOURCES/spotify-client_0.9.11.27.g2b1a638.81-1_amd64.deb

Skipping download.

About to build spotify-client rpm; please be patient ...

Exécution_de(%prep) : /bin/sh -e /var/tmp/rpm-tmp.fFxGZ8
+ umask 022
+ cd /home/kevin/rpmbuild/BUILD
+ cd /home/kevin/rpmbuild/BUILD
+ rm -rf spotify-client-0.9.11.27.g2b1a638.81
+ /usr/bin/mkdir -p spotify-client-0.9.11.27.g2b1a638.81
+ cd spotify-client-0.9.11.27.g2b1a638.81
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ ar -x /home/kevin/rpmbuild/SOURCES/spotify-client_0.9.11.27.g2b1a638.81-1_amd64.deb
+ tar -xzf data.tar.gz
+ rm control.tar.gz data.tar.gz debian-binary
+ cat
+ chmod +x /home/kevin/rpmbuild/BUILD/spotify-client-0.9.11.27.g2b1a638.81/find-requires.sh
+ exit 0
Exécution_de(%build) : /bin/sh -e /var/tmp/rpm-tmp.KRTPiu
+ umask 022
+ cd /home/kevin/rpmbuild/BUILD
+ /usr/bin/rm -rf /home/kevin/rpmbuild/BUILDROOT/spotify-client-0.9.11.27.g2b1a638.81-1.x86_64
++ dirname /home/kevin/rpmbuild/BUILDROOT/spotify-client-0.9.11.27.g2b1a638.81-1.x86_64
+ /usr/bin/mkdir -p /home/kevin/rpmbuild/BUILDROOT
+ /usr/bin/mkdir /home/kevin/rpmbuild/BUILDROOT/spotify-client-0.9.11.27.g2b1a638.81-1.x86_64
+ cd spotify-client-0.9.11.27.g2b1a638.81
+ exit 0
Exécution_de(%install) : /bin/sh -e /var/tmp/rpm-tmp.o6bNJP
+ umask 022
+ cd /home/kevin/rpmbuild/BUILD
+ cd spotify-client-0.9.11.27.g2b1a638.81
+ mv opt /home/kevin/rpmbuild/BUILDROOT/spotify-client-0.9.11.27.g2b1a638.81-1.x86_64
+ desktop=/home/kevin/rpmbuild/BUILDROOT/spotify-client-0.9.11.27.g2b1a638.81-1.x86_64/opt/spotify/spotify-client/spotify.desktop
+ sed -i 's/^\(MimeType=.*\);?$/\1;/i ;
        s/^Categories=/Categories=AudioVideo;Music;Player;Jukebox;/' /home/kevin/rpmbuild/BUILDROOT/spotify-client-0.9.11.27.g2b1a638.81-1.x86_64/opt/spotify/spotify-client/spotify.desktop
+ /usr/lib/rpm/suse_update_desktop_file.sh /home/kevin/rpmbuild/BUILDROOT/spotify-client-0.9.11.27.g2b1a638.81-1.x86_64/opt/spotify/spotify-client/spotify.desktop
WARNING: Category "Audio" is unknown \!
WARNING: it is ignored, until you registered a Category at [email protected] .
+ mkdir -p /home/kevin/rpmbuild/BUILDROOT/spotify-client-0.9.11.27.g2b1a638.81-1.x86_64/usr/share/doc/packages/spotify-client
+ mv usr/share/doc/spotify-client/changelog.Debian.gz usr/share/doc/spotify-client/copyright /home/kevin/rpmbuild/BUILDROOT/spotify-client-0.9.11.27.g2b1a638.81-1.x86_64/usr/share/doc/packages/spotify-client/
+ cat
+ mkdir -p /home/kevin/rpmbuild/BUILDROOT/spotify-client-0.9.11.27.g2b1a638.81-1.x86_64/opt/spotify/spotify-client/lib
+ ln -sf ../Data/libcef.so /home/kevin/rpmbuild/BUILDROOT/spotify-client-0.9.11.27.g2b1a638.81-1.x86_64/opt/spotify/spotify-client/lib/libcef.so
+ mkdir -p /home/kevin/rpmbuild/BUILDROOT/spotify-client-0.9.11.27.g2b1a638.81-1.x86_64/usr/bin
+ wrapper=/home/kevin/rpmbuild/BUILDROOT/spotify-client-0.9.11.27.g2b1a638.81-1.x86_64/usr/bin/spotify
+ cat
+ chmod +x /home/kevin/rpmbuild/BUILDROOT/spotify-client-0.9.11.27.g2b1a638.81-1.x86_64/usr/bin/spotify
+ mkdir -p /home/kevin/rpmbuild/BUILDROOT/spotify-client-0.9.11.27.g2b1a638.81-1.x86_64/usr/lib64
+ ln -sf /lib64/libcrypto.so.1.0.0 /home/kevin/rpmbuild/BUILDROOT/spotify-client-0.9.11.27.g2b1a638.81-1.x86_64/opt/spotify/spotify-client/lib/libcrypto.so.0.9.8
+ ln -sf /lib64/libssl.so.1.0.0 /home/kevin/rpmbuild/BUILDROOT/spotify-client-0.9.11.27.g2b1a638.81-1.x86_64/opt/spotify/spotify-client/lib/libssl.so.0.9.8
+ libs=(libnss3.so.1d libnssutil3.so.1d libsmime3.so.1d libplc4.so.0d libnspr4.so.0d)
+ for lib in '"${libs[@]}"'
+ ln -sf /usr/lib64/libnss3.so /home/kevin/rpmbuild/BUILDROOT/spotify-client-0.9.11.27.g2b1a638.81-1.x86_64/opt/spotify/spotify-client/lib/libnss3.so.1d
+ for lib in '"${libs[@]}"'
+ ln -sf /usr/lib64/libnssutil3.so /home/kevin/rpmbuild/BUILDROOT/spotify-client-0.9.11.27.g2b1a638.81-1.x86_64/opt/spotify/spotify-client/lib/libnssutil3.so.1d
+ for lib in '"${libs[@]}"'
+ ln -sf /usr/lib64/libsmime3.so /home/kevin/rpmbuild/BUILDROOT/spotify-client-0.9.11.27.g2b1a638.81-1.x86_64/opt/spotify/spotify-client/lib/libsmime3.so.1d
+ for lib in '"${libs[@]}"'
+ ln -sf /usr/lib64/libplc4.so /home/kevin/rpmbuild/BUILDROOT/spotify-client-0.9.11.27.g2b1a638.81-1.x86_64/opt/spotify/spotify-client/lib/libplc4.so.0d
+ for lib in '"${libs[@]}"'
+ ln -sf /usr/lib64/libnspr4.so /home/kevin/rpmbuild/BUILDROOT/spotify-client-0.9.11.27.g2b1a638.81-1.x86_64/opt/spotify/spotify-client/lib/libnspr4.so.0d
+ export NO_BRP_CHECK_RPATH=true
+ NO_BRP_CHECK_RPATH=true
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-suse
calling /usr/lib/rpm/brp-suse.d/brp-05-permissions
setting / to root:root 0755. (wrong owner/group kevin:users)
setting /opt/ to root:root 0755. (wrong owner/group kevin:users)
setting /usr/ to root:root 0755. (wrong owner/group kevin:users)
calling /usr/lib/rpm/brp-suse.d/brp-15-strip-debug
calling /usr/lib/rpm/brp-suse.d/brp-25-symlink
calling /usr/lib/rpm/brp-suse.d/brp-30-desktop
WARNING: '/usr/lib/rpm/brp-desktop.data/suse-screensavers.menu' does not exist
WARNING: '/usr/lib/rpm/brp-desktop.data/preferences-gnome.menu' does not exist
WARNING: '/usr/lib/rpm/brp-desktop.data/applications-kmenuedit.menu' does not exist
calling /usr/lib/rpm/brp-suse.d/brp-35-rpath
NO_BRP_CHECK_RPATH is set: skipping check
calling /usr/lib/rpm/brp-suse.d/brp-40-rootfs
calling /usr/lib/rpm/brp-suse.d/brp-45-tcl
calling /usr/lib/rpm/brp-suse.d/brp-50-check-python
calling /usr/lib/rpm/brp-suse.d/brp-55-boot-scripts
calling /usr/lib/rpm/brp-suse.d/brp-60-hook
calling /usr/lib/rpm/brp-suse.d/brp-65-lib64-linux
Traitement des fichiers : spotify-client-0.9.11.27.g2b1a638.81-1.x86_64
Trouver Provides : /usr/lib/rpm/find-provides spotify-client
Trouver Requires(interp) : 
Trouver Requires(rpmlib) : 
Trouver Requires(verify) : 
Trouver Requires(pre) : 
Trouver Requires(post) : 
Trouver Requires(preun) : 
Trouver Requires(postun) : 
Trouver Requires(pretrans) : 
Trouver Requires(posttrans) : 
Trouver Requires : /home/kevin/rpmbuild/BUILD/spotify-client-0.9.11.27.g2b1a638.81/find-requires.sh
Provides: spotify-client = 0.9.11.27.g2b1a638.81-1 spotify-client(x86-64) = 0.9.11.27.g2b1a638.81-1 libcef.so()(64bit) libffmpegsumo.so()(64bit)
Requires(interp): /bin/sh /bin/sh /bin/sh
Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1
Requires(post): /bin/sh
Requires(preun): /bin/sh
Requires(postun): /bin/sh
Requires: /bin/bash /bin/sh
Vérification des fichiers non empaquetés : /usr/lib/rpm/check-files /home/kevin/rpmbuild/BUILDROOT/spotify-client-0.9.11.27.g2b1a638.81-1.x86_64
attention : Ne peut canoniser le nom d'hôte : linux-s03u.site
Écrit : /home/kevin/rpmbuild/SRPMS/spotify-client-0.9.11.27.g2b1a638.81-1.nosrc.rpm
Écrit : /home/kevin/rpmbuild/RPMS/x86_64/spotify-client-0.9.11.27.g2b1a638.81-1.x86_64.rpm
Exécution_de(%clean) : /bin/sh -e /var/tmp/rpm-tmp.3lVLKL
+ umask 022
+ cd /home/kevin/rpmbuild/BUILD
+ cd spotify-client-0.9.11.27.g2b1a638.81
+ /usr/bin/rm -rf /home/kevin/rpmbuild/BUILDROOT/spotify-client-0.9.11.27.g2b1a638.81-1.x86_64
+ rm -rf filelists

rpm successfully built!

Installing Spotify from the rpm we just built ...
Erreur de reconstruction du cache:
[ervin|http://download.opensuse.org/repositories/home:/ervin/KDE_Current_openSUSE_13.2/] Valid metadata not found at specified URL
Avertissement : Désactivation du dépôt 'ervin' à cause de l'erreur ci-dessus.
Chargement des données du dépôt...
Lecture des paquets installés...
Résolution des dépendances des paquets...

Le NOUVEAU paquet suivant va être installé :
  spotify-client 

1 paquet à installer.
Taille de téléchargement totale : 38,4 MiB. Déjà en cache : 0 B  Après l'opération, 123,5 MiB d'espace disque supplémentaire sera utilisé.
Continuer ? [o/n/? affiche toutes les options] (o): o
Récupération de paquet spotify-client-0.9.11.27.g2b1a638.81-1.x86_64                                         (1/1),  38,4 MiB (123,5 MiB décompressé)
Vérification des conflits de fichiers : .......................................................................................................[fait]
(1/1) Installation: spotify-client - 0.9.11.27.g2b1a638.81-1 ..................................................................................[fait]


Spotify can now be run via /usr/bin/spotify - happy listening!
$ spotify
./spotify: error while loading shared libraries: libgcrypt.so.11: cannot open shared object file: No such file or directory

Am I doing it wrong?
I am available for further information.

Kévin

Thanks!

Not so much an issue, but I wanted to thank you for the updates to this script - I pulled the zip this morning with the update to support 1.0.19, and installed it on Leap 42.1 with no problems at all.

(Feel free to close this as there is no issue to resolve - I just couldn't see a place to provide feedback)

Worked fine for me 2016.12.04 - pre install libgcrypt11 - Thanks!

Thank You for this script.
This is the second time it's worked for me... (there's been times it didn't, but)
after rpm was built, i found i needed libgcrypt11.
installed from https://software.opensuse.org/package/libgcrypt11 using home:a_richardson's version...
re-ran spotify-installer as a copied the wrong *.rpm to my local install dir,
anyways. re-built installed w/o issue. fyi, their webclient is best written website,,, almost ever.

Freaking Awesome,
Again, Спасибо.
Landis.

Installation is broken on Leap 15.0

Hello Team!

I've tried to install spotify as the instructions said but I met some many issues during the installation.

  1. Ignoring dependencies
  2. Signature verification failed
  3. And finally when I try to run it: ./spotify: error while loading shared libraries: libgcrypt.so.11: cannot open shared object file: No such file or directory

Is there any solution to make it work on Leap 15.0 ?

Lack of rpm-build

In the opensuse-spotify-installer-script, it lack installation of rpm-build. First time execution, the script end with error: rpmbuild: No file og directory.
I manual install rpm-build and the script finnish.

rpmbuild error

I installed the latest installer package today from Packman (0.9.4.183.g644e24e.428-1.1) but didn't have success installing Spotify.

When running install-spotify, the current deb file (spotify-client_0.9.4.183.g644e24e.428-1_amd64.deb) was downloaded successfully. Then this error occurred:

About to build spotify-client rpm; please be patient ...

error: line 16: Illegal char '-' in: Version:        0.9.4.183.g644e24e.428-1
rpmbuild -ba /usr/src/packages/SPECS/spotify-client.spec failed! Aborting.

At line 16 in spotify-client.spec, the version number was stored as "0.9.4.183.g644e24e.428-1". Judging from other posts here, I sensed that the trailing "-1" shouldn' be here. I deleted these two characters and tried again. The script in fact didn't produce the former error and was running further down the road. So I guess this one should be changed in the production file as well.

But then after some activity the script threw this error:

calling /usr/lib/rpm/brp-suse.d/brp-25-symlink
ERROR: link target doesn't exist (neither in build root nor in installed system):
  /opt/spotify/spotify-client/lib/libcef.so -> /opt/spotify/spotify-client/libcef.so
Add the package providing the target to neededforbuild and Requires
error: Bad exit status from /var/tmp/rpm-tmp.SV8tv0 (%install)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.SV8tv0 (%install)
rpmbuild -ba /usr/src/packages/SPECS/spotify-client.spec failed! Aborting.

In the notation of spotify-client.spec, this file libcef.so apparently is expected to be in %{buildroot}%{spotifylibdir}/libcef.so. A symbolic link there is pointing to "../libcef.so" but it can't be found there at the presumed target location. Actually there is a file libcef.so now in what would be "../Data/libcef.so".

At this point I reached the limit of my abilities ... Please help.

wget gets `404` when trying to download `.deb`

rpm-build is already installed.

Downloading Spotify .deb package ...
converted 'http://repository.spotify.com/pool/non-free/s/spotify/spotify-client_0.9.11.27.g2b1a638.81-1_amd64.deb' (ANSI_X3.4-1968) -> 'http://repository.spotify.com/pool/non-free/s/spotify/spotify-client_0.9.11.27.g2b1a638.81-1_amd64.deb' (UTF-8)
--2015-04-15 02:22:10-- http://repository.spotify.com/pool/non-free/s/spotify/spotify-client_0.9.11.27.g2b1a638.81-1_amd64.deb
Resolving repository.spotify.com (repository.spotify.com)... 54.230.186.86, 54.230.186.121, 54.230.186.147, ...
Connecting to repository.spotify.com (repository.spotify.com)|54.230.186.86|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-04-15 02:22:10 ERROR 404: Not Found.

wget -O home/galloni/rpmbuild/SOURCES/spotifyclient_0.9.11.27.g2b1a638.81-1_amd64.deb http://repository.spotify.com/pool/non-free/s/spotify/spotify-client_0.9.11.27.g2b1a638.81-1_amd64.deb failed! Aborting.

I have intel processor..

libcef symlink error during rpm build

All good until it Chundered on user issues ...
calling /usr/lib/rpm/brp-suse.d/brp-15-strip-debug
calling /usr/lib/rpm/brp-suse.d/brp-20-check-la
calling /usr/lib/rpm/brp-suse.d/brp-25-symlink
ERROR: link target doesn't exist (neither in build root nor in installed system):
/opt/spotify/spotify-client/lib/libcef.so -> /opt/spotify/spotify-client/libcef.so
Add the package providing the target to neededforbuild and Requires
error: Bad exit status from /var/tmp/rpm-tmp.hQtV56 (%install)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.hQtV56 (%install)
rpmbuild -ba /usr/src/packages/SPECS/spotify-client.spec failed! Aborting.

New issues with SUSE 12.2 and newest spotify

(1) Need to update with the newest version
FNAME="spotify-client_0.8.8.323.gd143501.250-1"

(2)The script does not create /usr/share/spotify/spotify, even though the script completes successfully.

Converting .deb to .rpm using alien; this will take a few moments ...
(you can safely ignore an error from find during this step)
Warning: Skipping conversion of scripts in package spotify-client: postinst prerm
Warning: Use the --scripts parameter to include the scripts.
spotify-client-0.8.8.323.gd143501.250-1.x86_64.rpm generated
find: `spotify-client-0.8.8.323.gd143501.250': No such file or directory
Install Spotify...
Created symbolic links for Spotify library compatibility...
Create a wrapper script to include the compatibility libraries...
Spotify can now be run via /usr/bin/spotify - happy listening!

more /usr/bin/spotify

!/bin/sh

LD_LIBRARY_PATH=/usr/lib64/spotify /usr/share/spotify/spotify "$@"

but /usr/share/spotify/ is empty

I just removed the cleanup step and did:
sudo rpm -i --force --nodeps --quiet spotify-client-0.8.8.323.gd143501.250-1.x86_64.rpm

which puts the executable in /usr/bin/spotify, I did not need the wrapper.

Work fine on opensuse 13.2 Feb 2017 after ligcrypt11 install

Great instructions.
Only one problem (that has been noticed by others):
First installation failed du to missing libgcrypt.so.11
(Problem: nothing provides libgcrypt.so.11() (64bit) needed by spotify-client-0.9.17.8.gd06432d.31-1.x86_64).
Trying to ignore this dependency issue did not work for me

I downloaded the libcript.so 11 here

then as superuser
rpm -ivh libgcrypt11-1.5.4-2.4.1.x86_64.rpm

then when I started spotify everything worked !!!

thank you so much

Local mp3 files don't play

I used your script to install Spotify 0.8.4 on my openSUSE 12.2 64bit installation. Streaming works perfectly, no problem at all. But it refuses to play my local mp3 files. They can be played by any other player (Amarok for example), so the files seem to be ok.

Spotify does not crash when it tries to play the local file nor does it output anything on the console. It just stops playback. It loads the track name, artist, cover etc and displays it, but the playback progress bar has no progress marker (that moving dot) and it does output any sound. I can just skip to the next song that is not local and it would work again without any problems.

Do you have any suggestions what the problem may be? I used this version of Spotify on Linux Mint 13 with the same files and had no problems, so I guess there is a library missing or something like that.

Alternate method: Debian chroot

The method of dynamically linking against potentially incompatible platform libraries seems to be causing various instabilities, including random crashes. An alternate method to get the spotify binary to run is to run it in a chroot environment that has the right libraries installed.

According to the Spotify website and support forum, Spotify is built using Debian Squeeze and “supported” for Ubuntu 10.04 and up. Setting up a Debian-based chroot is rather trivial thanks to the debootstrap tool, for which there is an OpenSuse port. Running the chrooted spotify from a desktop session is easy as well with the schroot tool, which also has various ports available at software.opensuse.org.

For inspiration, please have a look at this script snippet, which I'm using to install Spotify in a Debian 32-bit chroot on a 64-bit OpenSuse 12.1: https://gist.github.com/4086143

Once installed, running spotify is as easy as running schroot -p spotify.

An alternative to running Spotify in the chroot could be to just install the chroot to snatch a compatible set of shared libraries from the Debian system, and then put those into the native install.

Problem with libgcrypt dependency

I tried to install spotify with a fresh installation of Opensuse Leap 42.1 and I got an error saying

Problem: nothing provides libgcrypt.so.11()(64bit) needed by spotify-client-0.9.17.8.gd06432d.31-1.x86_64

There is some workaround to this?

$ install-spotify     

Downloading Spotify .deb package ...
--2016-03-09 11:10:08--  http://repository.spotify.com/pool/non-free/s/spotify/spotify-client-0.9.17_0.9.17.8.gd06432d.31-1_amd64.deb
Resolving repository.spotify.com (repository.spotify.com)... 54.192.83.15, 54.192.83.109, 54.192.83.100, ...
Connecting to repository.spotify.com (repository.spotify.com)|54.192.83.15|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 42700518 (41M) [application/octet-stream]
Saving to: ‘/home/maikol.solis/rpmbuild/SOURCES/spotify-client-0.9.17_0.9.17.8.gd06432d.31-1_amd64.deb’

100%[=====================================================================================================================================================================================================================================>] 42,700,518  5.90MB/s   in 6.7s   

2016-03-09 11:10:15 (6.05 MB/s) - ‘/home/maikol.solis/rpmbuild/SOURCES/spotify-client-0.9.17_0.9.17.8.gd06432d.31-1_amd64.deb’ saved [42700518/42700518]

.deb downloaded.

About to build spotify-client rpm; please be patient ...

Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Ith14o
+ umask 022
+ cd /home/maikol.solis/rpmbuild/BUILD
+ cd /home/maikol.solis/rpmbuild/BUILD
+ rm -rf spotify-client-0.9.17.8.gd06432d.31
+ /usr/bin/mkdir -p spotify-client-0.9.17.8.gd06432d.31
+ cd spotify-client-0.9.17.8.gd06432d.31
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ ar -vx /home/maikol.solis/rpmbuild/SOURCES/spotify-client-0.9.17_0.9.17.8.gd06432d.31-1_amd64.deb
x - debian-binary
x - control.tar.gz
x - data.tar.xz
+ tar -xf data.tar.xz
+ rm control.tar.gz data.tar.xz debian-binary
+ cat
+ chmod +x /home/maikol.solis/rpmbuild/BUILD/spotify-client-0.9.17.8.gd06432d.31/find-requires.sh
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.W7jvjZ
+ umask 022
+ cd /home/maikol.solis/rpmbuild/BUILD
+ /usr/bin/rm -rf /home/maikol.solis/rpmbuild/BUILDROOT/spotify-client-0.9.17.8.gd06432d.31-1.x86_64
++ dirname /home/maikol.solis/rpmbuild/BUILDROOT/spotify-client-0.9.17.8.gd06432d.31-1.x86_64
+ /usr/bin/mkdir -p /home/maikol.solis/rpmbuild/BUILDROOT
+ /usr/bin/mkdir /home/maikol.solis/rpmbuild/BUILDROOT/spotify-client-0.9.17.8.gd06432d.31-1.x86_64
+ cd spotify-client-0.9.17.8.gd06432d.31
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.GaDAzz
+ umask 022
+ cd /home/maikol.solis/rpmbuild/BUILD
+ cd spotify-client-0.9.17.8.gd06432d.31
+ mv opt /home/maikol.solis/rpmbuild/BUILDROOT/spotify-client-0.9.17.8.gd06432d.31-1.x86_64
+ desktop=/home/maikol.solis/rpmbuild/BUILDROOT/spotify-client-0.9.17.8.gd06432d.31-1.x86_64/opt/spotify/spotify-client/spotify.desktop
+ sed -i 's/^\(MimeType=.*\);?$/\1;/i ;
        s/^Categories=/Categories=AudioVideo;Music;Player;Jukebox;/' /home/maikol.solis/rpmbuild/BUILDROOT/spotify-client-0.9.17.8.gd06432d.31-1.x86_64/opt/spotify/spotify-client/spotify.desktop
+ /usr/lib/rpm/suse_update_desktop_file.sh /home/maikol.solis/rpmbuild/BUILDROOT/spotify-client-0.9.17.8.gd06432d.31-1.x86_64/opt/spotify/spotify-client/spotify.desktop
WARNING: Category "Audio" is unknown \!
WARNING: it is ignored, until you registered a Category at [email protected] .
+ mkdir -p /home/maikol.solis/rpmbuild/BUILDROOT/spotify-client-0.9.17.8.gd06432d.31-1.x86_64/usr/share/doc/packages/spotify-client
+ cat
+ mkdir -p /home/maikol.solis/rpmbuild/BUILDROOT/spotify-client-0.9.17.8.gd06432d.31-1.x86_64/opt/spotify/spotify-client/lib
+ ln -sf ../Data/libcef.so /home/maikol.solis/rpmbuild/BUILDROOT/spotify-client-0.9.17.8.gd06432d.31-1.x86_64/opt/spotify/spotify-client/lib/libcef.so
+ mkdir -p /home/maikol.solis/rpmbuild/BUILDROOT/spotify-client-0.9.17.8.gd06432d.31-1.x86_64/usr/bin
+ wrapper=/home/maikol.solis/rpmbuild/BUILDROOT/spotify-client-0.9.17.8.gd06432d.31-1.x86_64/usr/bin/spotify
+ cat
+ chmod +x /home/maikol.solis/rpmbuild/BUILDROOT/spotify-client-0.9.17.8.gd06432d.31-1.x86_64/usr/bin/spotify
+ mkdir -p /home/maikol.solis/rpmbuild/BUILDROOT/spotify-client-0.9.17.8.gd06432d.31-1.x86_64/usr/lib64
+ ln -sf /lib64/libcrypto.so.1.0.0 /home/maikol.solis/rpmbuild/BUILDROOT/spotify-client-0.9.17.8.gd06432d.31-1.x86_64/opt/spotify/spotify-client/lib/libcrypto.so.0.9.8
+ ln -sf /lib64/libssl.so.1.0.0 /home/maikol.solis/rpmbuild/BUILDROOT/spotify-client-0.9.17.8.gd06432d.31-1.x86_64/opt/spotify/spotify-client/lib/libssl.so.0.9.8
+ libs=(libnss3.so.1d libnssutil3.so.1d libsmime3.so.1d libplc4.so.0d libnspr4.so.0d)
+ for lib in '"${libs[@]}"'
+ ln -sf /usr/lib64/libnss3.so /home/maikol.solis/rpmbuild/BUILDROOT/spotify-client-0.9.17.8.gd06432d.31-1.x86_64/opt/spotify/spotify-client/lib/libnss3.so.1d
+ for lib in '"${libs[@]}"'
+ ln -sf /usr/lib64/libnssutil3.so /home/maikol.solis/rpmbuild/BUILDROOT/spotify-client-0.9.17.8.gd06432d.31-1.x86_64/opt/spotify/spotify-client/lib/libnssutil3.so.1d
+ for lib in '"${libs[@]}"'
+ ln -sf /usr/lib64/libsmime3.so /home/maikol.solis/rpmbuild/BUILDROOT/spotify-client-0.9.17.8.gd06432d.31-1.x86_64/opt/spotify/spotify-client/lib/libsmime3.so.1d
+ for lib in '"${libs[@]}"'
+ ln -sf /usr/lib64/libplc4.so /home/maikol.solis/rpmbuild/BUILDROOT/spotify-client-0.9.17.8.gd06432d.31-1.x86_64/opt/spotify/spotify-client/lib/libplc4.so.0d
+ for lib in '"${libs[@]}"'
+ ln -sf /usr/lib64/libnspr4.so /home/maikol.solis/rpmbuild/BUILDROOT/spotify-client-0.9.17.8.gd06432d.31-1.x86_64/opt/spotify/spotify-client/lib/libnspr4.so.0d
+ export NO_BRP_CHECK_RPATH=true
+ NO_BRP_CHECK_RPATH=true
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-suse
calling /usr/lib/rpm/brp-suse.d/brp-05-permissions
setting / to root:root 0755. (wrong owner/group maikol.solis:users)
setting /opt/ to root:root 0755. (wrong owner/group maikol.solis:users)
setting /usr/ to root:root 0755. (wrong owner/group maikol.solis:users)
calling /usr/lib/rpm/brp-suse.d/brp-15-strip-debug
calling /usr/lib/rpm/brp-suse.d/brp-25-symlink
calling /usr/lib/rpm/brp-suse.d/brp-30-desktop
WARNING: '/usr/lib/rpm/brp-desktop.data/suse-screensavers.menu' does not exist
WARNING: '/usr/lib/rpm/brp-desktop.data/applications-kmenuedit.menu' does not exist
WARNING: '/usr/lib/rpm/brp-desktop.data/custom.menu' does not exist
Unknown 'DefaultLayout':
        'HASH(0x1666bb8) 0 
                 Merge ARRAY(0x166c680) 0 
                 Merge ARRAY(0x166c4d0) 0 
        '
calling /usr/lib/rpm/brp-suse.d/brp-35-rpath
NO_BRP_CHECK_RPATH is set: skipping check
calling /usr/lib/rpm/brp-suse.d/brp-40-rootfs
calling /usr/lib/rpm/brp-suse.d/brp-45-tcl
calling /usr/lib/rpm/brp-suse.d/brp-50-check-python
calling /usr/lib/rpm/brp-suse.d/brp-55-boot-scripts
calling /usr/lib/rpm/brp-suse.d/brp-60-hook
calling /usr/lib/rpm/brp-suse.d/brp-65-lib64-linux
Processing files: spotify-client-0.9.17.8.gd06432d.31-1.x86_64
Finding  Provides: /usr/lib/rpm/find-provides spotify-client
Finding  Requires(interp): 
Finding  Requires(rpmlib): 
Finding  Requires(verify): 
Finding  Requires(pre): 
Finding  Requires(post): 
Finding  Requires(preun): 
Finding  Requires(postun): 
Finding  Requires(pretrans): 
Finding  Requires(posttrans): 
Finding  Requires: /home/maikol.solis/rpmbuild/BUILD/spotify-client-0.9.17.8.gd06432d.31/find-requires.sh
Provides: spotify-client = 0.9.17.8.gd06432d.31-1 spotify-client(x86-64) = 0.9.17.8.gd06432d.31-1 libcef.so()(64bit) libcef.so(libcef.so)(64bit) libffmpegsumo.so()(64bit) libffmpegsumo.so(libffmpegsumo.so)(64bit)
Requires(interp): /bin/sh /bin/sh /bin/sh
Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1
Requires(post): /bin/sh
Requires(preun): /bin/sh
Requires(postun): /bin/sh
Requires: /bin/bash /bin/sh ld-linux-x86-64.so.2()(64bit) ld-linux-x86-64.so.2(GLIBC_2.3)(64bit) libasound.so.2()(64bit) libasound.so.2(ALSA_0.9)(64bit) libatk-1.0.so.0()(64bit) libcairo.so.2()(64bit) libcef.so()(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.10)(64bit) libc.so.6(GLIBC_2.11)(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.15)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3.2)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.4)(64bit) libc.so.6(GLIBC_2.6)(64bit) libc.so.6(GLIBC_2.7)(64bit) libc.so.6(GLIBC_2.8)(64bit) libc.so.6(GLIBC_2.9)(64bit) libcups.so.2()(64bit) libdbus-1.so.3()(64bit) libdl.so.2()(64bit) libdl.so.2(GLIBC_2.2.5)(64bit) libexpat.so.1()(64bit) libfontconfig.so.1()(64bit) libfreetype.so.6()(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libgcc_s.so.1(GCC_3.4)(64bit) libgcc_s.so.1(GCC_4.0.0)(64bit) libgconf-2.so.4()(64bit) libgcrypt.so.11()(64bit) libgcrypt.so.11(GCRYPT_1.2)(64bit) libgdk_pixbuf-2.0.so.0()(64bit) libgdk-x11-2.0.so.0()(64bit) libgio-2.0.so.0()(64bit) libglib-2.0.so.0()(64bit) libgmodule-2.0.so.0()(64bit) libgobject-2.0.so.0()(64bit) libgthread-2.0.so.0()(64bit) libgtk-x11-2.0.so.0()(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.2.5)(64bit) libnspr4.so()(64bit) libnss3.so()(64bit) libnss3.so(NSS_3.10)(64bit) libnss3.so(NSS_3.11.1)(64bit) libnss3.so(NSS_3.11.2)(64bit) libnss3.so(NSS_3.11)(64bit) libnss3.so(NSS_3.12.1)(64bit) libnss3.so(NSS_3.12.3)(64bit) libnss3.so(NSS_3.12.4)(64bit) libnss3.so(NSS_3.12)(64bit) libnss3.so(NSS_3.12.6)(64bit) libnss3.so(NSS_3.2)(64bit) libnss3.so(NSS_3.3)(64bit) libnss3.so(NSS_3.4)(64bit) libnss3.so(NSS_3.5)(64bit) libnss3.so(NSS_3.6)(64bit) libnss3.so(NSS_3.7)(64bit) libnss3.so(NSS_3.8)(64bit) libnss3.so(NSS_3.9.2)(64bit) libnss3.so(NSS_3.9)(64bit) libnssutil3.so()(64bit) libnssutil3.so(NSSUTIL_3.12.3)(64bit) libnssutil3.so(NSSUTIL_3.12)(64bit) libpango-1.0.so.0()(64bit) libpangocairo-1.0.so.0()(64bit) libpangoft2-1.0.so.0()(64bit) libpangoxft-1.0.so.0()(64bit) libplc4.so()(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.2.5)(64bit) libpthread.so.0(GLIBC_2.3.2)(64bit) libpthread.so.0(GLIBC_2.3.3)(64bit) libQtCore.so.4()(64bit) libQtDBus.so.4()(64bit) libQtGui.so.4()(64bit) libQtNetwork.so.4()(64bit) libresolv.so.2()(64bit) libresolv.so.2(GLIBC_2.2.5)(64bit) libresolv.so.2(GLIBC_2.9)(64bit) librt.so.1()(64bit) librt.so.1(GLIBC_2.2.5)(64bit) libsmime3.so()(64bit) libsmime3.so(NSS_3.10)(64bit) libsmime3.so(NSS_3.2)(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(GLIBCXX_3.4.10)(64bit) libstdc++.so.6(GLIBCXX_3.4.11)(64bit) libstdc++.so.6(GLIBCXX_3.4.14)(64bit) libstdc++.so.6(GLIBCXX_3.4.15)(64bit) libstdc++.so.6(GLIBCXX_3.4.5)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) libstdc++.so.6(GLIBCXX_3.4.9)(64bit) libudev.so.1()(64bit) libX11.so.6()(64bit) libXcomposite.so.1()(64bit) libXdamage.so.1()(64bit) libXext.so.6()(64bit) libXfixes.so.3()(64bit) libXi.so.6()(64bit) libXrender.so.1()(64bit) libXss.so.1()(64bit)
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/maikol.solis/rpmbuild/BUILDROOT/spotify-client-0.9.17.8.gd06432d.31-1.x86_64
warning: Could not canonicalize hostname: linux-933z
Wrote: /home/maikol.solis/rpmbuild/SRPMS/spotify-client-0.9.17.8.gd06432d.31-1.nosrc.rpm
Wrote: /home/maikol.solis/rpmbuild/RPMS/x86_64/spotify-client-0.9.17.8.gd06432d.31-1.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.TQR0tR
+ umask 022
+ cd /home/maikol.solis/rpmbuild/BUILD
+ cd spotify-client-0.9.17.8.gd06432d.31
+ /usr/bin/rm -rf /home/maikol.solis/rpmbuild/BUILDROOT/spotify-client-0.9.17.8.gd06432d.31-1.x86_64
+ rm -rf filelists

rpm successfully built!

Installing Spotify from the rpm we just built ...
Loading repository data...
Reading installed packages...
Resolving package dependencies...

Problem: nothing provides libgcrypt.so.11()(64bit) needed by spotify-client-0.9.17.8.gd06432d.31-1.x86_64
 Solution 1: do not install spotify-client-0.9.17.8.gd06432d.31-1.x86_64
 Solution 2: break spotify-client-0.9.17.8.gd06432d.31-1.x86_64 by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/c] (c): ```

New release

0.9.1.55.gbdd3b79.203-1 has been released, the older one is gone

libgcrypt11 cannot be resolved in openSUSE 13.2

openSUSE 13.2 only has libgcrypt20 available, but Spotify requires libgcrypt11 to be installed. I guess my previous attempt worked fine because I was working with a system that was upgraded from 13.1, but after trying to install Spotify on a fresh 13.2, I had to manually install libgcrypt11 in order for the build to succeed.

No pull request for this because I don't know what the best approach would be. Perhaps use zypper to check for the existence of libgcrypt11 on the system, and if it's not found install it from the build service before continuing to build Spotify.

No need for a separate library directory and LD_LIBRARY_PATH

Just a quick comment: Spotify 0.8.4 seems to add /usr/share/spotify to its default list of directories to search for shared libraries. Just putting compatible libraries (or symlinks thereto) into this directory could help simplify the script (no need to decide on /usr/lib vs /usr/lib64) and eliminate the need for the wrapper script.

Srpm cannot be rebuilt on another architecture

Since the rpm only defines one source, the srpm will only contain one architecture. This contradicts the whole idea of a srpm, it should be possible to rebuild it on any host., and it must thus contain both arhitectures.

NOTICE: Spotify-installer in PACKMAN repository

Hi!

Just wanted to mention the updated version of this installer script is in the Packman community repository for OpenSUSE --

First, go grab libgcrypt11 for the libgcrypt.so.11 library:

https://software.opensuse.org/package/libgcrypt11

I just downloaded the RPM instead of using the '1-click-install' so it doesn't add a strange repository to my list.

Install using Software Management - ignore the GPG error by hitting 'i' - since you won't have the md5 for this file, but it'll be OK.

Then, to add the Packman repo go to:
Software Repositories --> Community Repositories --> Select Packman --> Refresh (finish)

Search for spotify in Software Management or using Zypper - install 'Spotify-installer' then type 'install-spotify' and that's it! It'll download the most recent copy, which the repository here does not.

Would be very helpful to mention it in bold in the README.md if you don't plan on updating the git repo.

Thanks for making this great script available to us all!

Symbol fonts missing?

Hi!

I could build the RPM fine on openSUSE Leap 42.3 but when I run the client, many symbols are missing, in particular the "play" icon. It seems, spotify is trying to use a symbol font that I don't have. Any hint on what this might be?

Thanks,

Tilman

needs new maintainer

It's well past time for me to reluctantly admit that due to a severe lack of spare time (and it has to be said, also lack of enthusiasm for working with proprietary software), I'm doing a lousy job of maintaining what I started here. So I'd like to look around for volunteers to take this over. If you're interested, please add a comment below introducing yourself with a brief statement on why you think you'd be a good candidate for maintainership. I'm also open to the idea of two or three people as co-maintainers.

Thanks!

Some changes in filename makes compiling don't work

In the "Manual way" (dowloading .SPEC and .sh files), there is some issue. Latest client is "spotify-client-0.9.17_0.9.17.8.gd06432d.31-1_amd64.deb". I changed to correct version in both ".SPEC" and ".sh" file, but however it was not sufficient. Previous "deb" filename began with "spotify-client_" and now is "spotify-client-", so with this change at least the script is able to download finally the ".deb" file.

However, compilation doesn't end, cause a new error related to use "-" instead "_" happens:

/home/rafael/rpmbuild/SOURCES/spotify-client-0.9.17_0.9.17.8.gd06432d.31-1_amd64.deb
Skipping download.
About to build spotify-client rpm; please be patient ...
advertencia:Macro expanded in comment on line 183: %{_datadir}/applications/spotify.desktop

Ejecutando(%prep): /bin/sh -e /var/tmp/rpm-tmp.lpFuO4
+ umask 022
+ cd /home/rafael/rpmbuild/BUILD
+ cd /home/rafael/rpmbuild/BUILD
+ rm -rf spotify-client-0.9.17_0.9.17.8.gd06432d.31
+ /usr/bin/mkdir -p spotify-client-0.9.17_0.9.17.8.gd06432d.31
+ cd spotify-client-0.9.17_0.9.17.8.gd06432d.31
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ ar -x /home/rafael/rpmbuild/SOURCES/spotify-client-0.9.17_0.9.17.8.gd06432d.31-1_amd64.deb
+ tar -xzf data.tar.gz
tar (child): data.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
error: Estado de salida erróneo de /var/tmp/rpm-tmp.lpFuO4 (%prep)

Errores de construcción RPM:
Macro expanded in comment on line 183: %{_datadir}/applications/spotify.desktop

Estado de salida erróneo de /var/tmp/rpm-tmp.lpFuO4 (%prep)

but unfortunately I don't know what to change now.

any suggestion?

Thank you

rpmbuild fails with spotify-client.spec

[aerospike@AeroSpike-Laptop opensuse-spotify-installer]$ ./install-spotify.sh
Current version = (not installed), release = , arch =
Online version = 1.0.24.104.g92a22684, release = 29, arch = x86_64

Creating spec file from template...

rpm-build is already installed.

Downloading Spotify .deb package ...
/home/aerospike/rpmbuild/SOURCES/spotify-client_ 100%[=====================================================================================================>] 72,57M 7,52MB/s in 19s
.deb downloaded.

About to build spotify-client rpm; please be patient ...

Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.A2M5fM

  • umask 022
  • cd /home/aerospike/rpmbuild/BUILD
  • cd /home/aerospike/rpmbuild/BUILD
  • rm -rf spotify-client-1.0.24.104.g92a22684
  • /usr/bin/mkdir -p spotify-client-1.0.24.104.g92a22684
  • cd spotify-client-1.0.24.104.g92a22684
  • /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
  • ar -x /home/aerospike/rpmbuild/SOURCES/spotify-client_1.0.24.104.g92a22684-29_amd64.deb
  • tar -xf data.tar.gz
  • rm control.tar.gz data.tar.gz debian-binary
  • cat
  • chmod +x /home/aerospike/rpmbuild/BUILD/spotify-client-1.0.24.104.g92a22684/find-requires.sh
  • exit 0
    Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.aYfJAR
  • umask 022
  • cd /home/aerospike/rpmbuild/BUILD
  • /usr/bin/rm -rf /home/aerospike/rpmbuild/BUILDROOT/spotify-client-1.0.24.104.g92a22684-29.x86_64
    ++ dirname /home/aerospike/rpmbuild/BUILDROOT/spotify-client-1.0.24.104.g92a22684-29.x86_64
  • /usr/bin/mkdir -p /home/aerospike/rpmbuild/BUILDROOT
  • /usr/bin/mkdir /home/aerospike/rpmbuild/BUILDROOT/spotify-client-1.0.24.104.g92a22684-29.x86_64
  • cd spotify-client-1.0.24.104.g92a22684
  • exit 0
    Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.6ufQZW
  • umask 022
  • cd /home/aerospike/rpmbuild/BUILD
  • cd spotify-client-1.0.24.104.g92a22684
  • mv usr /home/aerospike/rpmbuild/BUILDROOT/spotify-client-1.0.24.104.g92a22684-29.x86_64
  • desktop=/home/aerospike/rpmbuild/BUILDROOT/spotify-client-1.0.24.104.g92a22684-29.x86_64/usr/share/spotify/spotify.desktop
  • sed -i 's/^(MimeType=.*);?$/\1;/i ;
    s/^Categories=/Categories=AudioVideo;Music;Player;Jukebox;/' /home/aerospike/rpmbuild/BUILDROOT/spotify-client-1.0.24.104.g92a22684-29.x86_64/usr/share/spotify/spotify.desktop
  • %suse_update_desktop_file /home/aerospike/rpmbuild/BUILDROOT/spotify-client-1.0.24.104.g92a22684-29.x86_64/usr/share/spotify/spotify.desktop
    /var/tmp/rpm-tmp.6ufQZW: line 40: fg: no job control
    error: Bad exit status from /var/tmp/rpm-tmp.6ufQZW (%install)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.6ufQZW (%install)
rpmbuild -ba /tmp/spotify-client.spec failed! Aborting.

Confusing final message when installation fails

I attempted to install Spotify using this installer but the installation failed due to libcrypt11 missing.

I know how to solve the issue and I installed libcrypt11 from
https://software.opensuse.org/package/libgcrypt11

What I did not expect though was the message at the end of the failed installation output :)

rpm successfully built!

Installing Spotify from the rpm we just built ...
[sudo] password for root: 

Loading repository data...
Reading installed packages...
Resolving package dependencies...

Problem: nothing provides libgcrypt.so.11()(64bit) needed by spotify-client-0.9.17.8.gd06432d.31-1.x86_64
 Solution 1: do not install spotify-client-0.9.17.8.gd06432d.31-1.x86_64
 Solution 2: break spotify-client-0.9.17.8.gd06432d.31-1.x86_64 by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/c] (c): 1
Resolving dependencies...
Resolving package dependencies...

Nothing to do.
Failed to install /home/geckon/rpmbuild/RPMS/x86_64/spotify-client-0.9.17.8.gd06432d.31-1.x86_64.rpm :-(
Please consider filing a bug at:

    https://github.com/aspiers/opensuse-spotify-installer/issues


Spotify can now be run via /usr/bin/spotify - happy listening!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.