aspiers / opensuse-spotify-installer

Automate installation of Spotify on openSUSE
80 stars 29 forks source link

Does not run on openSUSE 13.2 #33

Open KINFOO opened 10 years ago

KINFOO commented 10 years ago

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 opensuse-packaging@opensuse.org .
+ 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

KINFOO commented 10 years ago

Hi,

I try to compile libgcrypt.so at version 0.9.8. Well, it is hell.

Compiling this version of libgcrypt require automake => 1.14: this is not in repositories! When you compiled automake, you go back to compiling libgcrypt. Suprise, it is unable to configure:

$ autoscan 
configure.in: warning: missing AC_CHECK_FUNCS([dup2]) wanted by: cipher/rndunix.c:349
configure.in: warning: missing AC_CHECK_FUNCS([memset]) wanted by: cipher/cipher.c:395
configure.in: warning: missing AC_CHECK_FUNCS([select]) wanted by: cipher/rndunix.c:500
configure.in: warning: missing AC_CHECK_FUNCS([socket]) wanted by: cipher/rndegd.c:122
configure.in: warning: missing AC_CHECK_FUNCS([strchr]) wanted by: src/sexp.c:389
configure.in: warning: missing AC_CHECK_HEADERS([fcntl.h]) wanted by: cipher/rndunix.c:68
configure.in: warning: missing AC_CHECK_HEADERS([sys/ioctl.h]) wanted by: cipher/rndlinux.c:38
configure.in: warning: missing AC_CHECK_HEADERS([sys/socket.h]) wanted by: cipher/rndegd.c:31
configure.in: warning: missing AC_CHECK_HEADERS([sys/time.h]) wanted by: cipher/rndegd.c:26
configure.in: warning: missing AC_FUNC_FORK wanted by: cipher/rndunix.c:336
configure.in: warning: missing AC_FUNC_MALLOC wanted by: cipher/rndunix.c:637
configure.in: warning: missing AC_PROG_LN_S wanted by: Makefile.am:18
configure.in: warning: missing AC_TYPE_PID_T wanted by: cipher/rndunix.c:174
configure.in: warning: missing AC_TYPE_UID_T wanted by: cipher/rndunix.c:298
$ aclocal                
acinclude.m4:15: warning: underquoted definition of GNUPG_CHECK_TYPEDEF
  run info '(automake)Extending aclocal'
  or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
acinclude.m4:354: warning: underquoted definition of GNUPG_PROG_NM
acinclude.m4:388: warning: underquoted definition of GNUPG_SYS_NM_PARSE
acinclude.m4:555: warning: underquoted definition of GNUPG_SYS_LIBTOOL_CYGWIN32
acinclude.m4:562: warning: underquoted definition of GNUPG_SYS_SYMBOL_UNDERSCORE
aclocal:configure.in:168: warning: macro `AM_DISABLE_SHARED' not found in library
aclocal:configure.in:170: warning: macro `AM_PROG_LIBTOOL' not found in library
aclocal:configure.in:269: warning: macro `AM_GNU_GETTEXT' not found in library
$ autoheader 
autoheader: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader: WARNING: is deprecated and discouraged.
autoheader: 
autoheader: WARNING: Using the third argument of `AC_DEFINE' and
autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a template without
autoheader: WARNING: `acconfig.h':
autoheader: 
autoheader: WARNING:   AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader:             [Define if a function `main' is needed.])
autoheader: 
autoheader: WARNING: More sophisticated templates can also be produced, see the
autoheader: WARNING: documentation.
$ autoconf 
configure.in:168: error: possibly undefined macro: AM_DISABLE_SHARED
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:170: error: possibly undefined macro: AM_PROG_LIBTOOL
configure.in:269: error: possibly undefined macro: AM_GNU_GETTEXT
$ ./configure 
configure: error: cannot find sources (g10/g10.c) in . or ..

How nice... Let me know if you guys manage to do better.

Thanks

Heart1010 commented 10 years ago

hmmm... changed version number in install script and also in SPEC file (changed also line ln -sf ../Data/libcef...) and I was able to build/install spotify.

I can also run it... I only get these two lines after starting it in cosole

$ spotify 
./spotify: /lib64/libssl.so.1.0.0: no version information available (required by ./spotify)
./spotify: /lib64/libcrypto.so.1.0.0: no version information available (required by ./spotify)

...but spotify runs, see screenshot spotify

KINFOO commented 10 years ago

First of all, thanks for your time.

Are your running Opensuse 13.2. It appears to me that dependencies for libcrypt changed. So my case happen only when you run install-spotify on a fresh 13.2.

