This documentation relates to last stable version of Cipango.
visit the last unstable documentation home.

Building Cipango RPMs

The Cipango RPMs are available from the download sites with every Cipango release since 1.0.0M0. If you wish to build your own RPM packages, follow the instructions below.

Building the source Cipango RPMs

Requirements:

  • You should be Built on Redhat Based Linux distros
  • you must have a rpm-build installed in your box
    if rpm-build is not installed in your linux box execute the command below
yum install rpm-build

Build Cipango

cd <cipango-src-root>
mvn clean
mvn install

Build the source RPM

cd <cipango-src-root>/extras/rpms
mvn clean
mvn install

Your Cipango source RPM archive file is found at the <cipango-src-root>/extras/rpms/target folder: cipango-source.tar.gz

Installing Required Packages to build the binary RPMs

Using Yum for dependencies

Yum is a tool that can find and install dependent RPMs and is used by some distributions like fedora.
First you will need to add JPackage Yum Repo so that 3rd party RPM Dependencies of Cipango can be automatically downloaded and installed, dependencies such as ant.

Note: The http://jpackage.org site is a good source of java RPMs and information.

As root:

cd /etc/yum.repos.d
vi jpackage.repo

Copy/paste the following lines:

\[jpackage-5.0-generic\]
name=JPackage VERISON, for generic
\#baseurl=MIRROR/5.0/generic/free/
mirrorlist=[http://www.jpackage.org/mirrorlist.php?dist=generic&type=free&release=5.0]
gpgcheck=1
gpgkey=[http://www.jpackage.org/jpackage.asc]
enabled=1

The dependencies can now be installed with yum commands:

  • java-devel >= 1.5.0
  • jpackage-utils >= 0:1.7.2
  • ant >= 0:1.6
  • maven2 >= 2.0.4-10jpp 
yum install java-devel
yum install jpackage-utils
yum install ant
yum install maven2 (You may have dependency problems to install maven2 with yum. Download the last version from [http://maven.apache.org] and install it.)

Building the binary RPMs

  • Extract the cipango-source.tar.gz file at your home directory using a none root account
    tar \-xzvf target/cipango-source-rpm.tar.gz
    
  • At your home directory, execute the command below:
    rpmbuild \-ba rpm/SPECS/cipango.spec
    

The Cipango RPM file is now created. You can find it in rpm/RPMS/noarch repository.