forked from pool/ibmswtpm2
- update to 1682: * tpm: Fix cast in BnSetBit. * tpm2: Fix size check in CryptSecretDecrypt * tpm: Port Windows code for OpenSSL 3.0 * tpm: Update to openssl 3.0.2 * tpm: Add command and handle tracing * tpm: Update for openssl 3.0.1 * tpm: Add ECC encrypt and decrypt commands * Fix compilation on RISC-V * PlatformSvc: return error on control socket failure * main: set a return code if StartTcpServer fails * tpm: Add all updates to TPM specification 164. - drop ibmswtpm2-fix-ppc32.patch (upstream) - makefile.patch: refresh OBS-URL: https://build.opensuse.org/request/show/1005719 OBS-URL: https://build.opensuse.org/package/show/security/ibmswtpm2?expand=0&rev=26
67 lines
2.1 KiB
RPMSpec
67 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package ibmswtpm2
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define suite ibmtss
|
|
%ifarch ppc ppc64 s390 s390x
|
|
%define extra_ccflags -DBIG_ENDIAN_TPM=1
|
|
%else
|
|
%define extra_ccflags ""
|
|
%endif
|
|
Name: ibmswtpm2
|
|
Version: 1682
|
|
Release: 0
|
|
Summary: IBM's Software TPM 2.0
|
|
License: BSD-3-Clause
|
|
Group: Development/Tools/Other
|
|
URL: https://sourceforge.net/projects/ibmswtpm2
|
|
Source: https://sourceforge.net/projects/ibmswtpm2/files/ibmtpm%{version}.tar.gz
|
|
Patch0: makefile.patch
|
|
Patch1: ibmswtpm2-TcpServerPosix-Fix-use-of-uninitialized-value.patch
|
|
Patch2: ibmswtpm2-NVDynamic-Fix-use-of-uninitialized-value.patch
|
|
BuildRequires: libopenssl-devel >= 1.0
|
|
|
|
%description
|
|
An implementation of the TCG TPM 2.0 specification. It is based on
|
|
the TPM specification Parts 3 and 4 source code donated by Microsoft,
|
|
with additional files to complete the implementation.
|
|
|
|
This TPM emulator listens on TCP ports (default 2321 and 2322) and
|
|
saves state to the file "NVChip" in the current directory.
|
|
|
|
It is probably not of much use other than testing the IBM TSS
|
|
implementation because of this specific interface.
|
|
|
|
%prep
|
|
%setup -q -c
|
|
%autopatch -p 1
|
|
|
|
%build
|
|
cd src
|
|
CCFLAGS="%{optflags} "%{extra_ccflags} make %{?_smp_mflags}
|
|
|
|
%install
|
|
cd src
|
|
install -m 755 -D -t %{buildroot}/%{_libexecdir}/%{suite} tpm_server
|
|
|
|
%files
|
|
%dir %{_libexecdir}/%{suite}
|
|
%{_libexecdir}/%{suite}/tpm_server
|
|
%doc ibmtpm.doc
|
|
|
|
%changelog
|