9025b0
This is a dist-git like repo for [NFS-Ganesha](https://github.com/nfs-ganesha/nfs-ganesha).
9025b0
9025b0
The master brach is unused. Use an existing branch instead.
9025b0
Branch names follow convention like `c<VERSION>-sig-storage-nfs-ganesha-<GANESHA-VERSION>` as descibed on [Naming and Patterns for Mapping Git Branches to Koji Tags](https://wiki.centos.org/BrianStinson/GitBranchesandKojiTags)
9025b0
9025b0
* c7-sig-storage-nfs-ganesha-30: CentOS-7, nfs-ganesha-30
64c4ae
* c7-sig-storage-nfs-ganesha-4: CentOS-7, nfs-ganesha-4
d09e12
* c8-sig-storage-nfs-ganesha-3: CentOS-8, nfs-ganesha-3
64c4ae
* c8s-sig-storage-nfs-ganesha-3: CentOS-Stream8, nfs-ganesha-3
64c4ae
* c8s-sig-storage-nfs-ganesha-4: CentOS-Stream8, nfs-ganesha-4
64c4ae
* c9s-sig-storage-nfs-ganesha-4: CentOS-Stream9, nfs-ganesha-4
9025b0
* ...
9025b0
9025b0
Instructions for building the libntirpc and nfs-ganesha packages for the CentOS Storage SIG can be found in the following places:
9025b0
9025b0
* [Community Build System](https://wiki.centos.org/HowTos/CommunityBuildSystem)
9025b0
* [Storage SIG landing page](https://wiki.centos.org/SpecialInterestGroup/Storage/Gluster)
145065
* [SIGGuide](https://wiki.centos.org/SIGGuide#SIGGuide.2FContent.2FImport.Pushing_first_to_lookaside_cache)
9025b0
145065
E.g. build a src.rpm with:
647d25
647d25
    $ rpmbuild -bs \
647d25
               --define "_sourcedir $PWD/SOURCES" --define "_srcrpmdir $PWD" \
aae63b
               --define "dist .el9s" SPECS/nfs-ganesha.spec
647d25
145065
145065
To build:
145065
145065
1. Upload the source tar file to the lookaside cache, e.g.:
fd6dad
    $ lookaside_upload -f SOURCES/nfs-ganesha-4.0.tar.gz -n nfs-ganesha -b c9s-sig-storage-nfs-ganesha-4
145065
145065
2. update the .nfs-ganesha.metadata with the hash from step 1:
145065
    $ cat .nfs-ganesha.metadata
fd6dad
e9c6a6a482b8e46117c2a6c37b50c569bd62d92e  SOURCES/nfs-ganesha-4.0.tar.gz
145065
145065
3. commit and push SPECS/nfs-ganesha.spec and .nfs-ganesha.metadata, e.g.:
145065
    $ git add SPECS/nfs-ganesha.spec .nfs-ganesha.metadata
145065
    $ git commit
fd6dad
    $ git push origin c9s-sig-storage-nfs-ganesha-4
145065
145065
4. retrieve the commit for step 3:
145065
    $ git log|head -n 1
145065
commit 29f19456be12986e86392652331e3a56ff0a88a0
145065
145065
5. build
fd6dad
    $ cbs build storage9s-nfsganesha-4-el9s git+https://git.centos.org/rpms/nfs-ganesha.git#29f19456be12986e86392652331e3a56ff0a88a0
145065
145065
647d25
And the packages with
647d25
fd6dad
    $ cbs build [--scratch] storage9s-nfsganesha-4-el9s nfs-ganesha*.el9s.src.rpm
647d25