wiki:svnbuild.sh

The "svnbuild.sh" script

Objective

Retrieve the files needed to build an RPM from the Packages SVN repository, and build that RPM.

Where to get it

The script is in the SVN caixamagica repository at:

svnbuild.sh

To use it you should check out the entire directory with the following command:

svn co http://contribsoft.caixamagica.pt/repo/caixamagica/scripts/cmbuild

Config Files

This script uses the following configuration files:

cm_repsys.conf: This file configures the script to use the Caixa Mágica Repositories

mdv_repsys.conf: This file configures the script to use the Mandriva Repositories

Usage

You should always use this script as a normal user, preferably in is home directory. Do not use it as root.

You must only use this script in a Mandriva like environment (not in a Caixa Mágica 11 or earlier).

You must have the "perl-MDV-Repsys", "rpm-build" and "rpmtools" packages installed.

svnbuild.sh <package_name> [--initial] [--build] [--copy] [--cmmdv]

package_name -> Package to be rebuilded.

Options:

--initial -> For downloading the latest files from the SVN repository. Default option;

--build -> It will rebuild the RPM;

--copy-ftp -> it will copy the generated RPM files to the test repository (ftp-teste.caixamagica.pt);

--copy-iso -> it will copy the generated RPM files to the test repository (ftp-teste.caixamagica.pt);

--cm -> It will use the Caixa Magica SVN repository. Default value;

--mdv -> It will use the Mandriva repository;

--all-ftp -> The same as "--initial --build --copy-ftp"

--all-iso -> The same as "--initial --build --copy-iso"

Example:

svnbuild.sh drakx-net --initial

Downloads from the SVN packages repository the source files and the SPEC file;

/svnbuild.sh drakx-net --build

Create the package. The package will be available in the "PACKAGES/drakx-net/RPMS/noarch/" directory.

TO DO's

Last modified 11 years ago Last modified on Aug 10, 2007, 1:27:09 PM