61a5a4
This is a dist-git like repo for [glusterfs-coreutils](https://github.com/gluster/glusterfs-coreutils).
61a5a4
61a5a4
The master branch is unused. Use an existing branch instead.
61a5a4
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)
61a5a4
61a5a4
* sig-storage6-gluster6: CentOS-6, glusterfs-6
61a5a4
* sig-storage6-gluster7: CentOS-6, glusterfs-7
61a5a4
* sig-storage7-gluster6: CentOS-7, glusterfs-6
61a5a4
* sig-storage7-gluster7: CentOS-7, glusterfs-7
61a5a4
* sig-storage8-gluster6: CentOS-8, glusterfs-6
61a5a4
* sig-storage8-gluster7: CentOS-8, glusterfs-7
61a5a4
* ...
61a5a4
61a5a4
Instructions for building the glusterfs-coreutils package for the
61a5a4
CentOS Storage SIG can be found in the following places:
61a5a4
61a5a4
* [Comunity Build System](https://wiki.centos.org/HowTos/CommunityBuildSystem)
61a5a4
* [Storage SIG landing page](https://wiki.centos.org/SpecialInterestGroup/Storage/Gluster)
61a5a4
61a5a4
Builds on most systems, e.g. Fedora, Debian, Ubuntu, and SUSE, you can
61a5a4
just use the github archive glusterfs-coreutils-%{version}.tar.gz; they
61a5a4
have the requisite gnulib and gnulib-devel rpms needed to build with.
61a5a4
61a5a4
CentOS doesn't have gnulib and gnulib-devel. To construct a source tarfile
61a5a4
that will build on CentOS, you must do the following:
61a5a4
* git clone glusterfs-coreutils ... glusterfs-coreutils-$commit
61a5a4
* cd glusterfs-coreutils-$commit
61a5a4
* if necessary, git checkout $commit (or corresponding $tag)
61a5a4
* git submodule update --init
61a5a4
* ./autogen.sh
61a5a4
* rm -rf gnulib tests autogen.sh autom4te.cache bootstrap.sh run-tests.sh .git*
61a5a4
* cd ..
61a5a4
* tar czf glusterfs-coreutils-$commit.tar.gz glusterfs-coreutils-$commit
61a5a4
61a5a4
Use glusterfs-coreutils-$commit.tar.gz as the Source0
61a5a4
61a5a4
Consider uploading glusterfs-coreutils-$commit.tar.gz to github as a 
61a5a4
release Asset. You can do this by editing the release and atttaching
61a5a4
the tarfile as a binary.
61a5a4
61a5a4
61a5a4
E.g. build the src.rpm with:
61a5a4
    $ rpmbuild -bs \
61a5a4
               --define "_sourcedir $PWD/SOURCES" --define "_srcrpmdir $PWD" \
61a5a4
               --define "dist .el7" SPECS/glusterfs-coreutils.spec
61a5a4
61a5a4
To build:
61a5a4
890e6c
    $ cbs build [--scratch] storage7-gluster-6-el7 glusterfs-coreutils-0.3.1-1.el7.src.rpm
61a5a4
61a5a4