From 01866f6b52e4fe1117c89ac696e7bc737f524413 Mon Sep 17 00:00:00 2001 From: YukariChiba Date: Thu, 24 Feb 2022 20:04:42 +0800 Subject: [PATCH] Remove digest-list-tools dependency in RISC-V to avoid selinux error Remove libverifier_ima_sig.so from filelist when building in RISC-V --- attest-tools.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/attest-tools.spec b/attest-tools.spec index 4370802..b3205eb 100644 --- a/attest-tools.spec +++ b/attest-tools.spec @@ -1,6 +1,6 @@ name: attest-tools Version: 0.2.92 -Release: 4 +Release: 5 Summary: Attestation tools Source0: https://gitee.com/openeuler/%{name}/repository/archive/v%{version}.tar.gz @@ -8,7 +8,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) License: GPLv2+ Url: https://gitee.com/openeuler/attest-tools BuildRequires: autoconf automake libcurl-devel libtool openssl-devel -BuildRequires: digest-list-tools-devel json-c-devel libcurl-devel tss2-devel systemd +BuildRequires: json-c-devel libcurl-devel tss2-devel systemd +%ifnarch riscv64 +BuildRequires: digest-list-tools +%endif Requires: json-c curl tss2 openssl_tpm2_engine %if 0%{?suse_version} @@ -72,7 +75,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libverifier_dummy.so %{_libdir}/libenroll_server.so %{_libdir}/libverifier_ima_cp.so +%ifnarch riscv64 %{_libdir}/libverifier_ima_sig.so +%endif %{_libdir}/libverifier_evm_key.so %{_libdir}/libeventlog_ima.so %{_libdir}/libverifier_ima_boot_aggregate.la @@ -95,6 +100,10 @@ rm -rf $RPM_BUILD_ROOT %{_prefix}/include/attest-tools %changelog +* Thu Feb 24 2022 YukariChiba - 0.2.92-5 +- Remove digest-list-tools dependency in RISC-V to avoid selinux error +- Remove libverifier_ima_sig.so in filelist when building in RISC-V + * Fri Sep 03 2021 wangyue - 0.2.92-4 - Add openssl_tpm2_engine in requires -- Gitee