Last modified 7 years ago Last modified on 05/27/10 14:16:59

In cas release 1.x and above RPM building is simplified so that very few steps are needed. This allows the curious to build from development versions without any hassle.

First make sure you have git-core and python-devel, on RHEL/Fedora systems run :

# yum install git-core python-devel

Checkout the source into your desired rpm building location

# git clone
# cd cas
# pwd

Once in the source directory run

# make rpm
Wrote: /home/pkg/cas/rpm-build/noarch/cas-1.0-0.fc12.noarch.rpm
Wrote: /home/pkg/cas/rpm-build/noarch/cas-admin-1.0-0.fc12.noarch.rpm
Wrote: /home/pkg/cas/rpm-build/noarch/cas-server-1.0-0.fc12.noarch.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.zvaV5q
+ umask 022
+ cd /home/pkg/cas/rpm-build
+ cd cas-1.0
+ rm -rf /home/pkg/cas/rpm-build/BUILDROOT/cas-1.0-0.fc12.x86_64
+ exit 0

To install run

# yum localinstall /home/pkg/cas/rpm-build/BUILDROOT/cas*

Note: The above command does a glob match so please use caution if building multiple cas releases.