From e68c332e2718c1e499c63ddbb23e351b6d990bb7 Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Tue, 8 Nov 2022 13:16:13 +0800 Subject: [PATCH] spec: disable man doc on loongarch64 --- 1000-disable-pandoc.patch | 11 +++++++++++ tpm2-tools.spec | 11 ++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 1000-disable-pandoc.patch diff --git a/1000-disable-pandoc.patch b/1000-disable-pandoc.patch new file mode 100644 index 0000000..efad906 --- /dev/null +++ b/1000-disable-pandoc.patch @@ -0,0 +1,11 @@ +--- a/configure 2022-11-08 11:40:09.142211099 +0800 ++++ b/configure 2022-11-08 11:40:37.517529255 +0800 +@@ -12583,7 +12583,7 @@ + HAVE_PANDOC_FALSE= + fi + +- if test -d "${srcdir}/man/man1" -o "x${PANDOC}" = "xyes"; then ++ if test -d "${srcdir}/man/man1" -a "x${PANDOC}" = "xyes"; then + HAVE_MAN_PAGES_TRUE= + HAVE_MAN_PAGES_FALSE='#' + else diff --git a/tpm2-tools.spec b/tpm2-tools.spec index 1ccbdf5..2129c88 100644 --- a/tpm2-tools.spec +++ b/tpm2-tools.spec @@ -1,4 +1,4 @@ -%define anolis_release .0.2 +%define anolis_release .0.4 Name: tpm2-tools Version: 4.1.1 Release: 5%{anolis_release}%{?dist} @@ -25,10 +25,14 @@ Patch14: 0001-tpm2_import-fix-fixed-AES-key-CVE-2021-3565.patch patch15: 0001-add-gm-support-for-all-commands.patch patch16: 0001-add-gm-test-case-for-all-commands.patch +Patch1000: 1000-disable-pandoc.patch + BuildRequires: gcc-c++ BuildRequires: libtool BuildRequires: autoconf-archive +%ifnarch loongarch64 BuildRequires: pandoc +%endif BuildRequires: pkgconfig(cmocka) BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(openssl) @@ -72,12 +76,17 @@ Doc pages for %{name}. %license LICENSE %{_bindir}/tpm2_* %{_datadir}/bash-completion/completions/tpm2* +%ifnarch loongarch64 %{_mandir}/man1/tpm2_*.1.gz +%endif %files doc %doc README.md CHANGELOG.md %changelog +* Tue Nov 8 2022 Liwei Ge - 4.1.1-5.0.4 +- Disable doc on loongarch64 + * Wed Oct 19 2022 chench -4.1.1-5.0.3 - Add gm test case for all commands. - This patch tests all commands for gm support. Every script test a class of commands -- Gitee