How to build rpm for kmenu-gnome

From FedoraNEWS.ORG

Written by Chitlesh Goorah on 2005-11-15

Table of contents

What is kmenu-gnome ?

kmenu-gnome is simply K Menu with Gnome folder and extra icons for KDE 3.2 or later.

When both KDE and Gnome are installed, K Menu becomes bulky with overpopulated submenus. Some distributions try to solve this by hiding many Gnome apps in KDE and most KDE apps in Gnome. kmenu-gnome helps to access Gnome apps in KDE and vice-versa. Therefore it is an attempt to

  1. maintain desktop interoperability and
  2. unmess the menus.

Below is an explanation about how to build a rpm for kmenu-gnome (version 0.4.1).

Materials Needed

  • both KDE and Gnome installed
  • kdelibs >= 3.2
  • rpm-build
  • rpm-devel
  • rpm-libs

Download other requirements

Download both the source code (http://www.kde-look.org/content/download.php?content=31025&id=1) and the spec file (http://fedoranews.org/wiki-uploads/chitlesh_goorah/kmenu-gnome-0.4-FC4.spec) to your home directory.

Building the noarch RPM

You can either build the RPM package yourself as described below or

  • download it directly from here (http://fedoranews.org/wiki-uploads/chitlesh_goorah/kmenu-gnome-0.4-1.noarch.rpm).
  • or its source rpm from here (http://fedoranews.org/wiki-uploads/chitlesh_goorah/kmenu-gnome-0.4-1.src.rpm).
cd ~
cp -a /usr/src/redhat/ rpmbuild
echo '%_topdir %(echo $HOME)/rpmbuild' >> .rpmmacros
cp kmenu-gnome-0.4.tar.gz ~/rpmbuild/SOURCES
rpmbuild -ba kmenu-gnome-0.4-FC4.spec

Installing the rpm or src.rpm

If you have built the rpm yourself, you can continue with its Installation.

cd ~/rpmbuild/RPMS/noarch
sudo rpm -Uvh kmenu-gnome-0.4-1.noarch.rpm

Else if you have downloaded the rpm, change directory when you have downloaded it

sudo rpm -Uvh kmenu-gnome-0.4-1.noarch.rpm

or to install the source rpm

cd ~/rpmbuild/rpmbuild/SRPMS
rpm --rebuild kmenu-gnome-0.4-1.src.rpm

Else if you have downloaded the source rpm, change directory when you have downloaded it

rpm --rebuild kmenu-gnome-0.4-1.src.rpm

Screenshot

 Chitlesh Here is a screenshot on Fedora Core 4 (KDE)

Licences of the source codes

  • Clarified Artistic License
  • GPL
  • LGPL
  • X11_License
Personal tools