This document explains how to create an rcalc binary rpm from the source
rpm and how to create rcalc source and binary rpms from the tarball. The
only rpms I can build myself are Intel ones: if you can build rpms for 
other architectures then please help me out!


How to build a binary RPM from a source RPM
===========================================

You'll need to be root to do this; in theory it is possible to avoid
this but I've never been able to make this work in practice.

 rpm -i rcalc-w.x.y-z.src.rpm
 rpm -bb /usr/src/redhat/SPECS/rcalc.spec

When this has finished, the binary rpm will be in /usr/src/redhat/RPMS/<arch>


How to build RPMs from a tarball
================================

Firstly you'll need to make the file rcalc.spec: running make in this
directory should do this. If you haven't got an up to date source
tarball then you can make one by running `make dist' in the main
directory.

 cp rcalc-x.y.z.tar.gz /usr/src/redhat/SOURCES
 cp rpm/rcalc.spec /usr/src/redhat/SPECS
 rpm -ba /usr/src/redhat/SPECS/rcalc.spec

When this has finished, the source RPM will be in /usr/src/redhat/SRPMS
and the binary RPM will be in /usr/src/redhat/RPMS/<arch>.
