<---- template headericclude ----->
Native spotify on F15 64 bit
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 11 of 11
  1. #1
    synthpopper Guest

    Native spotify on F15 64 bit

    Hi everyone, im new to Fedora. Used ubuntu and tried other os before. Looks like this is going to be my favorite.

    Enyway, im trying to install a native version of spotify. Trying to use wine a little as possible. For now i only want to use utorrent with wine, cant live without it :P
    So im having a hard time to install spotify on my system, i looked hard everywhere for a .rpm version to install. But couldnt find one. I googled and found out that im not alone with this problem, a lot of people talked about a program called "alien" that can convert the .deb version for debian and ubuntu. Tried to install that one but without success.

    I tried with theese two:

    alien-8.83-1.fc14.noarch.rpm
    alien-8.83-1.fc14.src.rpm

    Both of them gave me:

    Code:
    error: Failed dependencies:
    	debhelper is needed by alien
    OK, so i tried to install debhelper, googled some more and found: dh-make-0.55-3.fc15.src.rpm
    but that just gave me more stuff to get.
    Code:
    debhelper is needed by dh-make-0.55-3.fc15.noarch
    	dpkg-devel is needed by dh-make-0.55-3.fc15.noarch
    Is there an easier way to get spotify than this?

    // Joakim

  2. #2
    Join Date
    Nov 2007
    Location
    Finland
    Age
    41
    Posts
    314
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Native spotify on F15 64 bit

    You can use this spec file to build yourself an RPM, I am probablymissing som deps, but it is a start.
    I use this on my F15 KDE install so it might not work on Gnome, never tried.
    Save this as spotify.spec:
    Code:
    Name:           spotify
    Version:        0.5.2.84
    Release:        1%{?dist}
    Summary:        Linux Qt client
    
    License:        Redistributable, no modification permitted
    URL:            http://www.spotify.com
    # Source extracted from Debian package
    # http://repository.spotify.com/pool/non-free/s/spotify/spotify-client-qt_0.5.2.84.g6d797eb-1_amd64.deb
    # ar vx spotify-client-qt_0.5.2.84.g6d797eb-1_amd64.deb
    Source0:        data.tar.gz
    Source1:        %{name}.desktop
    
    # BuildRequires:
    Requires:       qt,desktop-file-utils
    
    %description
    Linux client, Qt version.
    
    %prep
    %setup -q -n usr
    
    
    %build
    # fake build, no need to compile anything here
    # %%configure
    # make %%{?_smp_mflags}
    
    
    %install
    rm -rf $RPM_BUILD_ROOT
    # make install DESTDIR=$RPM_BUILD_ROOT
    mkdir -p $RPM_BUILD_ROOT/usr/bin
    mkdir -p $RPM_BUILD_ROOT/usr/share/applications
    
    # Installing the desktop file to make icon show up in the kde menu
    desktop-file-install \
    	--dir=%{buildroot}%{_datadir}/applications \
    	%{SOURCE1}
    # installing all the files to their intended place
    mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
    mkdir -p $RPM_BUILD_ROOT/usr/share/doc
    mkdir -p $RPM_BUILD_ROOT/usr/share/%{name}/theme/default/{Buttons,icons,Now Playing,Placeholders,Scrollbars,Sourcelist,Toolbar,View Toolbar}
    mkdir -p $RPM_BUILD_ROOT/usr/share/%{name}/theme/non-skinnable/{about,devices,document-icons,intro,login,purchase-window,telia,views}
    mkdir -p $RPM_BUILD_ROOT/usr/share/%{name}/theme/obsolete/
    mkdir -p $RPM_BUILD_ROOT/usr/share/%{name}/theme/other/{_linux,_mac,sounds,specification,test}
    
    install -m 755 bin/spotify $RPM_BUILD_ROOT/usr/bin/
    install -m 644 share/pixmaps/* $RPM_BUILD_ROOT/usr/share/pixmaps/
    install -m 644 share/%{name}/licenses.xhtml $RPM_BUILD_ROOT/usr/share/%{name}/
    cp -r share/%{name}/theme/* $RPM_BUILD_ROOT/usr/share/%{name}/theme/
    cp -r share/doc* $RPM_BUILD_ROOT/usr/share/doc/
    
    # refresh icon cache
    touch --no-create %{_datadir}/pixmaps &>/dev/null || :
    
    %postun
    if [ $1 -eq 0 ] ; then
      touch --no-create %{_datadir}/pixmaps &>/dev/null
      gtk-update-icon-cache %{_datadir}/pixmaps &>/dev/null || :
    fi
    
    %posttrans
    gtk-update-icon-cache %{_datadir}/pixmaps &>/dev/null || :
    
    %files
    %doc
    %{_bindir}/spotify
    %{_docdir}/*
    %{_datadir}/pixmaps/*.png
    %{_datadir}/%{name}/licenses.xhtml
    %{_datadir}/%{name}/theme/*
    %{_datadir}/applications/%{name}.desktop
    
    
    %changelog
    * Tue Aug 09 2011 Magnus Tuominen <magnus.tuominen@gmail.com> - 0.5.2.84-1
    - first attempt
    and save this as spotify.desktop:
    Code:
    [Desktop Entry]
    Name=Spotify
    GenericName=Spotify
    Comment=Internet Radio
    Exec=spotify
    Icon=spotify-linux-512x512
    Terminal=false
    Type=Application
    Categories=AudioVideo;
    Now to build this you will need rpmdevtools and desktop-file-utils installed.
    Then run rpmdev-setuptree and place the spec file in the SPECS folder, and the desktop file inside the SOURCES folder along the data.tar.gz you extract from the debian amd64 package.
    then cd ~/rpmbuild/SPECS and run rpmbuild -ba spotify.spec

    There is probably something missing or stuff that could be done differently in the spec file, if you find something to improve please do.
    my blog
    my forum
    my "art"
    my packages
    IRC: Magnu5

  3. #3
    synthpopper Guest

    Re: Native spotify on F15 64 bit

    sweet! thanks, i will look into this. I let you know when i tried.

    //joakim

  4. #4
    Join Date
    Sep 2007
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Native spotify on F15 64 bit

    I created an rpm using the alien command of the latest dropbox deb file just today. To install, you have to install using sudo rpm -Uvh --nodep spotify-client-qt-0.6.1.309.gb871a7d-2.x86_64.rpm and you may want to sudo yum -y install openssl-devel and then cd /usr/lib64 && sudo ln -s ln -s libssl.so.1.0.0e libssl.so.0.9.8 && sudo ln -s ../../lib64/libcrypto.so.1.0.0e libcrypto.so.0.9.8

    http://dl.dropbox.com/u/6310099/spot...d-2.x86_64.rpm

  5. #5
    synthpopper Guest

    Re: Native spotify on F15 64 bit

    oh sweet! i will try it out in a moment. I will let you know as soon as i tried

    thanks!

    ---------- Post added at 10:56 PM ---------- Previous post was at 10:17 PM ----------

    i didnt get the last part there. cd /usr/lib64 && sudo ln -s ln -s libssl.so.1.0.0e libssl.so.0.9.8 && sudo ln -s ../../lib64/libcrypto.so.1.0.0e libcrypto.so.0.9.8

    can you explain that one?

  6. #6
    Join Date
    Sep 2007
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Native spotify on F15 64 bit

    The spotify binaries in the deb package were built on Ubuntu with libssl.so.0.9.8 and libcrypto.so.0.9.8, Fedora 15 comes with newer versions of those libraries, so you have to symlink to them with the old names to kind of trick it into thinking they are there. You may not have to though since you are installing the RPM with nodeps. Let me know if it works without the symlinks.

  7. #7
    synthpopper Guest

    Re: Native spotify on F15 64 bit

    oh i see, hmm when i tried the install command it gave me a error message on --nodep, i also tried --norep. Same thing. What is the meaning of that one?

    cheers

  8. #8
    Join Date
    Sep 2007
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Native spotify on F15 64 bit

    Sorry, I think it is --nodeps with an s.

  9. #9
    Join Date
    Sep 2007
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Native spotify on F15 64 bit

    Did the --nodeps option work?

  10. #10
    alphonce Guest

    Re: Native spotify on F15 64 bit

    I just did a rather detailed explanation how you do this, before I saw this post

    it's at:
    http://jgottlander.wordpress.com/201...on-fedora-f15/

  11. #11
    Join Date
    Mar 2008
    Location
    Georgia, USA
    Posts
    147
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Native spotify on F15 64 bit

    Wow; meltingrobot and others -- this is great! I'm almost there, but right now I can't seem to log in. It's saying my firewall is blocking it. At the time I had firewalld enabled (not sure why or how), but I stopped the service and then looked for spotify in system-config-firewall, but didn't find an entry.

    Edited: I found out that the firewall error is happening because I'm not a premium member.
    Last edited by FergatROn; 6th December 2012 at 04:26 AM.
    Marc F. | fergytech.com
    Registered Linux User #410978

    "Let the blind lead the blind... it's more fun to watch."

Similar Threads

  1. Spotify freezes unless it is run as superuser
    By endre86 in forum Using Fedora
    Replies: 1
    Last Post: 11th October 2011, 03:16 PM
  2. [SOLVED]
    Wine + Spotify
    By BeerFreek in forum Using Fedora
    Replies: 8
    Last Post: 24th February 2011, 10:33 AM
  3. Wine and spotify?
    By Rhine in forum Using Fedora
    Replies: 7
    Last Post: 15th February 2010, 07:34 PM
  4. spotify & wine FC11
    By PompeyBlue in forum Using Fedora
    Replies: 2
    Last Post: 15th August 2009, 10:36 AM
  5. Spotify with Fedora 10 and 11 - Sound Fix
    By thewonderer57 in forum Guides & Solutions (Not For Questions)
    Replies: 0
    Last Post: 8th June 2009, 01:09 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[[template footer(Guest)]]