Rebuild Docky, with zoom effect
FedoraForum.org - Fedora Support Forums and Community
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 17
  1. #1
    Join Date
    Feb 2015
    Location
    Sweden
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Rebuild Docky, with zoom effect

    Rebuild Docky, with zoom effect

    I installed Docky the other day, and had a request on how I did that, and an ok to post that here.

    So, here it is. It's more like a “run-down”, of how I did it...

    - - -

    First, I tried to install Docky manually as described @ Docky's page. And I also looked at a guide here. It went on quite good, but finally it kept asking for misc PATHS etc...

    The solution I came up with was to rebuild the original rpm, or more exactly, make a new one with some help from the (Fedora) files.

    To do that the rpm-build & rpmdevtools are needed, as well as git and wget ... (is what I used)

    The Fedora Docky.git repo doesn't have any source files, but have the spec's and most important - the patches. So, with that it will be the same version as installed with yum, but with the zoom effect since the patch: docky-noozoom.patch will be skipped.


    I have no idea if this is the right way to do it, but it worked for me. You will end up with the 2 rpm's you install locally:

    • docky-{,devel-}2.2.0-4.fc21.i686.rpm


    ...or x86_64


    Please do some reading first... In the end there are links to the Fedora Wiki and an “online classroom session”.



    Install RPMtools

    Code:
    su -c "yum install rpm-build rpmdevtools"	
    
    # and if you don't already have...
    su -c "yum install git wget"
    [note] look at the output in terminal what dependencies the rpm tools are adding.
    Make a note or a screenshot... Great to have when you uninstall it afterwards.



    Setup the environment.

    Code:
    rpmdev-setuptree
    
    # + a folder to keep the repo
    mkdir -pv ~/rpmbuild/.git_repos && cd ~/rpmbuild/.git_repos

    Clone the docky.git. It will contain all necessary files for the (re)build, like the “spec file” and the patches.

    Code:
    git clone git://pkgs.fedoraproject.org/docky.git

    Copy “docky.spec”, “*.patch” and the file “sources” to ~/rpmbuild/SOURCES


    Download the source (archive)

    Code:
    cd ~/rpmbuild/SOURCES
    wget https://launchpad.net/docky/2.2/2.2.0/+download/docky-2.2.0.tar.xz
    Verify the download with the md5 hash in the file “sources”



    Editing: docky.spec

    In your (favorite) texteditor - comment the lines with Patch0:

    Code:
    #Patch0:         docky-nozoom.patch
    
    // ... //
    
    #%patch0 -p1
    ...or if you want to edit the summary, changelog etc. (it's not necessary, but perhaps it feels better )

    Something like:
    Code:
    Summary:        Advanced dock application written in Mono (modified w/o the "docky-nozoom.patch")
    Code:
    #
    # Note: This is a modified version, without the "docky-nozoom.patch"
    #
    #Patch0:         docky-nozoom.patch
    Code:
    #%patch0 -p1
    Code:
    %changelog
    * Sat Feb 28 2015 <Your Name> - 2.2.0-4
    - Custom (re)build without the "docky-noozoom.patch"
    adjust the date



    Install dependencies (listed in: docky.spec)

    [note] When trying to run the build it complained about missing dependencies even though they are defined in the spec file, so install them manually:

    Code:
    su -c "yum install \
    gnome-sharp-devel gtk-sharp2-devel gnome-desktop-sharp-devel \
    gnome-keyring-sharp-devel gtk-sharp2-gapi mono-addins-devel \
    mono-devel ndesk-dbus-devel ndesk-dbus-glib-devel \
    notify-sharp-devel GConf2-devel \
    gio-sharp-devel dbus-sharp-devel dbus-sharp-glib-devel \
    python2-devel glib2-devel gtk2-devel gettext perl-XML-Parser \
    intltool desktop-file-utils \
    gnome-sharp gtk-sharp2 gnome-desktop gnome-desktop-sharp \
    gnome-keyring-sharp gtk-sharp2-gapi mono-addins \
    mono-core ndesk-dbus notify-sharp gtk2 GConf2 \
    hicolor-icon-theme gio-sharp dbus-sharp dbus-sharp-glib \
    ndesk-dbus-glib"


    Build

    And now, build it with:

    Code:
    cd ~/rpmbuild
    rpmbuild -ba SOURCES/docky.spec
    If everything went fin you should have the 2 rpm's in:
    • ~/rpmbuild/RPMS/(i686|x86_64)/




    Install

    Since all dependencies are installed already, one could go with rpm -ivh, or use yum localinstall to include the check.

    Code:
    # example = i686
    su -c "rpm -ivh RPMS/i686/docky-{,devel-}2.2.0-4.fc21.i686.rpm"
    
    su -c "yum localinstall RPMS/i686/docky-{,devel-}2.2.0-4.fc21.i686.rpm"


    Testing

    Just a simple test to output the list of dependencies.

    Code:
    yum deplist RPMS/i686/docky-2.2.0-4.fc21.i686.rpm

    Picture



    Settings: Zoom level ≈ 135-145%


    /me :happy:


    When you're done - save you rpm's somewhere and then you can uninstall the rpm-build & rpmdevtools and the aditional packages they added.



    Sources

    1. Fedora Docky git repo:
    2. An “online classroom” describing (parts/bits of) the procedure.
    3. Fedora::Wiki



    Hope someone will find it useful....
    Last edited by Eric F; 2nd March 2015 at 08:59 AM.
    [eric@...] ~$

  2. #2
    Join Date
    Dec 2009
    Location
    India
    Posts
    482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rebuild Docky, with zoom effect

    rpmbuild -ba SPECS/docky.spec
    It should read as

    rpmbuild -ba SOURCES/docky.spec

    --------------------------------------------

    Installed successfully with zoom.

    Thanks
    Last edited by kkshethin; 2nd March 2015 at 08:59 AM. Reason: showing gratitude

  3. #3
    Join Date
    Feb 2015
    Location
    Sweden
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rebuild Docky, with zoom effect

    Quote Originally Posted by kkshethin
    It should read as

    rpmbuild -ba SOURCES/docky.spec

    --------------------------------------------

    Installed successfully with zoom.

    Thanks
    Of course... Thanks. Missed that one. (Fixed in the post)

    Glad it worked out for you.
    [eric@...] ~$

  4. #4
    Join Date
    Dec 2015
    Location
    france
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rebuild Docky, with zoom effect

    hello thanks for the job. But i got a question about the docky.spec file.

    I didn't really understand what to do with, when I process the "rpmbuild -ba SOURCES/docky.spec" command :

    Code:
    #Patch0:        docky-nozoom.patch
    // Hello World //
    #%patch0 -p1
    reply :
    Code:
    [brozz@linux rpmbuild]$ rpmbuild -ba SOURCES/docky.spec
    erreur*: ligne 2*: tag inconnu*:  // Hello World//
    [brozz@linux rpmbuild]$
    with

    Code:
    Patch0:        docky-nozoom.patch
    %patch0 -p1
    reply :
    Code:
    [brozz@linux rpmbuild]$ rpmbuild -ba SOURCES/docky.spec
    erreur*: ligne 4*: tag inconnu*: %patch0 -p1
    [brozz@linux rpmbuild]$
    with :

    Code:
    #Patch0:        docky-nozoom.patch
    #%patch0 -p1
    reply :

    Code:
    [brozz@linux rpmbuild]$ rpmbuild -ba SOURCES/docky.spec
    erreur*: Le champ Name doit être présent dans le paquet*: (main package)
    erreur*: Le champ Version doit être présent dans le paquet*: (main package)
    erreur*: Le champ Release doit être présent dans le paquet*: (main package)
    erreur*: Le champ Summary doit être présent dans le paquet*: (main package)
    erreur*: Le champ License doit être présent dans le paquet*: (main package)
    [brozz@linux rpmbuild]$
    Mean somthing to you ?
    what did I did wrong ?

    thank you

    brand new installed Fedora 23 on a macbook air mid-2013

  5. #5
    Join Date
    Jan 2016
    Location
    Indian Wells, CA
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rebuild Docky, with zoom effect

    I'm extremely new to linux in general and especially modifying/building software.

    Man, this was an ORDEAL but after screwing up somewhere in your instructions (most likely due to my dyslexia) I was finally able to do it correctly and it works!

    Thanks a lot Eric!!


  6. #6
    Join Date
    Jan 2016
    Location
    Indian Wells, CA
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rebuild Docky, with zoom effect

    I'm now wondering, would you be able to put a guild like this together for Plank?

  7. #7
    Join Date
    Feb 2015
    Location
    Sweden
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rebuild Docky, with zoom effect

    Quote Originally Posted by brozz
    hello thanks for the job. But i got a question about the docky.spec file.

    // ... //

    Mean somthing to you ?
    what did I did wrong ?

    thank you

    brand new installed Fedora 23 on a macbook air mid-2013
    Thanks… And I'm *really* sorry for the late late late reply. You caught me in the middle of a computer move, and I didn't have many things up. Still don't because I'm doing my nephwes computers now with new hardware and F23.

    Anyway… I made a new install of Docky both in VirtualBox and in their new machines. Here are my (new) notes. More of a run down with all commands.

    - - -

    Install build tools:
    Code:
    sudo dnf install @development-tools
    sudo dnf install @rpm-development-tools
    Clone and branch off:
    Code:
    mkdir ~/rpmbuild_repos && cd ~/rpmbuild_repos
    git clone http://pkgs.fedoraproject.org/git/rpms/docky.git
    cd docky
    git checkout -b zoom
    Comment the 2 lines with “Patch0/%patch0”:
    Code:
    sed -i '/^Patch0/s/P/#P/' docky.spec 
    sed -i '/^%patch0/s/%/#%/' docky.spec
    sed -i '/^Summary/s/Mono/Mono (custom zoom-version)/' docky.spec
    sed -i '/^currently running/s/and more./and more.\n\nThis version is built with zoom enabled./' docky.spec
    Set up build environment:
    Code:
    rpmdev-setuptree
    Copy and download files/sources:
    Code:
    cp docky.spec ~/rpmbuild/SPECS
    cp docky.spec *.patch sources ~/rpmbuild/SOURCES
    cd ~/rpmbuild/SOURCES
    wget https://launchpad.net/docky/2.2/2.2.0/+download/docky-2.2.0.tar.xz
    cd ../SPECS
    Install all deps:
    Code:
    sudo dnf builddep docky.spec
    sudo dnf install gnome-desktop
    Build:
    Code:
    rpmbuild -ba docky.spec
    cd ..
    …& install:
    Code:
    su -c "rpm -ivh RPMS/x86_64/docky-{,devel-}2.2.0-7.fc23.x86_64.rpm"
    Note: This is for x86_64. You need to adjust to match 32-bit if using that.

    Last edited by Eric F; 8th April 2016 at 05:40 PM.
    [eric@...] ~$

  8. #8
    Join Date
    Feb 2015
    Location
    Sweden
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rebuild Docky, with zoom effect

    Quote Originally Posted by koesherbacon
    I'm extremely new to linux in general and especially modifying/building software.

    Man, this was an ORDEAL but after screwing up somewhere in your instructions (most likely due to my dyslexia) I was finally able to do it correctly and it works!

    Thanks a lot Eric!!

    Thanks… Glad you made it.

    Quote Originally Posted by koesherbacon
    I'm now wondering, would you be able to put a guild like this together for Plank?
    You can use dnf. Try this one...
    Install Plank 0.9.1 On Fedora 23 Workstation

    About the zoom effect - I don't belive there is one in Plank to re-enable.
    [eric@...] ~$

  9. #9
    Join Date
    Apr 2016
    Location
    Paris
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rebuild Docky, with zoom effect

    Thanks Eric,

    you missed, in the F23 process, you missed the command "rpmbuild -ba SPECS/docky.spec"

    As a noob I'm glad I figured it out.

  10. #10
    Join Date
    Feb 2015
    Location
    Sweden
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rebuild Docky, with zoom effect

    Quote Originally Posted by altournoux
    Thanks Eric,

    you missed, in the F23 process, you missed the command "rpmbuild -ba SPECS/docky.spec"

    As a noob I'm glad I figured it out.
    Good spot. Thanks!

    // Updated the post
    [eric@...] ~$

  11. #11
    Join Date
    May 2004
    Location
    Texas
    Age
    36
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rebuild Docky, with zoom effect

    I made a small write up of each step to rebuild from source without the nozoom patch and also made available the SRPM and RPM on my website.

    http://williampenton.com/doku.php?id=docky
    ,.~'`'~.,.~'`'~.,.~'`'~.,.~'`'~.,
    "Captain, life is not a dream."
    -Spock

  12. #12
    Join Date
    Feb 2015
    Location
    Sweden
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rebuild Docky, with zoom effect

    Nice…
    [eric@...] ~$

  13. #13
    Join Date
    May 2004
    Location
    Texas
    Age
    36
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rebuild Docky, with zoom effect

    I found that the 3.0 version of Docky is based on a project called Plank

    https://launchpad.net/plank

    Fedora applied the same nozoom style patch to that as well...

    I did a write up of removing that patch and provide links to the SRPM / RPM on my site too.

    http://williampenton.com/doku.php?id=plank
    ,.~'`'~.,.~'`'~.,.~'`'~.,.~'`'~.,
    "Captain, life is not a dream."
    -Spock

  14. #14
    Join Date
    May 2004
    Location
    Texas
    Age
    36
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rebuild Docky, with zoom effect

    Docky with zoom enabled


    Plank with zoom enabled
    ,.~'`'~.,.~'`'~.,.~'`'~.,.~'`'~.,
    "Captain, life is not a dream."
    -Spock

  15. #15
    Join Date
    Dec 2013
    Location
    United Kingdom
    Posts
    6,971
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Re: Rebuild Docky, with zoom effect

    Quote Originally Posted by nexxuz
    Docky with zoom enabled


    Plank with zoom enabled
    So is that Placky, Plocky, Dank or PladonkaDonk?

    If Docky is based on Plank now then what is the point of Docky? You could easily theme Plank to look like the Docky image. It would make more sense if the developers just pooled their resources from now on.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Problems with Docky
    By JonasK in forum Using Fedora
    Replies: 2
    Last Post: 7th October 2013, 04:15 AM
  2. Docky Question
    By TheGnome in forum Using Fedora
    Replies: 1
    Last Post: 21st April 2012, 05:44 PM
  3. F16 Docky issues
    By Deminox in forum Using Fedora
    Replies: 2
    Last Post: 14th April 2012, 12:00 AM
  4. docky issue in kde
    By susja in forum Using Fedora
    Replies: 1
    Last Post: 8th February 2012, 05:48 AM
  5. Replies: 1
    Last Post: 24th June 2011, 12:42 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
  •