Add stream dnf variable for CentOS SIG repos compatibility

a9-beta 9.1-1.8
Andrew Lukoshko 3 months ago
parent c0254e6160
commit 7226efe25f
  1. 5
      almalinux-release.spec

@ -241,9 +241,9 @@ install -p -m 0644 %{SOURCE510} %{buildroot}%{_sysconfdir}/yum.repos.d/
install -p -m 0644 %{SOURCE511} %{buildroot}%{_sysconfdir}/yum.repos.d/
%endif
# dnf variables
# dnf variables for CentOS SIG repos compatibility
install -d -m 0755 %{buildroot}%{_sysconfdir}/dnf/vars
# echo "%{major}-stream" > %{buildroot}%{_sysconfdir}/dnf/vars/stream
echo "%{major}-stream" > %{buildroot}%{_sysconfdir}/dnf/vars/stream
# copy GPG keys
install -d -m 0755 %{buildroot}%{_sysconfdir}/pki/rpm-gpg
@ -292,6 +292,7 @@ install -p -m 0644 %{SOURCE600} %{buildroot}%{_sysconfdir}/pki/rpm-gpg/
%config(noreplace) %{_sysconfdir}/yum.repos.d/almalinux-nfv.repo
%config(noreplace) %{_sysconfdir}/yum.repos.d/almalinux-rt.repo
%endif
%config(noreplace) %{_sysconfdir}/dnf/vars/stream
%files -n almalinux-gpg-keys
%{_sysconfdir}/pki/rpm-gpg

Loading…
Cancel
Save