diff --git a/SPECS/sphere-release.spec b/SPECS/sphere-release.spec index 4c95f8e..1b7e258 100644 --- a/SPECS/sphere-release.spec +++ b/SPECS/sphere-release.spec @@ -510,6 +510,11 @@ install -p -m 0644 %{SOURCE507} %{buildroot}%{_sysconfdir}/yum.repos.d/ install -p -m 0644 %{SOURCE508} %{buildroot}%{_sysconfdir}/yum.repos.d/ install -p -m 0644 %{SOURCE509} %{buildroot}%{_sysconfdir}/yum.repos.d/ +# Use beta repos +%if %{defined beta} +sed -i "s@\$releasever@%{major}.%{minor}-beta@g" %{buildroot}%{_sysconfdir}/yum.repos.d/*.repo +%endif + # copy GPG keys install -d -m 0755 %{buildroot}%{_sysconfdir}/pki/rpm-gpg install -p -m 0644 %{SOURCE100} %{buildroot}%{_sysconfdir}/pki/rpm-gpg/