...
Building Distribution RPM's
The ISOC software is packaged as two RPMs: The ISOC RPM contains the core data-handling code, and the ISOC-Web RPM contains a JSP-based Web application that is used to monitor the data-transfer system. Since I envision that this code will evolve much more rapidly than the underlying dependencies, I've set up a two-stage process for generating RPM's from the source code in CVS. Step 1 produces a source tarball based on a specified CVS tag in the repository; the tarball includes a specfile with the appropriate version information. Step 2 uses this tarball to produce an installable RPM, using the rpmbuild command's ability to build from a specfile included in a tarball.
Creating the source distribution
The following commands retrieve the necessary helper tools from the ISOC CVS repository and create source distributions for the ISOC and ISOC-Web packages:
Code Block |
---|
[blee@lat-hobbit4 ~]export CVSROOT=:ext:blee@centaurusa.slac.stanford.edu:/nfs/slac/g/glast/online/cvsroot
[blee@lat-hobbit4 ~]export CVS_RSH=ssh
[blee@lat-hobbit4 ~]cvs co -d DistTools ISOC/DistTools
[blee@lat-hobbit4 ~]cd DistTools/ISOC
[blee@lat-hobbit4 ISOC]./makedist.sh HEAD 1.2.0
[blee@lat-hobbit4 ISOC]cd ../ISOC-Web
[blee@lat-hobbit4 ISOC-Web]./makedist.sh HEAD 1.0.0
[blee@lat-hobbit4 ISOC-Web]cd ..
|
Creating the installable RPM's
The following commands will use the source distributions created above to make installable RPM's of the software. These operations assume that the user has set up a private RPM build area by configuring their ~/.rpmmacros file appropriately.
Code Block |
---|
[blee@lat-hobbit4 DistTools]rpmbuild -ta ISOC/ISOC-1.2.0.tar.gz
[blee@lat-hobbit4 DistTools]rpmbuild -ta ISOC-Web/ISOC-Web-1.0.0.tar.gz
|
Once the RPM's are built, they can be installed with `rpm -ivh`.
Configuring the Installed Software
...