Blame README.md

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