!159 fix build error for loongarch64

From: @zhangwenlong01 
Reviewed-by: @t_feng 
Signed-off-by: @t_feng
This commit is contained in:
openeuler-ci-bot 2023-01-10 13:15:17 +00:00 committed by Gitee
commit d7b2a7523b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -3,7 +3,7 @@
Name: dnf
Version: 4.14.0
Release: 7
Release: 8
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
@ -19,10 +19,9 @@ Patch9005: huawei-lock-file-add-verify-parameter.patch
%ifarch sw_64
Patch6000: dnf-4.10.0-sw.patch
%endif
%ifarch loongarch64
%if 0%(test `uname -m` == "loongarch64" && echo 1)
Patch6001: 0001-Add-loongarch-architecture-support.patch
%endif
Patch6002: backport-fix-plugins-unit-tests-unload-plugins-upon-their-deletion.patch
BuildArch: noarch
@ -248,6 +247,9 @@ popd
%{_mandir}/man8/%{name}-automatic.8*
%changelog
* Fri Jan 6 2023 Wenlong Zhang<zhangwenlong@loongson.cn> - 4.14.0-8
- DESC: fix build error for loongarch64
* Tue Dec 20 2022 chenhaixing <chenhaixing@huawei.com> - 4.14.0-7
- DESC:fix test cases failed in tests/test_plugin.py