My ugly and working solution is: use install-spotify in a virtual box. Copy Spotify *.so from virtual box image to my 13.2 and then:

sudo cp /path/to/old_libs/libgcrypt.so.11 /opt/spotify/spotify-client/lib/
sudo ln -s /opt/spotify/spotify-client/lib/libcrypto.so.0.9.8 /opt/spotify/spotify-client/lib/libgcrypt.so.11

A shame I could not figure out better...

KINFOO commented 10 years ago

@Heart1010 I just saw the Konsole on your screen shot. I see that you have a 13.2 is it a fresh install or did you upgrade from 13.1?

For the record:

$ zypper se -si spotify                                                                                        
Chargement des données du dépôt...
Lecture des paquets installés...

S | Nom               | Type   | Version                    | Arch   | Dépôt             
--+-------------------+--------+----------------------------+--------+-------------------
i | spotify-client    | paquet | 0.9.11.27.g2b1a638.81-1    | x86_64 | (Paquets système) 
i | spotify-installer | paquet | 0.9.4.183.g644e24e.428-2.1 | noarch | Packman Repository
Heart1010 commented 10 years ago

@KINFOO that is a "upgraded 13.2" (from 13.1 via zypper dup)

$ ll /lib64/libcrypt*
-rwxr-xr-x 1 root root   58107  6. Okt 16:25 /lib64/libcrypt-2.19.so
-r-xr-xr-x 1 root root 2220464 12. Nov 11:15 /lib64/libcrypto.so.1.0.0
lrwxrwxrwx 1 root root      16 12. Nov 17:14 /lib64/libcrypt.so.1 -> libcrypt-2.19.so

$ ll /lib64/libssl*
-r-xr-xr-x 1 root root 421112 12. Nov 11:15 /lib64/libssl.so.1.0.0

$ zypper wp libssl.so.1.0.0
S | Name                  | Zusammenfassung                             | Typ  
--+-----------------------+---------------------------------------------+------
i | hipchat               | Persistent group chat using XMPP.           | Paket
i | libopenssl1_0_0       | Secure Sockets und Transport Layer Security | Paket
i | libopenssl1_0_0-32bit | Secure Sockets und Transport Layer Security | Paket

$ zypper wp libcrypto.so.1.0.0
S | Name                  | Zusammenfassung                             | Typ  
--+-----------------------+---------------------------------------------+------
i | hipchat               | Persistent group chat using XMPP.           | Paket
i | libopenssl1_0_0       | Secure Sockets und Transport Layer Security | Paket
i | libopenssl1_0_0-32bit | Secure Sockets und Transport Layer Security | Paket

$ zypper se -si libopenssl*
S | Name                  | Typ   | Version      | Arch   | Repository              
--+-----------------------+-------+--------------+--------+-------------------------
i | libopenssl1_0_0       | Paket | 1.0.1j-2.4.1 | x86_64 | openSUSE 13.2 OSS Update
i | libopenssl1_0_0-32bit | Paket | 1.0.1j-2.4.1 | x86_64 | openSUSE 13.2 OSS Update
KINFOO commented 10 years ago

@Heart1010 Here is a list of dependencies version, just like you did:

$ ll /lib64/libssl*
-r-xr-xr-x 1 root root 412K 12 nov.  11:15 /lib64/libssl.so.1.0.0
$ zypper wp libssl.so.1.0.0
S | Nom                   | Résumé                                      | Type  
--+-----------------------+---------------------------------------------+-------
i | libopenssl1_0_0       | Secure Sockets and Transport Layer Security | paquet
i | libopenssl1_0_0-32bit | Secure Sockets and Transport Layer Security | paquet
$ zypper wp libcrypto.so.1.0.0
S | Nom                   | Résumé                                      | Type  
--+-----------------------+---------------------------------------------+-------
i | libopenssl1_0_0       | Secure Sockets and Transport Layer Security | paquet
i | libopenssl1_0_0-32bit | Secure Sockets and Transport Layer Security | paquet
$ zypper se -si "libopenssl*"
S | Nom                   | Type   | Version      | Arch   | Dépôt                 
--+-----------------------+--------+--------------+--------+-----------------------
i | libopenssl-devel      | paquet | 1.0.1j-2.4.1 | x86_64 | Main Update Repository
i | libopenssl1_0_0       | paquet | 1.0.1j-2.4.1 | x86_64 | Main Update Repository
i | libopenssl1_0_0-32bit | paquet | 1.0.1j-2.4.1 | x86_64 | Main Update Repository

None the less, I can reproduce my crash :smile:

