chantra / rpms / tpm2-tools

Forked from rpms/tpm2-tools 2 years ago
Clone

Blame SPECS/tpm2-tools.spec

a41b42
Name: tpm2-tools
a41b42
Version: 3.0.4
a41b42
Release: 3%{?dist}
a41b42
Summary: A TPM2.0 testing tool build upon TPM2.0-TSS
a41b42
a41b42
License: BSD
a41b42
URL:     https://github.com/tpm2-software/tpm2-tools
a41b42
Source0: https://github.com/tpm2-software/tpm2-tools/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
a41b42
a41b42
# work around lack of pandoc in RHEL7
a41b42
Patch0: add-man-pages.patch
a41b42
# Deal with RHEL rpmbuilds not being from git
a41b42
Patch1: autoconf-fixup.patch
a41b42
Patch2: 0001-tpm2_create-Use-better-object-attributes-defaults-fo.patch
a41b42
a41b42
BuildRequires: gcc-c++
a41b42
BuildRequires: libtool
a41b42
BuildRequires: autoconf-archive
a41b42
BuildRequires: pkgconfig(cmocka)
a41b42
BuildRequires: pkgconfig(libcurl)
a41b42
BuildRequires: pkgconfig(openssl)
a41b42
# tpm2-tss-devel provides sapi/tcti-device/tcti-socket
a41b42
BuildRequires: pkgconfig(sapi)
a41b42
BuildRequires: pkgconfig(tcti-device)
a41b42
BuildRequires: pkgconfig(tcti-socket)
a41b42
BuildRequires: pkgconfig(tcti-tabrmd)
a41b42
a41b42
# this package does not support big endian arch so far,
a41b42
# and has been verified only on Intel platforms.
a41b42
ExclusiveArch: %{ix86} x86_64
a41b42
a41b42
# tpm2-tools is heavily depending on TPM2.0-TSS project, matched tss is required
a41b42
Requires: tpm2-tss%{?_isa} >= 1.3.0-1%{?dist}
a41b42
a41b42
# tpm2-tools project changed the install path for binaries and man page section
a41b42
Obsoletes: tpm2-tools <= 2.1.0-2
a41b42
a41b42
%description
a41b42
tpm2-tools is a batch of testing tools for tpm2.0. It is based on tpm2-tss.
a41b42
a41b42
%prep
a41b42
%autosetup -p1 -n %{name}-%{version}
a41b42
./bootstrap
a41b42
a41b42
%build
a41b42
%configure --prefix=/usr --disable-static --disable-silent-rules
a41b42
%make_build
a41b42
a41b42
%install
a41b42
%make_install
a41b42
a41b42
%files
a41b42
%doc README.md CHANGELOG.md
a41b42
%license LICENSE
a41b42
%{_bindir}/tpm2_*
a41b42
%{_mandir}/man1/tpm2_*.1.gz
a41b42
a41b42
%changelog
a41b42
* Thu Feb 21 2019 Jerry Snitselaar  <jsnitsel@redhat.com> - 3.0.4-3
a41b42
- Remove obsolete flag from tpm2_create examples
a41b42
resolves: rhbz#1570870
a41b42
a41b42
* Thu Sep 06 2018 Jerry Snitselaar <jsnitsel@redhat.com> - 3.0.4-2
a41b42
- tpm2_create: Use better object attributes defaults for authentication
a41b42
resolves: rhbz#1627282
a41b42
a41b42
* Fri Jun 15 2018 Jerry Snitselaar <jsnitsel@redhat.com> - 3.0.4-1
a41b42
- Rebase to 3.0.4 release
a41b42
resolves: rhbz#1515108
a41b42
a41b42
* Wed Dec 13 2017 Jerry Snitselaar <jsnitsel@redhat.com> - 3.0.1-1
a41b42
- Rebase to 3.0.1 release
a41b42
resolves: rhbz#1463100
a41b42
a41b42
* Wed Oct 18 2017 Jerry Snitselaar <jsnitsel@redhat.com> - 2.1.0-2
a41b42
- Fix potential memory leak
a41b42
resolves: rhbz#1463100
a41b42
a41b42
* Wed Aug 30 2017 Jerry Snitselaar <jsnitsel@redhat.com> - 2.1.0-1
a41b42
- Rebase to 2.1.0 release
a41b42
resolves: rhbz#1463100
a41b42
a41b42
* Mon May 15 2017 Jerry Snitselaar <jsnitsel@redhat.com> - 1.1.0-7
a41b42
- decide pcrs to read based off data returned from TPM2_GetCapability
a41b42
resolves: rhbz#1449276
a41b42
a41b42
* Wed Apr 19 2017 Jerry Snitselaar <jsnitsel@redhat.com> - 1.1.0-6
a41b42
- check for null ptrs in RetrieveEndorsementCredentials
a41b42
a41b42
* Tue Apr 04 2017 Jerry Snitselaar <jsnitsel@redhat.com> - 1.1.0-5
a41b42
- Remove epel dependencies
a41b42
- Change tpm2-tss dependency to not be tied to 1 version
a41b42
- Fix resource leak in InitSysContext
a41b42
- Clean up HashEKPublicKey
a41b42
- Add needed null checks to tpm2_getmanufec
a41b42
- clean up resource leak in tpm2_getmanufec
a41b42
- use strdup to get server address in tpm2_getmanufec
a41b42
- change preparePcrSelections_g to void
a41b42
- return on success in print_rc_tpm_error_code
a41b42
- Update release version
a41b42
resolves: rhbz#1275029 - Add tpm2.0-tools package
a41b42
a41b42
* Fri Jan 20 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-4
a41b42
- Dependency check failed for Requires again, here to fix this
a41b42
- Update release version and changelog
a41b42
a41b42
* Thu Jan 19 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-3
a41b42
- Change spec file permission to 644 to avoid rpmlint complain
a41b42
- Update Requires to fix dependency check error reported in Bodhi
a41b42
- Remove tpm2-tss-devel version in BuildRequires comment
a41b42
- Update release version and changelog
a41b42
a41b42
* Wed Dec 21 2016 Sun Yunying <yunying.sun@intel.com> - 1.1.0-2
a41b42
- Remove pkg_version to avoid dupliate use of version
a41b42
- Remove redundant BuildRequires for autoconf/automake/pkgconfig
a41b42
- Add comments for BuildRequires of sapi/tcti-device/tcti-socket
a41b42
- Use ExclusiveArch instead of ExcludeArch
a41b42
- Requires tpm2-tss version updated to 1.0-2
a41b42
- Updated release version and changelog
a41b42
a41b42
* Fri Dec 2 2016 Sun Yunying <yunying.sun@intel.com> - 1.1.0-1
a41b42
- Initial version of the package