From c8add0553e649d87c3ae90e842c8d41c860a7cdc Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Oct 15 2019 09:34:21 +0000 Subject: Move to git.centos.org directory layout --- diff --git a/README.md b/README.md new file mode 100644 index 0000000..48213e5 --- /dev/null +++ b/README.md @@ -0,0 +1,21 @@ +centos-release-gluster7 provides the YUM repository file for packages of the +CentOS Storage SIG that are used with GlusterFS 7. + +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-gluster7.spec + + $ cbs \ + build core7-extras-common-el7.centos \ + centos-release-gluster7-0.1-1.el7.centos.src.rpm + diff --git a/SOURCES/75-gluster.preset b/SOURCES/75-gluster.preset new file mode 100644 index 0000000..130de4b --- /dev/null +++ b/SOURCES/75-gluster.preset @@ -0,0 +1,13 @@ +# +# This file is part of centos-release-gluster. +# +# Enabling services that are provided by the Gluster project as part of the +# CentOS Storage SIG. When add-on services are installed, users expect them to +# be started/enabled automatically. +# +# Services that are enabled by default, should be able to function without +# requiring pre-configuration steps by users. +# + +enable glusterd.service +enable gluster-blockd.service diff --git a/SOURCES/CentOS-Gluster-7.repo b/SOURCES/CentOS-Gluster-7.repo new file mode 100644 index 0000000..391cea0 --- /dev/null +++ b/SOURCES/CentOS-Gluster-7.repo @@ -0,0 +1,20 @@ +# CentOS-Gluster-7.repo +# +# Please see http://wiki.centos.org/SpecialInterestGroup/Storage for more +# information + +[centos-gluster7] +name=CentOS-$releasever - Gluster 7 +mirrorlist=http://mirrorlist.centos.org?arch=$basearch&release=$releasever&repo=storage-gluster-7 +#baseurl=http://mirror.centos.org/$contentdir/$releasever/storage/$basearch/gluster-7/ +gpgcheck=1 +enabled=0 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Storage + +[centos-gluster7-test] +name=CentOS-$releasever - Gluster 7 Testing +baseurl=http://buildlogs.centos.org/centos/$releasever/storage/$basearch/gluster-7/ +gpgcheck=0 +enabled=1 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Storage + diff --git a/SPECS/centos-release-gluster7.spec b/SPECS/centos-release-gluster7.spec new file mode 100644 index 0000000..75754e5 --- /dev/null +++ b/SPECS/centos-release-gluster7.spec @@ -0,0 +1,60 @@ +Summary: Gluster 7 packages from the CentOS Storage SIG repository +Name: centos-release-gluster7 +Version: 0.1 +Release: 1%{?dist} +License: GPLv2 +URL: http://wiki.centos.org/SpecialInterestGroup/Storage +Source0: CentOS-Gluster-7.repo +Source1: 75-gluster.preset +%if 0%{?centos} >= 7 +BuildRequires: systemd +%endif +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 +%systemd_requires +%endif +# This provides the public key to verify the RPMs +Requires: centos-release-storage-common + +Provides: centos-release-gluster = 7 + +%description +yum configuration for Gluster 7 packages from the CentOS Storage SIG. Gluster +7 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-7.repo +%if 0%{?centos} < 7 +sed -i 's/i\$contentdir/centos/g' %{buildroot}%{_sysconfdir}/yum.repos.d/CentOS-Gluster-7.repo +%endif +%if 0%{?centos} >= 7 +install -D -m 644 %{SOURCE1} %{buildroot}%{_presetdir}/$(basename %{SOURCE1}) +%endif + +%if 0%{?centos} >= 7 +%post +%systemd_post + +%preun +%systemd_preun + +%postun +%systemd_postun +%endif + +%files +%defattr(-,root,root) +%config(noreplace) %{_sysconfdir}/yum.repos.d/CentOS-Gluster-7.repo +%if 0%{?centos} >= 7 +%{_presetdir}/75-gluster.preset +%endif + +%changelog +* Wed Aug 28 2019 Niels de Vos - 0.1-1 +- Initial version based on centos-release-gluster6 +- Only the centos-gluster7-test repo is enabled during pre-release