Plank

The Fedora project, due to being frightened by a certain fruit company, applied a “no-zoom” patch to the project Plank.

https://launchpad.net/plank

I recompiled from the Fedora sources and removed that patch. I used the program Mock to rebuild the official RPM package from their SRPM. Then I modified the plank.spec file. Then I recompiled the RPM and installed.

Here is the SRPM and RPM files along with the commands I used.

$ mock --rebuild ~/Downloads/plank-0.10.1-1.fc23.src.rpm

$ sudo cp -R /var/lib/mock/fedora-23-x86_64/root/builddir/build ~/rpmbuild

$ sudo chown -R username:usergroup ~/rpmbuild

At this point I modified ~/rpmbuild/SPEC/plank.spec

I bumped this to make sure that when my RPM is installed it would update any previously installed Plank package.

plank.spec (line 3)
Release:        1.1%{?dist}

Commented out reference to nozoom patch.

plank.spec (line 9)
#Patch0:            000_patentpatch.patch

Commented out reference to nozoom patch.

plank.spec (line 46)
#%patch0

Once that was done, I generated a new SRPM file and made a safe copy of it.

$ mock --buildsrpm --spec ~/rpmbuild/SPECS/plank.spec --sources ~/rpmbuild/SOURCES

$ cp /var/lib/mock/fedora-23-x86_64/root/builddir/build/SRPMS/plank-0.10.1-1.1.fc23.src.rpm ~/rpmbuild/plank-0.10.1-1.1.fc23.src.rpm

Next I rebuilt the RPM using my safe copy of the SRPM and made a safe copy of it.

$ mock --rebuild ~/rpmbuild/plank-0.10.1-1.1.fc23.src.rpm

$ cp /var/lib/mock/fedora-23-x86_64/result/plank-0.10.1-1.1.fc23.x86_64.rpm ~/rpmbuild/plank-0.10.1-1.1.fc23.x86_64.rpm

Then I installed it.

$ sudo dnf install ~/rpmbuild/plank-0.10.1-1.1.fc23.x86_64.rpm

Zooming is now enabled!

 
plank.txt · Last modified: 2016/05/23 13:39 by nexxuz
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki Win up to $200.00 in Bitcoin per hour! - FreeBitco.in 88x31-1
Drupal Garland Theme for Dokuwiki