6d8727
This is a dist-git like repo for Ceph
6d8727
6d8727
The master brach is unused. Use an existing branch instead.
6d8727
Branch names follow convention like `c<VERSION>-sig-storage-ceph-VERSION>`
6d8727
as descibed on [Naming and Patterns for Mapping Git Branches to Koji Tags]
6d8727
(https://wiki.centos.org/BrianStinson/GitBranchesandKojiTags)
6d8727
6a6f94
* c9s-sig-storage-ceph-pacific: CentOS-8
6d8727
* ...
6d8727
6d8727
Instructions for building the ceph package for the CentOS Storage SIG
6d8727
can be found in the following places:
6d8727
6d8727
* [Comunity Build System](https://wiki.centos.org/HowTos/CommunityBuildSystem)
6d8727
* [Storage SIG landing page](https://wiki.centos.org/SpecialInterestGroup/Storage/Gluster)
f49d54
* [SIGGuide](https://wiki.centos.org/SIGGuide#SIGGuide.2FContent.2FImport.Pushing_first_to_lookaside_cache)
6d8727
f49d54
E.g. build a src.rpm with:
6d8727
    $ rpmbuild -bs \
6d8727
               --define "_sourcedir $PWD/SOURCES" --define "_srcrpmdir $PWD" \
6fa4d7
               --define "dist .el9s" SPECS/ceph.spec
6d8727
f49d54
Get the lookaside uploader script from ssh://git@git.centos.org/centos-git-common.git
f49d54
6d8727
To build:
6d8727
f49d54
1. Upload the source tar file to the lookaside cache, e.g.:
6a6f94
    $ lookaside_upload -f SOURCES/ceph-16.2.6.tar.gz -n ceph -b c9s-sig-storage-ceph-pacific
f49d54
f49d54
2. update the .glusterfs.metadata with the hash from step 1:
f49d54
    $ cat .ceph.metadata
9d7972
e9c6a6a482b8e46117c2a6c37b50c569bd62d92e  SOURCES/ceph-16.5.tar.gz
f49d54
f49d54
3. commit and push SPECS/ceph.spec and .ceph.metadata, e.g.:
f49d54
    $ git add SPECS/ceph.spec .ceph.metadata
6a6f94
    $ git push origin c9s-sig-storage-ceph-pacific
f49d54
f49d54
4. retrieve the commit for step 3:
f49d54
    $ git log|head -n 1
f49d54
commit 29f19456be12986e86392652331e3a56ff0a88a0
f49d54
f49d54
5. build
6fa4d7
    $ cbs build storage9s-ceph-pacific-el9s git+https://git.centos.org/rpms/ceph.git#29f19456be12986e86392652331e3a56ff0a88a0
f49d54
f49d54
f49d54
6a6f94
    $ cbs build [--scratch] storage9s-ceph-pacific-el9s ceph-16.2.6-1.el9s.src.rpm
6d8727