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:
- 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
- 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
- Create your rpm using the following command (as root):
rpmbuild -bb lshell.spec
- You should find your new RPM in:
/usr/src/redhat/RPMS/noarch/lshell-x.x.x-1.noarch.rpm