Scripts and libraries to build rpms
This is an example run to demonstrate how you can build the software specified in the planex-demo subdirectory
- Change directory to planex-demo
cd planex-demo
- Clone the repositories specified in the spec files
planex-clone
- Configure
planex-configure
- Build
make
sudo apt-get -qy install python-rpm python-setuptools python-argparse 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 python-setuptools python-argparse
- 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 the planex binaries:
planex-configure
planex-build
planex-clone
planex-specdep
- and a few others
To run unit tests, use tox
:
$ tox