From 14506516e53f3b133838235359b54af3c6a8e174 Mon Sep 17 00:00:00 2001 From: Kaleb S. KEITHLEY Date: Jul 02 2021 14:02:23 +0000 Subject: rebuild with lookaside --- diff --git a/README.md b/README.md index ac287a1..5ce51a7 100644 --- a/README.md +++ b/README.md @@ -13,14 +13,39 @@ Instructions for building the libntirpc and nfs-ganesha packages for the CentOS * [Community Build System](https://wiki.centos.org/HowTos/CommunityBuildSystem) * [Storage SIG landing page](https://wiki.centos.org/SpecialInterestGroup/Storage/Gluster) +* [SIGGuide](https://wiki.centos.org/SIGGuide#SIGGuide.2FContent.2FImport.Pushing_first_to_lookaside_cache) -Build the src.rpm with: - +E.g. build a src.rpm with: $ rpmbuild -bs \ --define "_sourcedir $PWD/SOURCES" --define "_srcrpmdir $PWD" \ --define "dist .el8" SPECS/nfs-ganesha.spec + +To build: + +1. Upload the source tar file to the lookaside cache, e.g.: + $ lookaside_upload -f SOURCES/nfs-ganesha-3.5.tar.gz -n nfs-ganesha -b c8-sig-storage-nfs-ganesha-3 + +2. update the .nfs-ganesha.metadata with the hash from step 1: + $ cat .nfs-ganesha.metadata +e9c6a6a482b8e46117c2a6c37b50c569bd62d92e SOURCES/nfs-ganesha-3.5.tar.gz + +3. commit and push SPECS/nfs-ganesha.spec and .nfs-ganesha.metadata, e.g.: + $ git add SPECS/nfs-ganesha.spec .nfs-ganesha.metadata + $ git commit + $ git push origin c8-sig-storage-nfs-ganesha-3 + +4. retrieve the commit for step 3: + $ git log|head -n 1 +commit 29f19456be12986e86392652331e3a56ff0a88a0 + +5. build + $ cbs build storage8-nfsganesha-3-el8 git+https://git.centos.org/rpms/nfs-ganesha.git#29f19456be12986e86392652331e3a56ff0a88a0 + + + + And the packages with $ cbs build [--scratch] storage8-nfsganesha-3-el8 nfs-ganesha*.el8.src.rpm diff --git a/SPECS/nfs-ganesha.spec b/SPECS/nfs-ganesha.spec index d5285d1..43483fc 100644 --- a/SPECS/nfs-ganesha.spec +++ b/SPECS/nfs-ganesha.spec @@ -115,7 +115,7 @@ Requires: openSUSE-release Name: nfs-ganesha Version: 3.5 -Release: 2%{?dev:%{dev}}%{?dist} +Release: 3%{?dev:%{dev}}%{?dist} Summary: NFS-Ganesha is a NFS Server running in user space License: LGPLv3+ Url: https://github.com/nfs-ganesha/nfs-ganesha/wiki @@ -857,6 +857,9 @@ exit 0 %endif %changelog +* Fri Jul 2 2021 Kaleb S. KEITHLEY - 3.5-3 +- rebuild with lookaside + * Mon Jun 21 2021 Kaleb S. KEITHLEY - 3.5-2 - rebuilt for ntirpc-3.5