Building the RPM from the source tar.gz (lshell >= 0.9.7)

This part is applicable as of lshell version 0.9.7.

In order to build your RPM using the source tar.gz:

$ wget https://sourceforge.net/projects/lshell/files/lshell/X.X.X/lshell-X.X.X.tar.gz/download
$ sudo rpmbuild -tb lshell-X.X.X.tar.gz

The generated RPM would then be found here:

/usr/src/redhat/RPMS/noarch/lshell-X.X.X-1.noarch.rpm

Thank you Michael Mansour for this excellent tip!

Building the RPM using the SPEC file (lshell < 0.9.7)

This part is deprecated as of lshell version 0.9.7.

Here are the steps you need to follow in order to create your own lshell RPM:

  1. download lshell's source file (i.e lshell-x.x.x.tar.gz) and save it in

/usr/src/redhat/SOURCES/lshell-x.x.x.tar.gz
  1. Download and save the SPEC file (replace "X.X.X" with your version number):

http://sourceforge.net/projects/lshell/files/lshell/X.X.X/lshell.spec/download
  1. Create your rpm using the following command (as root):

rpmbuild -bb lshell.spec
  1. You should find your new RPM in:

/usr/src/redhat/RPMS/noarch/lshell-x.x.x-1.noarch.rpm

lshell: RPMBuild (last edited 2009-11-25 10:35:56 by ghantoos)