diff --git a/0001-libdnf-0.65.0-add-loongarch-support.patch b/0001-libdnf-0.65.0-add-loongarch-support.patch new file mode 100644 index 0000000000000000000000000000000000000000..7dd79381c0354ebe8c9c278496541479bfd86257 --- /dev/null +++ b/0001-libdnf-0.65.0-add-loongarch-support.patch @@ -0,0 +1,25 @@ +From a734378da28087be668d1ddda7dcfd3c2f3737b1 Mon Sep 17 00:00:00 2001 +From: Huang Yang +Date: Thu, 2 Jun 2022 06:51:17 +0000 +Subject: [PATCH] libdnf 0.65.0 add loongarch support + +--- + libdnf/dnf-context.cpp | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/libdnf/dnf-context.cpp b/libdnf/dnf-context.cpp +index ad467aa..9ed55ec 100644 +--- a/libdnf/dnf-context.cpp ++++ b/libdnf/dnf-context.cpp +@@ -112,6 +112,8 @@ static const struct { + { "riscv32", { "riscv32", NULL } }, + { "riscv64", { "riscv64", NULL } }, + { "riscv128", { "riscv128", NULL } }, ++ { "loongarch32", { "loongarch32", NULL } }, ++ { "loongarch64", { "loongarch64", NULL } }, + { "s390", { "s390", NULL } }, + { "s390x", { "s390x", NULL } }, + { "sh3", { "sh3", NULL } }, +-- +2.33.0 + diff --git a/libdnf.spec b/libdnf.spec index 5d428f89307c93e48840a0533129e54c0ccc2bbe..d0aa8d6586bdbafbe0e08bac583dbaf0e6c55811 100644 --- a/libdnf.spec +++ b/libdnf.spec @@ -18,7 +18,7 @@ Name: libdnf Version: 0.69.0 -Release: 2 +Release: 3 Summary: Library providing simplified C and Python API to libsolv License: LGPLv2+ URL: https://github.com/rpm-software-management/libdnf @@ -41,6 +41,9 @@ Obsoletes: python2-hawkey-debuginfo < %{version}-%{release} Obsoletes: python2-libdnf-debuginfo < %{version}-%{release} Patch6000: backport-query-py-ensure-reldep-is-from-the-same-sack.patch +%ifarch loongarch64 +Patch6001: 0001-libdnf-0.65.0-add-loongarch-support.patch +%endif %description A Library providing simplified C and Python API to libsolv. @@ -120,6 +123,9 @@ popd %{python3_sitearch}/hawkey/ %changelog +* Thu Jan 5 2023 zhangrui - 0.69.0-3 +- DESC:add loongarch + * Fri Dec 9 2022 zhangrui - 0.69.0-2 - DESC:backport patch to ensure reldep is from the same sack