diff --git a/README.md b/README.md new file mode 100644 index 0000000..5ba66aa --- /dev/null +++ b/README.md @@ -0,0 +1,51 @@ +This is a dist-git like repo for [glusterfs-coreutils](https://github.com/gluster/glusterfs-coreutils). + +The master branch is unused. Use an existing branch instead. +Branch names follow convention like `c-sig-storage-gluster-` as descibed on [Naming and Patterns for Mapping Git Branches to Koji Tags](https://wiki.centos.org/BrianStinson/GitBranchesandKojiTags) + +* sig-storage6-gluster6: CentOS-6, glusterfs-6 +* sig-storage6-gluster7: CentOS-6, glusterfs-7 +* sig-storage7-gluster6: CentOS-7, glusterfs-6 +* sig-storage7-gluster7: CentOS-7, glusterfs-7 +* sig-storage8-gluster6: CentOS-8, glusterfs-6 +* sig-storage8-gluster7: CentOS-8, glusterfs-7 +* ... + +Instructions for building the glusterfs-coreutils package for the +CentOS Storage SIG can be found in the following places: + +* [Comunity Build System](https://wiki.centos.org/HowTos/CommunityBuildSystem) +* [Storage SIG landing page](https://wiki.centos.org/SpecialInterestGroup/Storage/Gluster) + +Builds on most systems, e.g. Fedora, Debian, Ubuntu, and SUSE, you can +just use the github archive glusterfs-coreutils-%{version}.tar.gz; they +have the requisite gnulib and gnulib-devel rpms needed to build with. + +CentOS doesn't have gnulib and gnulib-devel. To construct a source tarfile +that will build on CentOS, you must do the following: +* git clone glusterfs-coreutils ... glusterfs-coreutils-$commit +* cd glusterfs-coreutils-$commit +* if necessary, git checkout $commit (or corresponding $tag) +* git submodule update --init +* ./autogen.sh +* rm -rf gnulib tests autogen.sh autom4te.cache bootstrap.sh run-tests.sh .git* +* cd .. +* tar czf glusterfs-coreutils-$commit.tar.gz glusterfs-coreutils-$commit + +Use glusterfs-coreutils-$commit.tar.gz as the Source0 + +Consider uploading glusterfs-coreutils-$commit.tar.gz to github as a +release Asset. You can do this by editing the release and atttaching +the tarfile as a binary. + + +E.g. build the src.rpm with: + $ rpmbuild -bs \ + --define "_sourcedir $PWD/SOURCES" --define "_srcrpmdir $PWD" \ + --define "dist .el7" SPECS/glusterfs-coreutils.spec + +To build: + + $ cbs build [--scratch] storage7-gluster-7-el7 glusterfs-coreutils-0.3.1-1.el7.src.rpm + + diff --git a/SOURCES/.gitkeep b/SOURCES/.gitkeep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/SOURCES/.gitkeep diff --git a/SPECS/glusterfs-coreutils.spec b/SPECS/glusterfs-coreutils.spec new file mode 100644 index 0000000..c1b0a30 --- /dev/null +++ b/SPECS/glusterfs-coreutils.spec @@ -0,0 +1,58 @@ + +Summary: Core Utilities for the Gluster Distributed File System +Name: glusterfs-coreutils +Version: 0.3.1 +Release: 1%{?dist} +License: GPLv3 +Group: System Environment/Base +URL: https://github.com/gluster/glusterfs-coreutils +# The source for this package was created from upstream source using the +# following command: +# make dist +Source0: glusterfs-coreutils-1b5a326%{dist}.tar.gz + +Provides: bundled(gnulib) + +Requires: glusterfs-api >= 7.0 + +BuildRequires: gcc make libtool +BuildRequires: glusterfs-api-devel >= 7.0 +BuildRequires: help2man >= 1.36 +BuildRequires: readline-devel + +%description +gluster-coreutils provides a set of basic utilities such as cat, mkdir, ls, +stat, rm and tail that are implemented specifically using the GlusterFS API. + +%prep +%setup -q -n %{name}-1b5a326 + +%build +sed -i 's|m4_esyscmd.*|0.3.1,|' configure.ac +./autogen.sh && %configure +make + +%install +%make_install + +%files +%license COPYING +%{_bindir}/* +%{_mandir}/man1/* + +%changelog +* Mon Mar 30 2020 Kaleb S. KEITHLEY - 0.3.1-1 +- 0.3.1 + +* Wed Jul 27 2016 Anoop C S - 0.2.0-1 +- Initial public release (#1360506) + +* Fri Jun 03 2016 Anoop C S - 0.0.1-0.1.git259f269 +- Fixed unused variable build error + +* Thu May 05 2016 Anoop C S - 0.0.1-0.4.git60d57d8 +- Fixed creation of links within upstream + +* Fri Apr 29 2016 Anoop C S - 0.0.1-0.3.gitf9a4a2e +- Initial package based on upstream spec file +