Blame README.md

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