SHA256
1
0
forked from pool/tpm2.0-tools

- prepare running the test suite via %check, but leave it commented out,

because it is broken due to LTO linking.

OBS-URL: https://build.opensuse.org/package/show/security/tpm2.0-tools?expand=0&rev=81
This commit is contained in:
Matthias Gerstner 2021-07-08 09:07:44 +00:00 committed by Git OBS Bridge
parent 30fe5afe17
commit 64866be1b2
2 changed files with 20 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jul 8 09:07:05 UTC 2021 - Matthias Gerstner <matthias.gerstner@suse.com>
- prepare running the test suite via %check, but leave it commented out,
because it is broken due to LTO linking.
-------------------------------------------------------------------
Mon Jun 28 09:09:46 UTC 2021 - Fabian Vogt <fvogt@suse.com>

View File

@ -50,6 +50,12 @@ BuildRequires: pandoc
BuildRequires: pkgconfig
BuildRequires: tpm2-0-tss-devel
BuildRequires: tpm2.0-abrmd-devel
# requirements for unit test suite (configure --enable-unit)
BuildRequires: expect
BuildRequires: ibmswtpm2
BuildRequires: libcmocka-devel
BuildRequires: python38-pyaml
BuildRequires: tpm2.0-abrmd
Recommends: tpm2.0-abrmd
%description
@ -63,7 +69,9 @@ associated interfaces.
%autosetup -p1 -n tpm2-tools-%{version}
%build
%configure --disable-static
# help configure find required executables for testing
export PATH=$PATH:/usr/sbin:/usr/libexec/ibmtss
%configure --disable-static --enable-unit
make %{?_smp_mflags}
%install
@ -82,4 +90,9 @@ find %{buildroot} -type f -name "*.la" -delete -print
%dir %{_datadir}/bash-completion/completions
%{_datadir}/bash-completion/completions/*
# the test suite does not currently work, because it conflicts with our LTO
# linking (see bsc#1188085).
#%%check
#make check
%changelog