diff --git a/install-man.patch b/install-man.patch new file mode 100644 index 0000000..874a942 --- /dev/null +++ b/install-man.patch @@ -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 diff --git a/tpm2.0-tools.changes b/tpm2.0-tools.changes index e3e849e..0e6a29a 100644 --- a/tpm2.0-tools.changes +++ b/tpm2.0-tools.changes @@ -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 diff --git a/tpm2.0-tools.spec b/tpm2.0-tools.spec index 7ea3483..07ed79f 100644 --- a/tpm2.0-tools.spec +++ b/tpm2.0-tools.spec @@ -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