2016-03-24 13:32:00 +01:00
|
|
|
#
|
2016-08-22 14:02:21 +02:00
|
|
|
# spec file for package tpm2.0-tools
|
2016-03-24 13:32:00 +01:00
|
|
|
#
|
2021-01-28 11:50:59 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2016-03-24 13:32:00 +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-08-26 09:43:27 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-03-24 13:32:00 +01:00
|
|
|
#
|
|
|
|
|
2016-08-22 14:02:21 +02:00
|
|
|
|
2016-03-24 14:51:15 +01:00
|
|
|
Name: tpm2.0-tools
|
2021-06-28 11:47:58 +02:00
|
|
|
Version: 5.1.1
|
2016-03-24 13:32:00 +01:00
|
|
|
Release: 0
|
2016-03-24 14:51:15 +01:00
|
|
|
Summary: Trusted Platform Module (TPM) 2.0 administration tools
|
2016-04-05 15:46:01 +02:00
|
|
|
License: BSD-3-Clause
|
2016-03-24 13:32:00 +01:00
|
|
|
Group: Productivity/Security
|
2020-10-22 14:14:07 +02:00
|
|
|
URL: https://github.com/tpm2-software/tpm2-tools/releases
|
2018-02-22 12:21:56 +01:00
|
|
|
Source0: https://github.com/tpm2-software/tpm2-tools/releases/download/%{version}/tpm2-tools-%{version}.tar.gz
|
2021-06-28 11:47:58 +02:00
|
|
|
Source1: https://github.com/tpm2-software/tpm2-tools/releases/download/%{version}/tpm2-tools-%{version}.tar.gz.asc
|
|
|
|
# git show william-roberts-pub javier-martinez-pub joshua-lock-pub idesai-pub > tpm2-tools.keyring
|
|
|
|
Source2: tpm2-tools.keyring
|
2019-12-11 14:30:50 +01:00
|
|
|
Patch0: fix_bogus_warning.patch
|
2021-06-17 11:37:22 +02:00
|
|
|
Patch2: 0001-tpm2_checkquote-fix-uninitialized-variable.patch
|
2021-06-18 16:57:05 +02:00
|
|
|
Patch3: 0001-tpm2_eventlog-read-eventlog-file-in-chunks.patch
|
2021-07-30 10:12:10 +02:00
|
|
|
Patch4: 0001-tpm2_eventlog-fix-buffer-offset-when-reading-the-eve.patch
|
2016-08-22 14:02:21 +02:00
|
|
|
BuildRequires: gcc-c++
|
2017-03-01 17:18:06 +01:00
|
|
|
BuildRequires: libcurl-devel
|
|
|
|
BuildRequires: libopenssl-devel
|
2016-03-24 13:32:00 +01:00
|
|
|
BuildRequires: libtool
|
2020-10-22 15:30:56 +02:00
|
|
|
BuildRequires: libuuid-devel
|
2021-06-28 11:47:58 +02:00
|
|
|
BuildRequires: pkgconfig(efivar)
|
|
|
|
# Pandoc is used for generating the man pages, but since 3.0.4 prebuilt man
|
|
|
|
# pages are shipped with the distribution tarball and we don't need to generate
|
|
|
|
# them any more. Pandoc is only available on openSUSE (not 32-bit x86) and not
|
|
|
|
# in Ring 1 (no haskell), so can't be used as build dependency here.
|
|
|
|
%if 0
|
2018-03-07 16:44:46 +01:00
|
|
|
%if 0%{?is_opensuse}
|
2021-06-14 10:57:05 +02:00
|
|
|
%ifnarch %{ix86}
|
2018-02-22 12:21:56 +01:00
|
|
|
BuildRequires: pandoc
|
2018-03-07 15:45:11 +01:00
|
|
|
%endif
|
2021-06-14 10:57:05 +02:00
|
|
|
%endif
|
2021-06-28 11:47:58 +02:00
|
|
|
%endif
|
2017-03-06 17:23:28 +01:00
|
|
|
BuildRequires: pkgconfig
|
2017-03-01 17:18:06 +01:00
|
|
|
BuildRequires: tpm2-0-tss-devel
|
2017-08-21 18:23:48 +02:00
|
|
|
BuildRequires: tpm2.0-abrmd-devel
|
2021-07-08 11:07:44 +02:00
|
|
|
# requirements for unit test suite (configure --enable-unit)
|
|
|
|
BuildRequires: expect
|
|
|
|
BuildRequires: ibmswtpm2
|
|
|
|
BuildRequires: libcmocka-devel
|
|
|
|
BuildRequires: python38-pyaml
|
|
|
|
BuildRequires: tpm2.0-abrmd
|
2021-07-09 09:27:41 +02:00
|
|
|
# for xxd, which is also required by the tests
|
|
|
|
BuildRequires: vim
|
2017-08-03 10:12:24 +02:00
|
|
|
Recommends: tpm2.0-abrmd
|
2016-03-24 13:32:00 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Trusted Computing is a set of specifications published by the Trusted
|
|
|
|
Computing Group (TCG). The Trusted Platform Module (TPM) is the
|
2016-08-22 14:02:21 +02:00
|
|
|
hardware component for Trusted Computing. The tpm2.0-tools package
|
|
|
|
provides tools for enablement and configuration of the TPM 2.0 and
|
|
|
|
associated interfaces.
|
2016-03-24 13:32:00 +01:00
|
|
|
|
|
|
|
%prep
|
2021-06-28 11:47:58 +02:00
|
|
|
%autosetup -p1 -n tpm2-tools-%{version}
|
2016-03-24 17:56:34 +01:00
|
|
|
|
2016-03-24 13:32:00 +01:00
|
|
|
%build
|
2021-07-08 11:07:44 +02:00
|
|
|
# help configure find required executables for testing
|
|
|
|
export PATH=$PATH:/usr/sbin:/usr/libexec/ibmtss
|
|
|
|
%configure --disable-static --enable-unit
|
2016-03-24 13:32:00 +01:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2021-02-02 13:23:20 +01:00
|
|
|
%doc README.md doc/CHANGELOG.md
|
|
|
|
%license doc/LICENSE
|
2021-01-28 11:50:59 +01:00
|
|
|
/usr/bin/tpm2*
|
|
|
|
/usr/bin/tss2*
|
|
|
|
%{_mandir}/man1/tpm2*
|
|
|
|
%{_mandir}/man1/tss2*
|
2019-12-11 14:30:50 +01:00
|
|
|
%dir %{_datadir}/bash-completion
|
|
|
|
%dir %{_datadir}/bash-completion/completions
|
|
|
|
%{_datadir}/bash-completion/completions/*
|
2016-03-24 13:32:00 +01:00
|
|
|
|
2021-07-08 11:07:44 +02:00
|
|
|
# the test suite does not currently work, because it conflicts with our LTO
|
|
|
|
# linking (see bsc#1188085).
|
|
|
|
#%%check
|
|
|
|
#make check
|
|
|
|
|
2016-03-24 13:32:00 +01:00
|
|
|
%changelog
|