diff --git a/README.md b/README.md new file mode 100644 index 0000000..3f70097 --- /dev/null +++ b/README.md @@ -0,0 +1,21 @@ +centos-release-gluster5 provides the YUM repository file for packages of the +CentOS Storage SIG that are used with GlusterFS 5. + +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-gluster5.spec + + $ cbs \ + build core7-extras-common-el7.centos \ + centos-release-gluster5-1.0-1.el7.centos.src.rpm + diff --git a/SOURCES/CentOS-Gluster-5.repo b/SOURCES/CentOS-Gluster-5.repo new file mode 100644 index 0000000..150ca80 --- /dev/null +++ b/SOURCES/CentOS-Gluster-5.repo @@ -0,0 +1,20 @@ +# CentOS-Gluster-5.repo +# +# Please see http://wiki.centos.org/SpecialInterestGroup/Storage for more +# information + +[centos-gluster5] +name=CentOS-$releasever - Gluster 5 +mirrorlist=http://mirrorlist.centos.org?arch=$basearch&release=$releasever&repo=storage-gluster-5 +#baseurl=http://mirror.centos.org/$contentdir/$releasever/storage/$basearch/gluster-5/ +gpgcheck=1 +enabled=1 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Storage + +[centos-gluster5-test] +name=CentOS-$releasever - Gluster 5 Testing +baseurl=http://buildlogs.centos.org/centos/$releasever/storage/$basearch/gluster-5/ +gpgcheck=0 +enabled=0 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Storage + diff --git a/SPECS/centos-release-gluster5.spec b/SPECS/centos-release-gluster5.spec new file mode 100644 index 0000000..1b49232 --- /dev/null +++ b/SPECS/centos-release-gluster5.spec @@ -0,0 +1,42 @@ +Summary: Gluster 5 packages from the CentOS Storage SIG repository +Name: centos-release-gluster5 +Version: 1.0 +Release: 1%{?dist} +License: GPLv2 +URL: http://wiki.centos.org/SpecialInterestGroup/Storage +Source0: CentOS-Gluster-5.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 = 5 + +%description +yum configuration for Gluster 5 packages from the CentOS Storage SIG. Gluster +5 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-5.repo +%if 0%{?centos} < 7 +sed -i 's/i\$contentdir/centos/g' %{buildroot}%{_sysconfdir}/yum.repos.d/CentOS-Gluster-5.repo +%endif + +%files +%defattr(-,root,root) +%config(noreplace) %{_sysconfdir}/yum.repos.d/CentOS-Gluster-5.repo + +%changelog +* Fri Oct 19 2018 Niels de Vos - 1.0-1 +- Use mirrorlist.c.o for the main repository +- Disable centos-gluster5-test, enable centos-gluster5 repository + +* Mon Sep 17 2018 Niels de Vos - 0.9-1 +- Initial version based on centos-release-gluster41 +- Only the centos-gluster5-test repo is enabled during pre-release