From f7cfaf46d4caca3259ec8c723c32023b7958bfe0 Mon Sep 17 00:00:00 2001 From: Alfredo Moralejo Date: Sep 30 2020 15:07:38 +0000 Subject: Add subpackage for network-extras repo This commit is adding a new subpackage centos-release-nfv-extras which enables network-extras repo in NFV SIG. --- diff --git a/SOURCES/CentOS-NFV-extras.repo b/SOURCES/CentOS-NFV-extras.repo new file mode 100644 index 0000000..ab7efb3 --- /dev/null +++ b/SOURCES/CentOS-NFV-extras.repo @@ -0,0 +1,36 @@ +# CentOS-NFV-extras.repo +# +# Please see http://wiki.centos.org/SpecialInterestGroup/NFV for more +# information + +[centos-nfv-extras] +name=CentOS-$releasever - NFV extras +#baseurl=http://mirror.centos.org/centos/$releasever/nfv/$basearch/network-extras/ +mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=nfv-network-extras +gpgcheck=1 +enabled=1 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-NFV +module_hotfixes=1 + +[centos-nfv-extras-testing] +name=CentOS-$releasever - NFV extras Testing +baseurl=http://buildlogs.centos.org/centos/$releasever/nfv/$basearch/network-extras/ +gpgcheck=0 +enabled=0 +module_hotfixes=1 + +[centos-nfv-extras-debuginfo] +name=CentOS-$releasever - NFV extras - Debug +baseurl=http://debuginfo.centos.org/centos/$releasever/nfv/$basearch/ +gpgcheck=1 +enabled=0 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-NFV +module_hotfixes=1 + +[centos-nfv-extras-source] +name=CentOS-$releasever - NFV extras - Source +baseurl=http://vault.centos.org/centos/$releasever/nfv/Source/network-extras/ +gpgcheck=1 +enabled=0 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-NFV +module_hotfixes=1 diff --git a/SPECS/centos-release-nfv.spec b/SPECS/centos-release-nfv.spec index 0863a69..cb79e31 100644 --- a/SPECS/centos-release-nfv.spec +++ b/SPECS/centos-release-nfv.spec @@ -1,12 +1,13 @@ Summary: Config to enable the repository for the NFV SIG Name: centos-release-nfv Version: 1 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2 Group: System Environment/Base URL: http://wiki.centos.org/SpecialInterestGroup/NFV Source0: RPM-GPG-KEY-CentOS-SIG-NFV Source1: CentOS-NFV-OpenvSwitch.repo +Source2: CentOS-NFV-extras.repo BuildArch: noarch @@ -29,6 +30,14 @@ Requires: %{name}-common %description openvswitch yum configs for repositories as delivered by CentOS NFV SIG. +%package extras +Summary: Release file to establish repo config for NFV network extras repo + +Requires: %{name}-common + +%description extras +yum configs for repositories as delivered by CentOS NFV SIG. + %prep %setup -q -n %{name} -T -c @@ -38,6 +47,7 @@ install -p -d %{buildroot}%{_sysconfdir}/pki/rpm-gpg install -m 644 %{SOURCE0} %{buildroot}%{_sysconfdir}/pki/rpm-gpg # openvswitch repo install -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/yum.repos.d/CentOS-NFV-OpenvSwitch.repo +install -D -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/yum.repos.d/CentOS-NFV-extras.repo %files common %defattr(-,root,root) @@ -47,7 +57,14 @@ install -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/yum.repos.d/CentOS-NFV-O %defattr(-,root,root) %config(noreplace) %{_sysconfdir}/yum.repos.d/CentOS-NFV-OpenvSwitch.repo +%files extras +%defattr(-,root,root) +%config(noreplace) %{_sysconfdir}/yum.repos.d/CentOS-NFV-extras.repo + %changelog +* Wed Sep 30 2020 Alfredo Moralejo - 1-2 +- Added centos-release-nfv-extras subpackage + * Thu Sep 10 2020 Yatin Karel - 1-1 - Initial release rpm NFV SIG