|
|
868e4b |
This is a dist-git like repo for [GlusterFS](https://github.com/gluster/glusterfs).
|
|
|
868e4b |
|
|
|
868e4b |
The master brach is unused. Use an existing branch instead.
|
|
|
868e4b |
Branch names follow convention like `c<VERSION>-sig-storage-gluster-<GLUSTERFS-VERSION>` as descibed on [Naming and Patterns for Mapping Git Branches to Koji Tags](https://wiki.centos.org/BrianStinson/GitBranchesandKojiTags)
|
|
|
868e4b |
|
|
|
868e4b |
* c6-sig-storage-gluster-5: CentOS-6, glusterfs-5
|
|
|
868e4b |
* c7-sig-storage-gluster-5: CentOS-7, glusterfs-5
|
|
|
868e4b |
* c7-sig-storage-gluster-6: CentOS-7, glusterfs-6
|
|
|
0937ee |
* c8-sig-storage-gluster-7: CentOS-8, glusterfs-7
|
|
|
868e4b |
* ...
|
|
|
868e4b |
|
|
|
868e4b |
Instructions for building the glusterfs package for the CentOS Storage SIG can be found in the following places:
|
|
|
868e4b |
|
|
|
868e4b |
* [Comunity Build System](https://wiki.centos.org/HowTos/CommunityBuildSystem)
|
|
|
868e4b |
* [Storage SIG landing page](https://wiki.centos.org/SpecialInterestGroup/Storage/Gluster)
|
|
|
1c6eaf |
* [SIGGuide](https://wiki.centos.org/SIGGuide#SIGGuide.2FContent.2FImport.Pushing_first_to_lookaside_cache)
|
|
|
868e4b |
|
|
|
1c6eaf |
E.g. build a src.rpm with:
|
|
|
8b2522 |
$ rpmbuild -bs \
|
|
|
8b2522 |
--define "_sourcedir $PWD/SOURCES" --define "_srcrpmdir $PWD" \
|
|
|
0937ee |
--define "dist .el8s" SPECS/glusterfs.spec
|
|
|
8b2522 |
|
|
|
1c6eaf |
Get the lookaside uploader script from ssh://git@git.centos.org/centos-git-common.git
|
|
|
1c6eaf |
|
|
|
8b2522 |
To build:
|
|
|
1c6eaf |
|
|
|
1c6eaf |
1. Upload the source tar file to the lookaside cache, e.g.:
|
|
|
0937ee |
$ lookaside_upload -f SOURCES/glusterfs-10.0rc0.tar.gz -n glusterfs -b c8s-sig-storage-gluster-10
|
|
|
1c6eaf |
|
|
|
1c6eaf |
2. update the .glusterfs.metadata with the hash from step 1:
|
|
|
0937ee |
$ cat .glusterfs.metadata
|
|
|
0937ee |
e9c6a6a482b8e46117c2a6c37b50c569bd62d92e SOURCES/glusterfs-10.0rc0.tar.gz
|
|
|
1c6eaf |
|
|
|
1c6eaf |
3. commit and push SPECS/glusterfs.spec and .glusterfs.metadata, e.g.:
|
|
|
1c6eaf |
$ git add SPECS/glusterfs.spec .glusterfs.metadata
|
|
|
0937ee |
$ git push origin c8s-sig-storage-gluster-10
|
|
|
1c6eaf |
|
|
|
1c6eaf |
4. retrieve the commit for step 3:
|
|
|
1c6eaf |
$ git log|head -n 1
|
|
|
1c6eaf |
commit 29f19456be12986e86392652331e3a56ff0a88a0
|
|
|
1c6eaf |
|
|
|
1c6eaf |
5. build
|
|
|
0937ee |
$ cbs build storage8s-gluster-10-el8s git+https://git.centos.org/rpms/glusterfs.git#29f19456be12986e86392652331e3a56ff0a88a0
|
|
|
1c6eaf |
|
|
|
1c6eaf |
|
|
|
1c6eaf |
You can do scratch builds from a source RPM with, e.g.:
|
|
|
0937ee |
$ cbs build --scratch storage8s-gluster-10-el8s glusterfs-10.0-0.1.rc0.el8s.src.rpm
|
|
|
8b2522 |
|
|
|
8b2522 |
|