From 0158674bdccb5e006a46a703f48c5a0d266fc2ca Mon Sep 17 00:00:00 2001 From: eabdullin Date: Thu, 19 Sep 2024 12:12:02 +0300 Subject: [PATCH] - Use x86_64_v2 instead of in repo files. --- almalinux-kitten-release.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/almalinux-kitten-release.spec b/almalinux-kitten-release.spec index f5fdffb..64ff729 100644 --- a/almalinux-kitten-release.spec +++ b/almalinux-kitten-release.spec @@ -10,7 +10,7 @@ Name: almalinux-kitten-release Version: %{major}.%{minor} -Release: 0.18%{?dist}.1 +Release: 0.18%{?dist}.2 Summary: %{distro} release files License: GPL-2.0-or-later URL: https://almalinux.org @@ -297,6 +297,11 @@ install -p -m 0644 %{SOURCE511} %{buildroot}%{_sysconfdir}/yum.repos.d/ install -p -m 0644 %{SOURCE512} %{buildroot}%{_sysconfdir}/yum.repos.d/ %endif +# Replace basearch to x86_64_v2 +%ifarch x86_64_v2 +sed -i "s/\$basearch/x86_64_v2/g" %{buildroot}%{_sysconfdir}/yum.repos.d/*.repo +%endif + # dnf variables install -d -m 0755 %{buildroot}%{_sysconfdir}/dnf/vars echo "%{major}-stream" > %{buildroot}%{_sysconfdir}/dnf/vars/stream @@ -367,6 +372,9 @@ echo '%%x86_64_v2 1' >> %{buildroot}%{_sysconfdir}/rpm/macros.x86_64_v2 %{_sysconfdir}/pki/rpm-gpg %changelog +* Thu Sep 19 2024 Eduard Abdullin - 10.0-0.18.2 +- Use x86_64_v2 instead of $basearch in repo files. + * Tue Aug 20 2024 Eduard Abdullin - 10.0-0.18.1 - Add x86_64_v2 macros