6d64d0
#global candidate rc2
6d64d0
6d64d0
Name:    tpm2-tools
33d9b2
Version: 5.2
0e8bff
Release: 2%{?candidate:.%{candidate}}%{?dist}
6d64d0
Summary: A bunch of TPM testing toolS build upon tpm2-tss
6d64d0
6d64d0
License: BSD
6d64d0
URL:     https://github.com/tpm2-software/tpm2-tools
6d64d0
Source0: https://github.com/tpm2-software/tpm2-tools/releases/download/%{version}%{?candidate:-%{candidate}}/%{name}-%{version}%{?candidate:-%{candidate}}.tar.gz
33d9b2
Patch0: 0019-build-Use-hardcoded-version-variable.patch
33d9b2
Patch1: test-fixup.patch
33d9b2
Patch2: 0001-testparms-fix-condition-for-negative-test.patch
0e8bff
Patch3: 0001-lib-tpm2_eventlog_yaml-use-char16_t-for-UEFI-charact.patch
0e8bff
Patch4: 0002-Patch-set-for-handling-of-new-event-types-in-tpm2_ev.patch
0e8bff
Patch5: 0003-Code-clarity-fix-for-calculation-of-data-member-addr.patch
0e8bff
Patch6: 0004-tpm2_eventlog-clean-up-some-magic-numbers.patch
0e8bff
Patch7: 0005-tpm2_eventlog_yaml-fix-malformed-YAML-for-EV_IPL-dat.patch
0e8bff
Patch8: 0006-test-track-expected-YAML-output-for-eventlog.patch
0e8bff
Patch9: 0007-tpm2_eventlog_yaml-fix-parsing-for-MokListTrusted.patch
0e8bff
Patch10: 0008-tests-add-eventlog-for-parsing-MokListTrusted.patch
0e8bff
Patch11: 0009-tpm2_eventlog_yaml-use-defines-for-Unicode-variables.patch
0e8bff
0e8bff
BuildRequires: git
6d64d0
BuildRequires: make
6d64d0
BuildRequires: gcc-c++
6d64d0
BuildRequires: libtool
6d64d0
BuildRequires: autoconf-archive
6d64d0
BuildRequires: pkgconfig(cmocka)
6d64d0
BuildRequires: pkgconfig(libcurl)
6d64d0
BuildRequires: pkgconfig(openssl)
6d64d0
# tpm2-tss-devel provides tss2-mu/sys/esys package config
6d64d0
BuildRequires: pkgconfig(tss2-mu)
6d64d0
BuildRequires: pkgconfig(tss2-sys)
6d64d0
BuildRequires: pkgconfig(tss2-esys)
6d64d0
BuildRequires: pkgconfig(uuid)
6d64d0
6d64d0
# tpm2-tools is heavily depending on TPM2.0-TSS project, matched tss is required
6d64d0
Requires: tpm2-tss%{?_isa} >= 2.3.1
6d64d0
6d64d0
%description
6d64d0
tpm2-tools is a batch of tools for tpm2.0. It is based on tpm2-tss.
6d64d0
6d64d0
%prep
0e8bff
%autosetup -S git -p1 -n %{name}-%{version}%{?candidate:-%{candidate}}
6d64d0
6d64d0
%build
28a59a
autoreconf -i
6d64d0
# LTO exposes a latent uninitialized variable "value" in the function # "nt".
6d64d0
# This has been reported to the maintainer (Yunying), but they have not
6d64d0
# responded and I am not comfortable enough with the code to know if a trivial
6d64d0
# initialization to zero is appropriate/safe.  So LTO is disabled for now.
6d64d0
%define _lto_cflags %{nil}
6d64d0
%configure --prefix=/usr --disable-static --disable-silent-rules CFLAGS="%{optflags} -Wno-error=deprecated-declarations"
6d64d0
%make_build
6d64d0
6d64d0
%install
6d64d0
%make_install
6d64d0
6d64d0
%files
6d64d0
%license doc/LICENSE
33d9b2
%doc doc/README.md doc/CHANGELOG.md
6d64d0
%{_bindir}/tpm2
6d64d0
%{_bindir}/tpm2_*
6d64d0
%{_bindir}/tss2
6d64d0
%{_bindir}/tss2_*
6d64d0
%{_datadir}/bash-completion/completions/tpm2*
6d64d0
%{_datadir}/bash-completion/completions/tss2*
6d64d0
%{_mandir}/man1/tpm2_*.1.gz
6d64d0
%{_mandir}/man1/tpm2.1.gz
6d64d0
%{_mandir}/man1/tss2_*.1.gz
6d64d0
6d64d0
%changelog
0e8bff
* Wed Oct 19 2022 Štěpán Horáček <shoracek@redhat.com> - 5.2-2
0e8bff
- Fix eventlog output.
0e8bff
  Resolves: rhbz#2136215
