diff --git a/README.md b/README.md new file mode 100644 index 0000000..395f643 --- /dev/null +++ b/README.md @@ -0,0 +1,21 @@ +centos-release-gluster6 provides the YUM repository file for packages of the +CentOS Storage SIG that are used with GlusterFS 6. + +This package needs to get build against the following targets so that the +packages land at the right tag for inclusion in CentOS Extras: + + - core6-extras-common-el6.centos (tag: core6-extras-common-candidate) + - core7-extras-common-el7.centos (tag: core7-extras-common-candidate) + +Building the package can be done like this: + + + $ rpmbuild -bs \ + --define "_sourcedir $PWD/SOURCES" --define "_srcrpmdir $PWD" \ + --define "dist .el7.centos" \ + SPECS/centos-release-gluster6.spec + + $ cbs \ + build core7-extras-common-el7.centos \ + centos-release-gluster6-1.0-1.el7.centos.src.rpm + diff --git a/SOURCES/CentOS-Gluster-6.repo b/SOURCES/CentOS-Gluster-6.repo new file mode 100644 index 0000000..1d17533 --- /dev/null +++ b/SOURCES/CentOS-Gluster-6.repo @@ -0,0 +1,20 @@ +# CentOS-Gluster-6.repo +# +# Please see http://wiki.centos.org/SpecialInterestGroup/Storage for more +# information + +[centos-gluster6] +name=CentOS-$releasever - Gluster 6 +mirrorlist=http://mirrorlist.centos.org?arch=$basearch&release=$releasever&repo=storage-gluster-6 +#baseurl=http://mirror.centos.org/$contentdir/$releasever/storage/$basearch/gluster-6/ +gpgcheck=1 +enabled=1 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Storage + +[centos-gluster6-test] +name=CentOS-$releasever - Gluster 6 Testing +baseurl=http://buildlogs.centos.org/centos/$releasever/storage/$basearch/gluster-6/ +gpgcheck=0 +enabled=0 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Storage + diff --git a/SPECS/centos-release-gluster6.spec b/SPECS/centos-release-gluster6.spec new file mode 100644 index 0000000..26ed987 --- /dev/null +++ b/SPECS/centos-release-gluster6.spec @@ -0,0 +1,41 @@ +Summary: Gluster 6 packages from the CentOS Storage SIG repository +Name: centos-release-gluster6 +Version: 1.0 +Release: 1%{?dist} +License: GPLv2 +URL: http://wiki.centos.org/SpecialInterestGroup/Storage +Source0: CentOS-Gluster-6.repo +BuildArch: noarch + +%if 0%{?centos} >= 7 +# $contentdir for altarch support was added with CentOS-7.5 +Requires: centos-release >= 7-5.1804.el7.centos.2 +%endif +# This provides the public key to verify the RPMs +Requires: centos-release-storage-common + +Provides: centos-release-gluster = 6 + +%description +yum configuration for Gluster 6 packages from the CentOS Storage SIG. Gluster +6 will receive updates for approximately 12 months. For more details about the +release and maintenance schedule, see +https://www.gluster.org/community/release-schedule + +%install +install -D -m 644 %{SOURCE0} %{buildroot}%{_sysconfdir}/yum.repos.d/CentOS-Gluster-6.repo +%if 0%{?centos} < 7 +sed -i 's/i\$contentdir/centos/g' %{buildroot}%{_sysconfdir}/yum.repos.d/CentOS-Gluster-6.repo +%endif + +%files +%defattr(-,root,root) +%config(noreplace) %{_sysconfdir}/yum.repos.d/CentOS-Gluster-6.repo + +%changelog +* Mon Mar 25 2019 Niels de Vos - 1.0-1 +- Gluster 6 has been released, reflect that in the ,repo file + +* Fri Feb 22 2019 Niels de Vos - 0.9-1 +- Initial version based on centos-release-gluster5 +- Only the centos-gluster6-test repo is enabled during pre-release