2017-02-01 07:40:07 +01:00
|
|
|
#
|
2017-02-08 10:07:16 +01:00
|
|
|
# spec file for package ibmswtpm2
|
2017-02-01 07:40:07 +01:00
|
|
|
#
|
2024-04-04 11:14:46 +02:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2017-02-01 07:40:07 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-07-07 15:41:20 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-02-08 10:07:16 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-02-01 07:40:07 +01:00
|
|
|
%define suite ibmtss
|
2024-04-04 11:14:46 +02:00
|
|
|
%define download_version 183-2024-03-27
|
2019-07-07 15:41:20 +02:00
|
|
|
%ifarch ppc ppc64 s390 s390x
|
|
|
|
%define extra_ccflags -DBIG_ENDIAN_TPM=1
|
|
|
|
%else
|
|
|
|
%define extra_ccflags ""
|
|
|
|
%endif
|
2017-02-01 07:40:07 +01:00
|
|
|
Name: ibmswtpm2
|
2023-12-01 17:04:22 +01:00
|
|
|
Version: %(echo %{download_version} | tr '-' '+')
|
2017-02-08 10:07:16 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: IBM's Software TPM 2.0
|
|
|
|
License: BSD-3-Clause
|
2017-02-13 12:00:09 +01:00
|
|
|
Group: Development/Tools/Other
|
2023-12-01 17:04:22 +01:00
|
|
|
URL: https://github.com/kgoldman/ibmswtpm2
|
|
|
|
Source: https://github.com/kgoldman/ibmswtpm2/archive/rev%{download_version}.tar.gz#/%{name}-%{download_version}.tar.gz
|
2022-10-04 16:32:52 +02:00
|
|
|
Patch0: makefile.patch
|
2024-04-04 11:21:48 +02:00
|
|
|
Patch1: ibmswtpm2-TcpServerPosix-Fix-use-of-uninitialized-value.patch
|
2017-02-08 10:07:16 +01:00
|
|
|
BuildRequires: libopenssl-devel >= 1.0
|
2017-02-01 07:40:07 +01:00
|
|
|
|
|
|
|
%description
|
2017-02-13 12:00:09 +01:00
|
|
|
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.
|
2017-02-01 07:40:07 +01:00
|
|
|
|
2017-02-13 12:00:09 +01:00
|
|
|
This TPM emulator listens on TCP ports (default 2321 and 2322) and
|
|
|
|
saves state to the file "NVChip" in the current directory.
|
2017-02-01 07:40:07 +01:00
|
|
|
|
2017-02-13 12:00:09 +01:00
|
|
|
It is probably not of much use other than testing the IBM TSS
|
|
|
|
implementation because of this specific interface.
|
2017-02-01 07:40:07 +01:00
|
|
|
|
|
|
|
%prep
|
2023-12-01 17:04:22 +01:00
|
|
|
%autosetup -p 1 -n %{name}-rev%{download_version}
|
2017-02-01 07:40:07 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
cd src
|
2018-01-18 10:07:45 +01:00
|
|
|
CCFLAGS="%{optflags} "%{extra_ccflags} make %{?_smp_mflags}
|
2017-02-01 07:40:07 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
cd src
|
|
|
|
install -m 755 -D -t %{buildroot}/%{_libexecdir}/%{suite} tpm_server
|
|
|
|
|
|
|
|
%files
|
|
|
|
%dir %{_libexecdir}/%{suite}
|
|
|
|
%{_libexecdir}/%{suite}/tpm_server
|
|
|
|
%doc ibmtpm.doc
|
2017-02-08 10:07:16 +01:00
|
|
|
|
|
|
|
%changelog
|