0e8bff
33d9b2
* Tue May 31 2022 Jerry Snitselaar <jsnitsel@redhat.com> - 5.2-1
33d9b2
- Rebase to 5.2 release.
33d9b2
Resolves: rhbz#2090748
33d9b2
28a59a
* Mon Oct 25 2021 Štěpán Horáček <shoracek@redhat.com> - 5.0-10
28a59a
- Fix the version not being reported
28a59a
  Resolves: rhbz#2015941
28a59a
28a59a
* Fri Oct 1 2021 Štěpán Horáček <shoracek@redhat.com> - 5.0-9
28a59a
- Fix a segfault on ppc64le and add support for OpenSSL 3
28a59a
  Resolves: rhbz#1989617
28a59a
6d64d0
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 5.0-8
6d64d0
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
6d64d0
  Related: rhbz#1991688
6d64d0
6d64d0
* Mon Jun 28 2021 Jerry Snitselaar <jsnitsel@redhat.com> - 5.0-7
6d64d0
- Fix for CVE-2021-3565
6d64d0
Resolves: rhbz#1965982
6d64d0
6d64d0
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com> - 5.0-6
6d64d0
- Rebuilt for RHEL 9 BETA for openssl 3.0
6d64d0
  Related: rhbz#1971065
6d64d0
6d64d0
* Mon May 24 2021 Jerry Snitselaar <jsnitsel@redhat.com> - 5.0-5
6d64d0
- Remove pandoc dependency. Related: rhbz#1943528
6d64d0
6d64d0
* Wed May 19 2021 Jerry Snitselaar <jsnitsel@redhat.com> - 5.0-4
6d64d0
- Work around for openssl 3.0 update. Related: rhbz#1958029
6d64d0
6d64d0
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 5.0-3
6d64d0
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
6d64d0
6d64d0
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.0-2
6d64d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
6d64d0
6d64d0
* Mon Nov 23 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 5.0-1
6d64d0
- Update tp tpm2-tools 5.0
6d64d0
6d64d0
* Sat Aug 29 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 4.3.0-1
6d64d0
- Update to 4.3.0
6d64d0
6d64d0
* Mon Aug 10 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 4.2.1-4
6d64d0
- Rebuild for tpm2-tss 3.0
6d64d0
6d64d0
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.1-3
6d64d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
6d64d0
6d64d0
* Tue Jun 30 2020 Jeff Law <law@redhat.com> - 4.2.1-2
6d64d0
- Disable LTO due to latent uninitialized variable exposed by LTO
6d64d0
6d64d0
* Wed May 27 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 4.2.1-1
6d64d0
- Update to 4.2.1
6d64d0
6d64d0
* Tue Apr 14 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 4.2-1
6d64d0
- Update to 4.2
6d64d0
6d64d0
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-2
6d64d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
6d64d0
6d64d0
* Thu Nov 28 2019 Yunying Sun <yunying.sun@intel.com> - 4.1-1
6d64d0
- Update to 4.1 release
6d64d0
6d64d0
* Tue Oct 29 2019 Yunying Sun <yunying.sun@intel.com> - 4.0.1-1
6d64d0
- Update to 4.0.1 release
6d64d0
6d64d0
* Tue Sep 10 2019 Peter Robinson <pbrobinson@fedoraproject.org> 4.0-1
6d64d0
- Update to 4.0
6d64d0
6d64d0
* Fri Sep  6 2019 Javier Martinez Canillas <javierm@redhat.com> 4.0-0.4-rc2
6d64d0
- Use a release tarball instead of a source code tarball
6d64d0
6d64d0
* Fri Sep  6 2019 Peter Robinson <pbrobinson@fedoraproject.org> 4.0-0.3-rc2
6d64d0
- Update to 4.0 RC2
6d64d0
6d64d0
* Tue Aug 27 2019 Peter Robinson <pbrobinson@fedoraproject.org> 4.0-0.2-rc1
6d64d0
- Update to 4.0 RC1
6d64d0
6d64d0
* Tue Aug 20 2019 Peter Robinson <pbrobinson@fedoraproject.org> 4.0-0.1-rc0
6d64d0
- Update to 4.0 RC0
6d64d0
6d64d0
* Thu Aug  1 2019 Peter Robinson <pbrobinson@fedoraproject.org> 3.2.0-3
6d64d0
- Fix for crash for max PCRs available
6d64d0
6d64d0
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-2
6d64d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
6d64d0
6d64d0
* Fri Jun 21 2019 Yunying Sun <yunying.sun@intel.com> - 3.2.0-1
6d64d0
- Update to 3.2.0 release
6d64d0
- Removed patches since all have been included in 3.2.0 release
6d64d0
6d64d0
* Fri May 10 2019 Javier Martinez Canillas <javierm@redhat.com> - 3.1.4-2
6d64d0
- Allow tpm2_makecredential to run without a TPM (jetwhiz)
6d64d0
- Add tpm2_pcrreset and tpm2_checkquote tools (jetwhiz)
6d64d0
6d64d0
* Fri Mar 15 2019 Yunying Sun <yunying.sun@intel.com> - 3.1.4-1
6d64d0
- Update to 3.1.4 release
6d64d0
- Removed the 4 patches since all have been included in 3.1.4 release
6d64d0
6d64d0
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.3-4
6d64d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
6d64d0
6d64d0
* Mon Jan 7 2019 Javier Martinez Canillas <javierm@redhat.com> - 3.1.3-3
6d64d0
- Fix broken -T option when passing additional arguments
6d64d0
6d64d0
* Mon Jan 7 2019 Javier Martinez Canillas <javierm@redhat.com> - 3.1.3-2
6d64d0
- Fix broken -T option and a couple of minor fixes
6d64d0
- Add pandoc BuildRequires
6d64d0
6d64d0
* Wed Nov 7 2018 Yunying Sun <yunying.sun@intel.com> - 3.1.3-1
6d64d0
- Update to 3.1.3 release
6d64d0
6d64d0
* Wed Sep 12 2018 Javier Martinez Canillas <javierm@redhat.com> - 3.1.2-1
6d64d0
- Update to 3.1.2 release
6d64d0
- Restore TCTI configuration environment for tools
6d64d0
- Restore tpm2_getcap tool properties output
6d64d0
  Resolves: rhbz#1625647
