-
Notifications
You must be signed in to change notification settings - Fork 8
Building Shoal RPMs
Colson Driemel edited this page Apr 22, 2015
·
11 revisions
##Building RPMs for Shoal
Shoal now has spec files for each component and can create an rpm locally with the proper rpm packaging tools. **Requires: rpmbuild, git, rpm-devel
-
To build an rpm first you must have a local checkout of the shoal repository:
git clone https://github.com/hep-gc/shoal.git
-
Navigate to the component you want to build the rpm for:
cd shoal/shoal-{server/agent/client}/
-
Build a source distribution from the setup.py file:
python setup.py sdist
-
Set up your rpmbuild folders:
mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
-
Copy the spec file and source tar package that was just made in the dist folder:
cp ./dist/shoal*.tar.gz ~/rpmbuild/SOURCES
cp ./specs/*.spec ~/rpmbuild/SPECS/
-
Navigate to the rpmbuild folder and check to make sure the version number in the spec file matches the one of the tar file then build the rpm:
cd ~/rpmbuild
rpmbuild -ba ./SPECS/shoal-{server/agent/client}.spec
-
The newly built rpm will be placed in
~/rpmbuild/RPMS/noarch/