From 57699d41aaab39742884a614e8a4be810843c79e Mon Sep 17 00:00:00 2001 From: ut003808 Date: Tue, 25 Oct 2022 16:25:49 +0800 Subject: [PATCH] fix build error on loongarch64 --- tpm2-tools.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tpm2-tools.spec b/tpm2-tools.spec index e7123aa..3a62375 100644 --- a/tpm2-tools.spec +++ b/tpm2-tools.spec @@ -1,4 +1,4 @@ -%define anolis_release .0.1 +%define anolis_release .0.2 Name: tpm2-tools Version: 4.1.1 Release: 5%{anolis_release}%{?dist} @@ -13,7 +13,7 @@ Patch2: 0001-tpm2_policyor-Silent-failure-bug-fix-for-invalid-uns.patch Patch3: 0001-tpm2_alg_util.c-fix-a-bug-where-the-string-rsa3072-w.patch Patch4: 0001-Fix-ESYS_TR-hierarchy-transition.patch Patch5: 0001-Refactor-fix_esys_hierarchies.patch -Patch6: 0001-tpm2_create.c-Fix-an-issue-where-userwithauth-attr-c.patch +Source1: 0001-tpm2_create.c-Fix-an-issue-where-userwithauth-attr-c.patch Patch7: 0001-tpm2_getekcertificate-add-default-web-address.patch Patch8: 0001-lib-files-fix-an-error-message-in-files_load_-name.patch Patch9: 0001-tpm2_policy.c-restrict-policy-digest-size.patch @@ -26,7 +26,10 @@ Patch14: 0001-tpm2_import-fix-fixed-AES-key-CVE-2021-3565.patch BuildRequires: gcc-c++ BuildRequires: libtool BuildRequires: autoconf-archive +%ifnarch loongarch64 +BuildRequires: git BuildRequires: pandoc +%endif BuildRequires: pkgconfig(cmocka) BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(openssl) @@ -57,6 +60,9 @@ Doc pages for %{name}. %prep %autosetup -p1 -n %{name}-%{version} +%ifnarch loongarch64 +git apply %{SOURCE1} +%endif %build %configure --prefix=/usr --disable-static --disable-silent-rules @@ -75,6 +81,9 @@ Doc pages for %{name}. %doc README.md CHANGELOG.md %changelog +* Tue Oct 25 2022 yangxianzhao - 4.1.1-5.0.2 +- Skip pandoc when build on loongarch + * Mon Jul 18 2022 Hangbo Fan - 4.1.1-5.0.1 - Add doc sub package -- Gitee