- install-man.patch: even after update to 3.0.4 the man pages are not

installed correctly. This patch fixes it locally.

OBS-URL: https://build.opensuse.org/package/show/security/tpm2.0-tools?expand=0&rev=38
This commit is contained in:
Matthias Gerstner 2018-05-02 12:11:07 +00:00 committed by Git OBS Bridge
parent f479ea4d55
commit 04fa779b2e
3 changed files with 28 additions and 0 deletions

20
install-man.patch Normal file
View File

@ -0,0 +1,20 @@
Index: tpm2-tools-3.0.4/Makefile.am
===================================================================
--- tpm2-tools-3.0.4.orig/Makefile.am
+++ tpm2-tools-3.0.4/Makefile.am
@@ -273,7 +273,6 @@ EXTRA_DIST = $(top_srcdir)/man \
RELEASE.md \
test/system
-if HAVE_PANDOC
man1_MANS := \
man/man1/tpm2_activatecredential.1 \
man/man1/tpm2_certify.1 \
@@ -315,6 +314,7 @@ if HAVE_PANDOC
man/man1/tpm2_unseal.1 \
man/man1/tpm2_verifysignature.1
+if HAVE_PANDOC
# If pandoc is enabled, we want to generate the manpages for the dist tarball
EXTRA_DIST += $(man1_MANS)
else

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed May 2 12:09:22 UTC 2018 - matthias.gerstner@suse.com
- install-man.patch: even after update to 3.0.4 the man pages are not
installed correctly. This patch fixes it locally.
-------------------------------------------------------------------
Wed May 2 11:02:07 UTC 2018 - matthias.gerstner@suse.com

View File

@ -25,6 +25,7 @@ Group: Productivity/Security
Url: https://github.com/tpm2-software/tpm2-tools/releases
Source0: https://github.com/tpm2-software/tpm2-tools/releases/download/%{version}/tpm2-tools-%{version}.tar.gz
Patch0: tpm2.0-tools-fix-hardening.patch
Patch1: install-man.patch
BuildRequires: autoconf-archive
BuildRequires: automake
BuildRequires: gcc-c++
@ -59,6 +60,7 @@ associated interfaces.
%prep
%setup -q -n tpm2-tools-%{version}
%patch0 -p1
%patch1 -p1
%build
%configure --disable-static