From 92bc8f75c1a43bebe7b5cff07daaa4691c83fa11 Mon Sep 17 00:00:00 2001 From: Huang Yang Date: Fri, 18 Nov 2022 11:29:08 +0800 Subject: [PATCH] add loongarch support --- ...-libdnf-0.65.0-add-loongarch-support.patch | 25 +++++++++++++++++++ libdnf.spec | 9 +++++-- 2 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 0001-libdnf-0.65.0-add-loongarch-support.patch 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 0000000..7dd7938 --- /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 05afa25..5e44ef1 100644 --- a/libdnf.spec +++ b/libdnf.spec @@ -18,7 +18,7 @@ Name: libdnf Version: 0.65.0 -Release: 3 +Release: 4 Summary: Library providing simplified C and Python API to libsolv License: LGPLv2+ URL: https://github.com/rpm-software-management/libdnf @@ -27,7 +27,9 @@ Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz Patch6000: add-unittest-for-setting-up-repo-with-empty-keyfile.patch Patch6001: gracefully-handle-failure-to-open-repo-primary-file.patch Patch6002: Fix-listing-a-repository-without-cpeid.patch - +%ifarch loongarch64 +Patch6003: 0001-libdnf-0.65.0-add-loongarch-support.patch +%endif BuildRequires: cmake gcc gcc-c++ libsolv-devel >= %{libsolv_version} gettext BuildRequires: pkgconfig(librepo) >= %{librepo_version} pkgconfig(check) BuildRequires: pkgconfig(gio-unix-2.0) >= 2.46.0 pkgconfig(gtk-doc) gpgme-devel @@ -122,6 +124,9 @@ popd %{python3_sitearch}/hawkey/ %changelog +* Fri Nov 18 2022 Huang Yang - 0.65.0-4 +- DESC:add loongarch support + * Tue Sep 20 2022 zhangrui - 0.65.0-3 - DESC:backport patches fix listing a repository without cpeid -- Gitee