This is a dist-git like repo for cephadm
The master brach is unused: use an existing branch instead.
Branch names follow convention like c<VERSION>-sig-storage-ceph-VERSION> as described
on Naming and Patterns for Mapping Git Branches to Koji Tags
c8-sig-storage-ceph-octopus: CentOS-8 c8-sig-storage-ceph-pacific: CentOS-8 ...
Instructions for building the ceph package for the CentOS Storage SIG can be found in the following places:
Comunity Build System Storage SIG landing page
Before starting, choose the branch containing the maintained spec for the cephadm package:
git checkout -t origin/c8-sig-storage-ceph-<VERSION>
You can find the sha1 for the "patches_base" comment and "Source0" with "git ls-remote", e.g.
$ git ls-remote https://github.com/ceph/ceph octopus ca0faa0a628c041f5b5313060344006830812e25 refs/heads/octopus
The source code can be downloaded using the 'spectool' tool , which uses the Source0 entry in the SPEC:
$ spectool -g SPECS/cephadm.spec $ mv cephadm SOURCES/cephadm
Create a src.rpm with:
$ rpmbuild -bs \ --define "_sourcedir $PWD/SOURCES" --define "_srcrpmdir $PWD" \ --define "dist .el8" SPECS/cephadm.spec
and finally we can build it running:
$ cbs build [--scratch] storage8-ceph-octopus-el8 cephadm.el8.src.rpm