$ install-spotify -u
Removing spotify-client rpm ...
Préparation des paquets...
spotify-client-0.9.11.27.g2b1a638.81-1.x86_64
De-installation done!
$ sudo rm -frv /opt/spotify/spotify-client 
« /opt/spotify/spotify-client/lib/libudev.0 » supprimé
« /opt/spotify/spotify-client/lib/libudev.so.0 » supprimé
« /opt/spotify/spotify-client/lib/libgcrypt.so.11 » supprimé
répertoire supprimé : « /opt/spotify/spotify-client/lib »
répertoire supprimé : « /opt/spotify/spotify-client »
$ 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.ECR8u9
+ 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.TlfF98
+ 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.3fGnP8
+ 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 opensuse-packaging@opensuse.org .
+ 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.NZZJXM
+ 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 ...
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

Now I copy one lib from a 13.1 install and symlink another of running 13.2:

$ sudo cp /old_install/libs/libcrypto.so.0.9.8 /opt/spotify/spotify-client/lib/libgcrypt.so.11
$ sudo ln -s /usr/lib64/libudev.so.1 /opt/spotify/spotify-client/lib/libudev.so.0

Then spotify works...

lnu commented 10 years ago

Same as you here on a fresh 13.2 install If i symlink (sudo ln -s /usr/lib64/libgcrypt.so.20 /opt/spotify/spotify-client/lib/libgcrypt.so.11) I get this error: ./spotify: /opt/spotify/spotify-client/lib/libgcrypt.so.11: version `GCRYPT_1.2' not found (required by /opt/spotify/spotify-client/Data/libcef.so)

TheN8mare commented 9 years ago

I simply installed spotify per 'sudo zypper in spotify-installer', ignoring the warning. Then I installed ftp://rpmfind.net/linux/opensuse/update/13.1/x86_64/libgcrypt11-1.5.4-2.4.1.x86_64.rpm manually. Now it all works w/o any errors.

lnu commented 9 years ago

Thanks!

Tsuroerusu commented 9 years ago

For anybody having problems with libgcrypt11 missing, that older version is available as a package from the openSUSE build service: https://software.opensuse.org/package/libgcrypt11

I installed it from the home:hennevogel repository, then Spotify also needed libudev.so.0, so I just installed the libudev0 package which is also available from that repository, and then Spotify works! :)

KINFOO commented 9 years ago

Real nice

redical commented 9 years ago

hi all, hope these will help some of you (sorry for my bad english):

for the new version (24 of march 2015) i had to update the following lines in \usr\bin\install-spotify:

RPM_NAME="spotify-client" VERSION="0.9.17.1.g9b85d43.7-1"

in \usr\src\packages\specs\spotify-client.spec the lines:

Version: 0.9.17.1.g9b85d43.7 Release: 1

and

tar -xpf data.tar.xz (old: tar -xzf data.tar.gz)

and

rm control.tar.gz data.tar.xz debian-binary (old: rm {control,data}.tar.gz debian-binary)

and

ln -sf ../Data/libcef.so %{buildroot}%{spotifylibdir}/libcef.so (old: ln -sf ../libcef.so %{buildroot}%{spotifylibdir}/libcef.so)

Also I had to manually copy the install-spotify from \usr\bin\ to \home\rpmbuild\SOURCES and rename it to install-spotify.sh (I think these folders were created with the first run, wich returned several errors).

With these changes I could install the latest verion of spotify. yours red

ps. i also had to install libgcrypt11, libudev0 before the above steps

dhersan commented 9 years ago

Hi, for the new version "spotify-client_0.9.17.1.g9b85d43.7-1_amd64.deb", i just change the following lines:

 19 Group:          Productivity/Multimedia/Sound/Players
 20 Version:        0.9.17.1.g9b85d43.7 # New version
 21 Release:        1
 22 Source0:        spotify-client_0.9.17.1.g9b85d43.7-1_amd64.deb # New version
 23 NoSource:       0
...
 64 # unpack data
 65 tar -xf data.tar.xz # Change gz -> xz
 66 # remove used files
 67 rm data.tar.xz control.tar.gz # Add xz
 22 # Name of file residing within official Spotify repository above
 23 RPM_NAME="spotify-client"
 24 VERSION="0.9.17.1.g9b85d43.7-1" # New version
 25 BASENAME="${RPM_NAME}_$VERSION"

Notice: I had to install libgcrypt11 and libgcrypt11 before running the script.

And now.... instantanea1

roberto68 commented 9 years ago

I installed manually : rpm -ivh libgcrypt... form ftp://rpmfind.net/linux/opensuse/update/13.1/x86_64/libgcrypt11-1.5.4-2.4.1.x86_64.rpm and my advise always chcek standalone packages like theese with clamscan ( part of clamav). opensuse 13.2