forked from pool/tpm2.0-tools
Accepting request 890270 from security
- 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/request/show/890270 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tpm2.0-tools?expand=0&rev=23
This commit is contained in:
commit
b165e43c84
1
_service
1
_service
@ -1,4 +1,5 @@
|
||||
<services>
|
||||
<!-- we need to setup a download_files service here. it is already called implicitly for some reason in the devel project, but not in e.g. SLE-15 -->
|
||||
<service name="tar_scm" mode="disabled">
|
||||
<param name="url">https://github.com/intel/tpm2-tools.git</param>
|
||||
<param name="scm">git</param>
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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}
|
||||
@ -84,7 +87,8 @@ find %{buildroot} -type f -name "*.la" -delete -print
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc README.md doc/LICENSE doc/CHANGELOG.md
|
||||
%doc README.md doc/CHANGELOG.md
|
||||
%license doc/LICENSE
|
||||
/usr/bin/tpm2*
|
||||
/usr/bin/tss2*
|
||||
%{_mandir}/man1/tpm2*
|
||||
|
Loading…
Reference in New Issue
Block a user