- fix --version output of tools. Since now autoreconf is called and

configure.ac attempts to fetch the version from git (which we don't have
  during building), the version was empty. Fix this by replacing the git
  invocation in configure.ac.

OBS-URL: https://build.opensuse.org/package/show/security/tpm2.0-tools?expand=0&rev=68
This commit is contained in:
Matthias Gerstner 2021-05-04 08:56:15 +00:00 committed by Git OBS Bridge
parent f914fdbf72
commit d836ba0360
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue May 4 08:55:06 UTC 2021 - Matthias Gerstner <matthias.gerstner@suse.com>
- fix `--version` output of tools. Since now autoreconf is called and
configure.ac attempts to fetch the version from git (which we don't have
during building), the version was empty. Fix this by replacing the git
invocation in configure.ac.
-------------------------------------------------------------------
Thu Jan 28 09:49:06 UTC 2021 - Matthias Gerstner <matthias.gerstner@suse.com>

View File

@ -71,6 +71,9 @@ associated interfaces.
%build
# TODO: remove autoreconf once fix_pie_linking patch is no longer needed
# until then we need to repair the version specification which configure.ac
# wants to read from GIT which isn't there.
sed -i 's/m4_esyscmd_s([^)]\+)/%{version}/g' configure.ac
autoreconf -fvi
%configure --disable-static
make %{?_smp_mflags}