Accepting request 567290 from home:michals

Enable use of ibmswtpm2 on BE

OBS-URL: https://build.opensuse.org/request/show/567290
OBS-URL: https://build.opensuse.org/package/show/security/ibmtss?expand=0&rev=15
This commit is contained in:
Michal Suchanek 2018-01-18 09:08:23 +00:00 committed by Git OBS Bridge
parent 1e48405ebc
commit 7534a86965
2 changed files with 10 additions and 10 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 18 08:34:51 UTC 2018 - msuchanek@suse.com
- Enable test on BE
-------------------------------------------------------------------
Wed Nov 8 15:35:53 UTC 2017 - msuchanek@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package ibmtss
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -30,13 +30,8 @@ Source: https://sourceforge.net/projects/ibmtpm20tss/files/ibmtss%{versi
Patch: makefile.patch
Source1: %{name}
Source2: %{name}.1
BuildRequires: libopenssl-devel
%ifnarch s390x s390 ppc64 ppc
BuildRequires: ibmswtpm2
%define test 1
%else
%define test ""
%endif
BuildRequires: libopenssl-devel
Recommends: %{name}-base = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -70,11 +65,11 @@ Includes IBM's TPM 2.0 TSS C header files
%build
cd utils
[ -n "%{test}" ] && { %{_libexecdir}/%{suite}/tpm_server & tpm_server="$!" ; }
%{_libexecdir}/%{suite}/tpm_server & tpm_server="$!"
CCFLAGS="%{optflags}" make LNAFLAGS="-Wl,-rpath,%{_libexecdir}/%{suite}" %{?_smp_mflags}
testfailed=0
[ -n "%{test}" ] && { TPM_INTERFACE_TYPE=socsim LD_LIBRARY_PATH=. ./reg.sh || testfailed=$? ; }
[ -n "%{test}" ] && kill "$tpm_server" || :
TPM_INTERFACE_TYPE=socsim LD_LIBRARY_PATH=. ./reg.sh || testfailed=$?
kill "$tpm_server" || :
[ "$testfailed" -eq 0 ]
%install