Help Wizard

Step 1

NEXT STEP

[Linux] Fedora RPM package for F17-F19

Solved!

[Linux] Fedora RPM package for F17-F19

Current method to install the spotify rpm is based on the rpmfusion lpf-spotify-client package. Basically, this automates the process of downloading, building and installing a spotity rpm based on the official Debian packages.

 

EDIT: Bug reported (page 19), temporary work-around published.

 

EDIT: New solution based on the rpmfusion lpf-spotify-client package. Old  method deprecated but still available.

 

EDIT: updated for new upstream release: 0.9.4.183.g644e24e.428-2

 

EDIT: Solution updated for 0.9.1.55.

 

EDIT: Downgrading procedure to 0.8.4 published

 

EDIT: Update header to include F19

 

EDIT: Solution updated for 0.9.0.133

 

EDIT: updating link

 

EDIT: new solution for 0.8.8 published.

Reply
223 Replies

I have updated the spec. New release: 0.9.4.183.g644e24e.428-2.

 

As usual, no real testing besides starting the thing done. Feedback welcome!

 

--alec

Just tried 0.9.4.183 on  fc19.x86_64

I can build the package OK and install it, but I get the following errors when trying to start the software:

 

/usr/lib64/spotify-client/spotify: /usr/lib64/spotify-client/libcrypto.so.0.9.8: version `OPENSSL_0.9.8' not found (required by /usr/lib64/spotify-client/spotify)
/usr/lib64/spotify-client/spotify: /usr/lib64/spotify-client/libssl.so.0.9.8: version `OPENSSL_0.9.8' not found (required by /usr/lib64/spotify-client/spotify)

 

The libraries are present in /rpmbuild/BUILD/spotify-make-90fa8c93714abb79ff25a8798b961b827575817b/fedora/amd64

 

If I reinstall 0.9.1.55 everything works fine.

