Scripts and libraries to build rpms
This is an example run to demonstrate how you can build the software specified
by xen-api-libs-specs
.
- Clone a configuration
git clone https://github.com/xapi-project/xen-api-libs-specs
- Apply a workaround #42
grep --exclude-dir=".git" -lr "@VERSION@" xen-api-libs-specs/ |
while read fname; do sed -ie 's/@VERSION@/UNRELEASED/g' $fname; done
find xen-api-libs-specs/ -name '*.ine' -delete
- Clone github repositories
mkdir ~/github_mirror
planex-clone xen-api-libs-specs ~/github_mirror
- Configure
planex-configure --config-dir=xen-api-libs-specs
- TODO: At the moment configure throws an error - this needs to be resolved
sudo apt-get -qy install python-rpm rpm
- Basic dependencies:
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh epel-release-6-8.noarch.rpm
yum -y install git rpm-python rpm-build mock
- Pip:
wget --no-check-certificate https://raw.github.com/pypa/pip/master/contrib/get-pip.py
python get-pip.py
pip install virtualenv
virtualenv --system-site-packages env
. env/bin/activate
pip install -r requirements.txt
To install PlanEx, clone this repository and run the following:
sudo python setup.py install
This will install 4 binaries:
planex-configure
planex-build
planex-clone
To run unittest, use tox
:
$ tox