6d64d0
6d64d0
* Sat Jul 14 2018 Javier Martinez Canillas <javierm@redhat.com> - 3.1.1-3
6d64d0
- Revert backward incompatible change that removes default object attributes
6d64d0
6d64d0
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-2
6d64d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
6d64d0
6d64d0
* Thu Jul 12 2018 Yunying Sun <yunying.sun@intel.com> - 3.1.1-1
6d64d0
- Update to 3.1.1 release
6d64d0
6d64d0
* Thu Jul 5 2018 Yunying Sun <yunying.sun@intel.com> - 3.1.0-1
6d64d0
- Update Requires version of tpm2-tss to 2.0.0
6d64d0
- Remove BuildRequires for tcti-abrmd since it is optional
6d64d0
- Remove BuildRequires for tcti-{device,mssim} as it is now dynamically loaded
6d64d0
- Update to 3.1.0 release
6d64d0
6d64d0
* Mon Apr 30 2018 Javier Martinez Canillas <javierm@redhat.com> - 3.0.4-1
6d64d0
- Update URLs to point to the new project location
6d64d0
- Update to 3.0.4 release
6d64d0
6d64d0
* Wed Feb 21 2018 Javier Martinez Canillas <javierm@redhat.com> - 3.0.3-3
6d64d0
- Remove ExclusiveArch: x86_64 directive
6d64d0
6d64d0
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.3-2
6d64d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
6d64d0
6d64d0
* Tue Jan 16 2018 Javier Martinez Canillas <javierm@redhat.com> - 3.0.3-1
6d64d0
- Update to 3.0.3 release
6d64d0
6d64d0
* Mon Dec 18 2017 Javier Martinez Canillas <javierm@redhat.com> - 3.0.2-1
6d64d0
- Update to 3.0.2 release
6d64d0
6d64d0
* Tue Dec 12 2017 Javier Martinez Canillas <javierm@redhat.com> - 3.0.1-1
6d64d0
- Update to 3.0.1 release (RHBZ#1512743)
6d64d0
- Download the generated tarball provided instead of the source code tarball
6d64d0
6d64d0
* Fri Dec 08 2017 Javier Martinez Canillas <javierm@redhat.com> - 3.0-1
6d64d0
- Update to 3.0 release
6d64d0
6d64d0
* Wed Nov 29 2017 Javier Martinez Canillas <javierm@redhat.com> - 3.0-0.1.rc1
6d64d0
- Update to 3.0 release candidate 1
6d64d0
- Update URLs to point to the new project location
6d64d0
- Make the package to obsolete version 2.1.1
6d64d0
6d64d0
* Wed Nov 01 2017 Javier Martinez Canillas <javierm@redhat.com> - 2.1.1-1
6d64d0
- Rename remaining tpm2.0-tools prefixes to tpm2-tools
6d64d0
- Remove global pkg_prefix since now the upstream repo and package names match
6d64d0
- Remove downstream patches since now these are in the latest upstream release
6d64d0
- Update to 2.1.1 release (RHBZ#1504438)
6d64d0
6d64d0
* Thu Oct 19 2017 Jerry Snitselaar <jsnitsel@redhat.com> - 2.1.0-7
6d64d0
- Clean up potential memleak (RHBZ#1503959)
6d64d0
6d64d0
* Thu Oct 05 2017 Javier Martinez Canillas <javierm@redhat.com> - 2.1.0-6
6d64d0
- Add tpm2-abrmd-devel BuildRequires so tools have abrmd support (RHBZ#1498909)
6d64d0
6d64d0
* Fri Aug 18 2017 Javier Martinez Canillas <javierm@redhat.com> - 2.1.0-5
6d64d0
- Remove unneeded source tarballs (RHBZ#1482830)
6d64d0
6d64d0
* Tue Aug 15 2017 Sun Yunying <yunying.sun@intel.com> - 2.1.0-4
6d64d0
- Add patch to fix build error when openssl-devel is installed(RHBZ#1481236)
6d64d0
6d64d0
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3
6d64d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
6d64d0
6d64d0
* Mon Jul 31 2017 Sun Yunying <yunying.sun@intel.com> - 2.1.0-2
6d64d0
- Add patch to fix gcc7 complaining about implicit-fallthrough cases
6d64d0
6d64d0
* Fri Jul 28 2017 Sun Yunying <yunying.sun@intel.com> - 2.1.0-1
6d64d0
- Update to latest upstream release 2.1.0
6d64d0
6d64d0
* Fri Jul 28 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-9
6d64d0
- Update Requires dependency so that tpm2-tss update won't break tpm2-tools
6d64d0
6d64d0
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-8
6d64d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
6d64d0
6d64d0
* Wed May 10 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-7
6d64d0
- Only update release version to make fedpkg build works for f26
6d64d0
6d64d0
* Wed Mar 1 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-6
6d64d0
- Update tpm2-tss version to 1.0-3 to fix broken dependency on f26
6d64d0
6d64d0
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-5
6d64d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
6d64d0
6d64d0
* Fri Jan 20 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-4
6d64d0
- Dependency check failed for Requires again, here to fix this
6d64d0
- Update release version and changelog
6d64d0
6d64d0
* Thu Jan 19 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-3
6d64d0
- Change spec file permission to 644 to avoid rpmlint complain
6d64d0
- Update Requires to fix dependency check error reported in Bodhi
6d64d0
- Remove tpm2-tss-devel version in BuildRequires comment
6d64d0
- Update release version and changelog
6d64d0
6d64d0
* Wed Dec 21 2016 Sun Yunying <yunying.sun@intel.com> - 1.1.0-2
6d64d0
- Remove pkg_version to avoid dupliate use of version
6d64d0
- Remove redundant BuildRequires for autoconf/automake/pkgconfig
6d64d0
- Add comments for BuildRequires of sapi/tcti-device/tcti-socket
6d64d0
- Use ExclusiveArch instead of ExcludeArch
6d64d0
- Requires tpm2-tss version updated to 1.0-2
6d64d0
- Updated release version and changelog
6d64d0
6d64d0
* Fri Dec 2 2016 Sun Yunying <yunying.sun@intel.com> - 1.1.0-1
6d64d0
- Initial version of the package