|
|
a5f4ba |
Name: tpm2-tools
|
|
|
a5f4ba |
Version: 1.1.0
|
|
|
a5f4ba |
Release: 7%{?dist}
|
|
|
a5f4ba |
Summary: A TPM2.0 testing tool build upon TPM2.0-TSS
|
|
|
a5f4ba |
|
|
|
a5f4ba |
%global pkg_prefix tpm2.0-tools
|
|
|
a5f4ba |
|
|
|
a5f4ba |
License: BSD
|
|
|
a5f4ba |
URL: https://github.com/01org/tpm2.0-tools
|
|
|
a5f4ba |
Source0: https://github.com/01org/tpm2.0-tools/archive/v%{version}.tar.gz#/%{pkg_prefix}-%{version}.tar.gz
|
|
|
a5f4ba |
# RHEL only. code no longer exists upstream
|
|
|
a5f4ba |
Patch0000: fix-resource-leak-InitSysContext.patch
|
|
|
a5f4ba |
# RHEL only. Upstream commit 2b6bb441 contains this and more.
|
|
|
a5f4ba |
# Added code to clean up hash malloc in err paths
|
|
|
a5f4ba |
Patch0001: HashEKPublicKey-cleanup.patch
|
|
|
a5f4ba |
# Submitted upstream. https://github.com/01org/tpm2.0-tools/pull/272
|
|
|
a5f4ba |
# Slightly different for RHEL due to code differences
|
|
|
a5f4ba |
Patch0002: tpm2_getmanuc-null-check.patch
|
|
|
a5f4ba |
# Fix is part of upstream commit 2b6bb441.
|
|
|
a5f4ba |
Patch0003: tpm2_getmanufec-leak-clean.patch
|
|
|
a5f4ba |
# Similar to part of upstream commit 2b6bb441.
|
|
|
a5f4ba |
Patch0004: ekservaddr.patch
|
|
|
a5f4ba |
# RHEL only. code completely changed upstream
|
|
|
a5f4ba |
Patch0005: void-return-listpcrs.patch
|
|
|
a5f4ba |
# Upstream commit 778bd1a0a1b5
|
|
|
a5f4ba |
Patch0006: ret-on-success-rc-decode.patch
|
|
|
a5f4ba |
# Based on part of upstream commit 2b6bb441.
|
|
|
a5f4ba |
Patch0007: tpm2-getmanufec-null-ptr-checks.patch
|
|
|
a5f4ba |
# similar fix submitted upstream https://github.com/01org/tpm2.0-tools/pull/284
|
|
|
a5f4ba |
Patch0008: tpm2-listpcrs-select.patch
|
|
|
a5f4ba |
|
|
|
a5f4ba |
BuildRequires: gcc
|
|
|
a5f4ba |
BuildRequires: gcc-c++
|
|
|
a5f4ba |
BuildRequires: libtool
|
|
|
a5f4ba |
BuildRequires: pkgconfig(libcurl)
|
|
|
a5f4ba |
BuildRequires: pkgconfig(openssl)
|
|
|
a5f4ba |
# tpm2-tss-devel provides sapi/tcti-device/tcti-socket
|
|
|
a5f4ba |
BuildRequires: pkgconfig(sapi)
|
|
|
a5f4ba |
BuildRequires: pkgconfig(tcti-device)
|
|
|
a5f4ba |
BuildRequires: pkgconfig(tcti-socket)
|
|
|
a5f4ba |
|
|
|
a5f4ba |
# this package does not support big endian arch so far,
|
|
|
a5f4ba |
# and has been verified only on Intel platforms.
|
|
|
a5f4ba |
ExclusiveArch: %{ix86} x86_64
|
|
|
a5f4ba |
|
|
|
a5f4ba |
# tpm2-tools is heavily depending on TPM2.0-TSS project, matched tss is required
|
|
|
a5f4ba |
Requires: tpm2-tss%{?_isa} >= 1.0-2%{?dist}
|
|
|
a5f4ba |
|
|
|
a5f4ba |
%description
|
|
|
a5f4ba |
tpm2-tools is a batch of testing tools for tpm2.0. It is based on tpm2-tss.
|
|
|
a5f4ba |
|
|
|
a5f4ba |
%prep
|
|
|
a5f4ba |
%autosetup -p1 -n %{pkg_prefix}-%{version}
|
|
|
a5f4ba |
./bootstrap
|
|
|
a5f4ba |
|
|
|
a5f4ba |
%build
|
|
|
a5f4ba |
%configure --prefix=/usr --disable-static --disable-silent-rules
|
|
|
a5f4ba |
%make_build
|
|
|
a5f4ba |
|
|
|
a5f4ba |
%install
|
|
|
a5f4ba |
%make_install
|
|
|
a5f4ba |
|
|
|
a5f4ba |
%files
|
|
|
a5f4ba |
%doc README.md CHANGELOG
|
|
|
a5f4ba |
%license LICENSE
|
|
|
a5f4ba |
%{_sbindir}/tpm2_*
|
|
|
a5f4ba |
|
|
|
a5f4ba |
%changelog
|
|
|
a5f4ba |
* Mon May 15 2017 Jerry Snitselaar <jsnitsel@redhat.com> - 1.1.0-7
|
|
|
a5f4ba |
- decide pcrs to read based off data returned from TPM2_GetCapability
|
|
|
a5f4ba |
resolves: rhbz#1449276
|
|
|
a5f4ba |
|
|
|
a5f4ba |
* Wed Apr 19 2017 Jerry Snitselaar <jsnitsel@redhat.com> - 1.1.0-6
|
|
|
a5f4ba |
- check for null ptrs in RetrieveEndorsementCredentials
|
|
|
a5f4ba |
|
|
|
a5f4ba |
* Tue Apr 04 2017 Jerry Snitselaar <jsnitsel@redhat.com> - 1.1.0-5
|
|
|
a5f4ba |
- Remove epel dependencies
|
|
|
a5f4ba |
- Change tpm2-tss dependency to not be tied to 1 version
|
|
|
a5f4ba |
- Fix resource leak in InitSysContext
|
|
|
a5f4ba |
- Clean up HashEKPublicKey
|
|
|
a5f4ba |
- Add needed null checks to tpm2_getmanufec
|
|
|
a5f4ba |
- clean up resource leak in tpm2_getmanufec
|
|
|
a5f4ba |
- use strdup to get server address in tpm2_getmanufec
|
|
|
a5f4ba |
- change preparePcrSelections_g to void
|
|
|
a5f4ba |
- return on success in print_rc_tpm_error_code
|
|
|
a5f4ba |
- Update release version
|
|
|
a5f4ba |
resolves: rhbz#1275029 - Add tpm2.0-tools package
|
|
|
a5f4ba |
|
|
|
a5f4ba |
* Fri Jan 20 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-4
|
|
|
a5f4ba |
- Dependency check failed for Requires again, here to fix this
|
|
|
a5f4ba |
- Update release version and changelog
|
|
|
a5f4ba |
|
|
|
a5f4ba |
* Thu Jan 19 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-3
|
|
|
a5f4ba |
- Change spec file permission to 644 to avoid rpmlint complain
|
|
|
a5f4ba |
- Update Requires to fix dependency check error reported in Bodhi
|
|
|
a5f4ba |
- Remove tpm2-tss-devel version in BuildRequires comment
|
|
|
a5f4ba |
- Update release version and changelog
|
|
|
a5f4ba |
|
|
|
a5f4ba |
* Wed Dec 21 2016 Sun Yunying <yunying.sun@intel.com> - 1.1.0-2
|
|
|
a5f4ba |
- Remove pkg_version to avoid dupliate use of version
|
|
|
a5f4ba |
- Remove redundant BuildRequires for autoconf/automake/pkgconfig
|
|
|
a5f4ba |
- Add comments for BuildRequires of sapi/tcti-device/tcti-socket
|
|
|
a5f4ba |
- Use ExclusiveArch instead of ExcludeArch
|
|
|
a5f4ba |
- Requires tpm2-tss version updated to 1.0-2
|
|
|
a5f4ba |
- Updated release version and changelog
|
|
|
a5f4ba |
|
|
|
a5f4ba |
* Fri Dec 2 2016 Sun Yunying <yunying.sun@intel.com> - 1.1.0-1
|
|
|
a5f4ba |
- Initial version of the package
|