Add stream dnf variable for CentOS SIG repos compatibility

This commit is contained in:
Andrew Lukoshko 2022-11-09 23:10:50 +01:00
parent bab1116b89
commit ac7f697b0c

View File

@ -240,7 +240,7 @@ install -p -m 0644 %{SOURCE511} %{buildroot}%{_sysconfdir}/yum.repos.d/
# dnf variables
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
@ -289,6 +289,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