diff --git a/0001-Add-loongarch-architecture-support.patch b/0001-Add-loongarch-architecture-support.patch new file mode 100644 index 0000000..177c430 --- /dev/null +++ b/0001-Add-loongarch-architecture-support.patch @@ -0,0 +1,25 @@ +From 77d9646088647ae2bbecb70248701458662ebf48 Mon Sep 17 00:00:00 2001 +From: Sun Haiyong +Date: Wed, 22 Dec 2021 14:37:16 +0800 +Subject: [PATCH] Add loongarch architecture support. + +--- + dnf/rpm/__init__.py | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/dnf/rpm/__init__.py b/dnf/rpm/__init__.py +index 696e594..0db8e95 100644 +--- a/dnf/rpm/__init__.py ++++ b/dnf/rpm/__init__.py +@@ -97,6 +97,8 @@ _BASEARCH_MAP = _invert({ + 'mipsel': ('mipsel',), + 'mips64': ('mips64',), + 'mips64el': ('mips64el',), ++ 'loongarch32' : ('loongarch32',), ++ 'loongarch64' : ('loongarch64',), + 'noarch': ('noarch',), + 'ppc': ('ppc',), + 'ppc64': ('ppc64', 'ppc64iseries', 'ppc64p7', 'ppc64pseries'), +-- +2.30.0 + diff --git a/dnf.spec b/dnf.spec index 296b9c6..5925893 100644 --- a/dnf.spec +++ b/dnf.spec @@ -3,7 +3,7 @@ Name: dnf Version: 4.14.0 -Release: 1 +Release: 2 Summary: A software package manager that manages packages on Linux distributions. License: GPLv2+ and GPLv2 and GPL URL: https://github.com/rpm-software-management/dnf @@ -18,6 +18,9 @@ Patch9004: fix-dnf-history-undo-error-when-history-sqlite-missing.pat %ifarch sw_64 Patch6002: dnf-4.10.0-sw.patch %endif +%ifarch loongarch64 +Patch6003: 0001-Add-loongarch-architecture-support.patch +%endif BuildArch: noarch BuildRequires: cmake gettext systemd bash-completion python3-sphinx @@ -229,6 +232,9 @@ ln -sr %{buildroot}%{_sysconfdir}/%{name}/vars %{buildroot}%{_sysconfdir}/yum/v %{_mandir}/man8/%{name}-automatic.8* %changelog +* Sat Nov 19 2022 Wenlong Zhang - 4.14.0-2 +- Add loongarch support for dnf + * Thu Nov 17 2022 chenhaixing - 4.14.0-1 - DESC:upgrade dnf version to 4.14.0