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