Will look into this tomorrow. Thansk for reporting (but, really, what's happening here?)

--alec

Runs fine for me ... "scratches my head".

 

What do you get when running "which spotify"?

"which spotify"?

/usr/bin/spotify

 

.. anyway, I found out what the problem is..

After installing the update, Fedora cleans the old installation..

.. in doing so, it removes the 2 libraries..

If I uninstall the old version and then install the new one, everything works fine..

 

.. so, all good, but people might experience a problem when upgrading from an old version to a new one..

... and, btw, thank you for your work as usual..

If you can't upgrade something is seriously broken. I'll look into this later. Thx for sorting this out (still puzzled, for sure...)

Upgrade worked for me without any problems (unlike ivnmad, I did no uninstall / reinstall) :

  • $ su -c 'yum install ./spotify-client-0.9.4.183.g644e24e.428-2.fc19.x86_64.rpm'
    [...]
    ==================================================================================
    Package               Arch          Version                              Paketquelle                                                 Größe
    ==================================================================================
    Aktualisieren:
    spotify-client        x86_64        0.9.4.183.g644e24e.428-2.fc19        /spotify-client-0.9.4.183.g644e24e.428-2.fc19.x86_64        114 M

    Transaktionsübersicht
    =================================================================================
    Aktualisieren  1 Paket
    Gesamtgröße: 114 M
    Is this ok [y/d/N]: y
    Downloading packages:
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
      Aktualisieren    : spotify-client-0.9.4.183.g644e24e.428-2.fc19.x86_64                   1/2
      Aufräumen        : spotify-client-0.9.1.55.gbdd3b79.203-1.fc19.x86_64                    2/2
      Überprüfung läuft: spotify-client-0.9.4.183.g644e24e.428-2.fc19.x86_64                 1/2
      Überprüfung läuft: spotify-client-0.9.1.55.gbdd3b79.203-1.fc19.x86_64                   2/2

    Aktualisiert:
      spotify-client.x86_64 0:0.9.4.183.g644e24e.428-2.fc19

    Komplett!
  • My System
    $ uname -a:
    Linux [...] 3.11.3-201.fc19.x86_64 #1 SMP Thu Oct 3 00:47:03 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux


Really really thank you for the great job! 🙂

The problem must be with my system then and how it creates the new package..
I've just tried to start all over again, and it doesn't work if I either do an upgrade or a new installation..

I'm attaching a file with all the steps.. 

I can see nothing wrong in what you do... stay tuned...

Can't reproduce this.

 

I think   we need:

- The outcome  from 'ldd /usr/lib64/spotify-client/spotify | grep 0.9.8'

- That you explicitly nvoke /usr/bin/spotify ,

- After installing the chrpath package, the output from chrpath -l /usr/lib64/spotify-client/spotify

- The output from ls -l /usr/lib64/spotify-client.

OK, here are dragons. If the spec works for anyone as it is  it's certainly  sheer luck. Back later.

Spec file updated:

 

* Sat Oct 12 2013 Alec Leamas <leamas@nowhere.net> - 0.9.4.183.g644e24e.428-3
- Updating to latest spotify-make
- Fixes for directory layout in 0.9.4, notably SpotifyHelper in Data.

 Sorry for a sloppy update, I didn't check this one as I should have before publishing.

 

ivnmad: if your problems persist, please provide info as requested above.

 

--alec

.. upgraded to F20 and everything woks fine..

It must have been a problem with my F19 installation even if I really don't understand where the problem was..

Never mind..

After upgrade to spotify-client-0.9.4.183, client fails with "failed loaded skin"... any suggestions?

 

[alex@localhost x86_64]$ sudo yum erase spotify-client
Loaded plugins: langpacks, refresh-packagekit
Resolving Dependencies
--> Running transaction check
---> Package spotify-client.x86_64 0:0.9.1.55.gbdd3b79.203-1.fc18 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================================================================================
 Package                                Arch                           Version                                               Repository                                                                       Size
===================================================================================================================================================================================================================
Removing:
 spotify-client                         x86_64                         0.9.1.55.gbdd3b79.203-1.fc18                          @/spotify-client-0.9.1.55.gbdd3b79.203-1.fc18.x86_64/18                          94 M

Transaction Summary
===================================================================================================================================================================================================================
Remove  1 Package

Installed size: 94 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : spotify-client-0.9.1.55.gbdd3b79.203-1.fc18.x86_64                                                                                                                                              1/1
  Verifying  : spotify-client-0.9.1.55.gbdd3b79.203-1.fc18.x86_64                                                                                                                                              1/1

Removed:
  spotify-client.x86_64 0:0.9.1.55.gbdd3b79.203-1.fc18                                                                                                                                                            

Complete!
[alex@localhost x86_64]$ sudo yum install ./spotify-client-0.9.4.183.g644e24e.428-3.fc19.x86_64.rpm
Loaded plugins: langpacks, refresh-packagekit
Examining ./spotify-client-0.9.4.183.g644e24e.428-3.fc19.x86_64.rpm: spotify-client-0.9.4.183.g644e24e.428-3.fc19.x86_64
Marking ./spotify-client-0.9.4.183.g644e24e.428-3.fc19.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package spotify-client.x86_64 0:0.9.4.183.g644e24e.428-3.fc19 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================================================================================
 Package                                Arch                           Version                                                  Repository                                                                    Size
===================================================================================================================================================================================================================
Installing:
 spotify-client                         x86_64                         0.9.4.183.g644e24e.428-3.fc19                            /spotify-client-0.9.4.183.g644e24e.428-3.fc19.x86_64                         114 M

Transaction Summary
===================================================================================================================================================================================================================
Install  1 Package

Total size: 114 M
Installed size: 114 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : spotify-client-0.9.4.183.g644e24e.428-3.fc19.x86_64                                                                                                                                             1/1
  Verifying  : spotify-client-0.9.4.183.g644e24e.428-3.fc19.x86_64                                                                                                                                             1/1

Installed:
  spotify-client.x86_64 0:0.9.4.183.g644e24e.428-3.fc19                                                                                                                                                           

Complete!
[alex@localhost x86_64]$ which spotify
/usr/bin/spotify
[alex@localhost x86_64]$ spotify
11:47:57.172 I [breakpad.cpp:107                ] Registered Breakpad for product: spotify

11:47:57.173 I [translate.cpp:140               ] Reloading language file
11:47:57.173 E [resource_loader.cpp:235         ] Loading of skin file(msgid.pob) failed
11:47:57.173 E [translate.cpp:117               ] Spotify resources and binary are out-of-sync. This should never happen.
11:47:57.201 I [translate.cpp:140               ] Reloading language file
11:47:57.201 E [resource_loader.cpp:235         ] Loading of skin file(msgid.pob) failed
11:47:57.201 E [translate.cpp:117               ] Spotify resources and binary are out-of-sync. This should never happen.
11:47:57.201 I [breakpad.cpp:261                ] Searching for crashdumps: /home/alex/.cache/spotify/*.dmp

11:47:57.203 E [resource_loader.cpp:235         ] Loading of skin file(skin.xml) failed
[alex@localhost x86_64]$ ll
total 88652
-rw-rw-r--. 1 alex alex 42564838 Jul 25 17:15 spotify-client-0.9.1.55.gbdd3b79.203-1.fc18.x86_64.rpm
-rw-rw-r--. 1 alex alex 48212342 Oct 14 13:44 spotify-client-0.9.4.183.g644e24e.428-3.fc19.x86_64.rpm


Thanks a lot in advance!!

Same here, Fedora 20 🙂

I'm really sorry if this has been posted already or if I'm Necroposting but I've ran through your guide on Fedora 19 and I get the below after running 

$ env QA_RPATHS=$((0x10|0x08)) rpmbuild -bb spotify-client.spec

 

Wrote: /home/jsanders/rpmbuild/RPMS/x86_64/spotify-client-0.9.4.183.g644e24e.428-3.fc19.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.Vi56gf
+ umask 022
+ cd /home/jsanders/rpmbuild/BUILD
+ cd spotify-make-5638fac9c6020517402c1e9653b91f2c74f456bc
+ /usr/bin/rm -rf /home/jsanders/rpmbuild/BUILDROOT/spotify-client-0.9.4.183.g644e24e.428-3.fc19.x86_64

 

I don't know why but for some reason whenI run the command a "clean up" is run that appears to delete the RPM its just build. Any guidance on this would be most appreaciate thank you.

 


@kermes wrote:

After upgrade to spotify-client-0.9.4.183, client fails with "failed loaded skin"... any suggestions?

 

[cut]
11:47:57.173 I [translate.cpp:140               ] Reloading language file
11:47:57.173 E [resource_loader.cpp:235         ] Loading of skin file(msgid.pob) failed
11:47:57.173 E [translate.cpp:117               ] Spotify resources and binary are out-of-sync. This should never happen.


That message basically means the you have two different versions making spotify loading wrong resources. Look for the files in /usr/lib[64]/spotify and make sure you don't have other versions of these around. Clean up everything and re-install the rpm - that should fix it.

Marked as solution


Jamiroph wrote:

[cut]
+ /usr/bin/rm -rf /home/jsanders/rpmbuild/BUILDROOT/spotify-client-0.9.4.183.g644e24e.428-3.fc19.x86_64

 

[cut]


That does not remove the rpm, just the temporary build directory 🙂 

 

Isn't  /home/jsanders/rpmbuild/RPMS/x86_64/spotify-client-0.9.4.183.g644e24e.428-3.fc19.x86_64.rpm  there?


@leamas wrote:
That message basically means the you have two different versions making spotify loading wrong resources. Look for the files in /usr/lib[64]/spotify and make sure you don't have other versions of these around. Clean up everything and re-install the rpm - that should fix it.

I tried it on a different machine I've never tried to install Spotify on before, and got the same error

Suggested posts