Skip to content

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

  1. To build an rpm first you must have a local checkout of the shoal repository:

    • git clone https://github.com/hep-gc/shoal.git
  2. Navigate to the component you want to build the rpm for:

    • cd shoal/shoal-{server/agent/client}/
  3. Build a source distribution from the setup.py file:

    • python setup.py sdist
  4. Set up your rpmbuild folders:

    • mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
  5. 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/
  6. 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
  7. The newly built rpm will be placed in ~/rpmbuild/RPMS/noarch/