Add stream dnf variable for CentOS SIG repos compatibility

This commit is contained in:
Andrew Lukoshko 2022-10-31 09:56:23 +01:00
parent c0254e6160
commit 7226efe25f

View File

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