Blame tpm2-tools.spec

Peter Robinson 509033
#global candidate rc2
Peter Robinson 0a0c5a
Peter Robinson badd43
Name:    tpm2-tools
Peter Robinson b765e5
Version: 4.2.1
Peter Robinson e4ac3e
Release: 4%{?candidate:.%{candidate}}%{?dist}
Yunying Sun 41f9d6
Summary: A bunch of TPM testing toolS build upon tpm2-tss
Yunying Sun 122395
Yunying Sun 122395
License: BSD
Javier Martinez Canillas a9aa52
URL:     https://github.com/tpm2-software/tpm2-tools
Javier Martinez Canillas ee872d
Source0: https://github.com/tpm2-software/tpm2-tools/releases/download/%{version}%{?candidate:-%{candidate}}/%{name}-%{version}%{?candidate:-%{candidate}}.tar.gz
Yunying Sun 908b33
Yunying Sun 122395
BuildRequires: gcc-c++
Yunying Sun 122395
BuildRequires: libtool
Yunying Sun 122395
BuildRequires: autoconf-archive
Javier Martinez Canillas 384f3d
BuildRequires: pandoc
Yunying Sun 122395
BuildRequires: pkgconfig(cmocka)
Yunying Sun 122395
BuildRequires: pkgconfig(libcurl)
Yunying Sun 122395
BuildRequires: pkgconfig(openssl)
Yunying Sun 3304a4
# tpm2-tss-devel provides tss2-mu/sys/esys package config
Yunying Sun 3304a4
BuildRequires: pkgconfig(tss2-mu)
Yunying Sun 3304a4
BuildRequires: pkgconfig(tss2-sys)
Yunying Sun 3304a4
BuildRequires: pkgconfig(tss2-esys)
Peter Robinson f9c7c0
BuildRequires: pkgconfig(uuid)
Yunying Sun 122395
Yunying Sun 122395
# tpm2-tools is heavily depending on TPM2.0-TSS project, matched tss is required
Peter Robinson 509033
Requires: tpm2-tss%{?_isa} >= 2.3.1
Yunying Sun 122395
Yunying Sun 122395
%description
Peter Robinson e4156c
tpm2-tools is a batch of tools for tpm2.0. It is based on tpm2-tss.
Yunying Sun 122395
Yunying Sun 122395
%prep
Peter Robinson 0a0c5a
%autosetup -p1 -n %{name}-%{version}%{?candidate:-%{candidate}}
Yunying Sun 122395
Yunying Sun 122395
%build
Jeff Law d16cde
# LTO exposes a latent uninitialized variable "value" in the function # "nt".
Jeff Law d16cde
# This has been reported to the maintainer (Yunying), but they have not
Jeff Law d16cde
# responded and I am not comfortable enough with the code to know if a trivial
Jeff Law d16cde
# initialization to zero is appropriate/safe.  So LTO is disabled for now.
Jeff Law d16cde
%define _lto_cflags %{nil}
Yunying Sun 122395
%configure --prefix=/usr --disable-static --disable-silent-rules
Yunying Sun f4ab80
%make_build
Yunying Sun 122395
Yunying Sun 122395
%install
Yunying Sun 122395
%make_install
Yunying Sun 122395
Yunying Sun 122395
%files
Peter Robinson f9c7c0
%license doc/LICENSE
Peter Robinson f9c7c0
%doc README.md doc/CHANGELOG.md
Javier Martinez Canillas b3574b
%{_bindir}/tpm2_*
Peter Robinson f9c7c0
%{_bindir}/tss2_*
Peter Robinson 0a0c5a
%{_datadir}/bash-completion/completions/tpm2*
Peter Robinson f9c7c0
%{_datadir}/bash-completion/completions/tss2*
Javier Martinez Canillas b3574b
%{_mandir}/man1/tpm2_*.1.gz
Peter Robinson f9c7c0
%{_mandir}/man1/tss2_*.1.gz
Yunying Sun 122395
Yunying Sun 122395
%changelog
Peter Robinson e4ac3e
* Mon Aug 10 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 4.2.1-4
Peter Robinson e4ac3e
- Rebuild for tpm2-tss 3.0
Peter Robinson e4ac3e
Fedora Release Engineering 958315
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.1-3
Fedora Release Engineering 958315
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Fedora Release Engineering 958315
Jeff Law d16cde
* Tue Jun 30 2020 Jeff Law <law@redhat.com> - 4.2.1-2
Jeff Law d16cde
- Disable LTO due to latent uninitialized variable exposed by LTO
Jeff Law d16cde
Peter Robinson b765e5
* Wed May 27 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 4.2.1-1
Peter Robinson b765e5
- Update to 4.2.1
Peter Robinson b765e5
Peter Robinson badd43
* Tue Apr 14 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 4.2-1
Peter Robinson badd43
- Update to 4.2
Peter Robinson badd43
Fedora Release Engineering 64c89c
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-2
Fedora Release Engineering 64c89c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Fedora Release Engineering 64c89c
Yunying Sun 38c3ac
* Thu Nov 28 2019 Yunying Sun <yunying.sun@intel.com> - 4.1-1
Yunying Sun 38c3ac
- Update to 4.1 release
Yunying Sun 38c3ac
Yunying Sun 41f9d6
* Tue Oct 29 2019 Yunying Sun <yunying.sun@intel.com> - 4.0.1-1
Yunying Sun 41f9d6
- Update to 4.0.1 release
Yunying Sun 41f9d6
Peter Robinson 509033
* Tue Sep 10 2019 Peter Robinson <pbrobinson@fedoraproject.org> 4.0-1
Peter Robinson 509033
- Update to 4.0
Peter Robinson 509033
Javier Martinez Canillas ee872d
* Fri Sep  6 2019 Javier Martinez Canillas <javierm@redhat.com> 4.0-0.4-rc2
Javier Martinez Canillas ee872d
- Use a release tarball instead of a source code tarball
Javier Martinez Canillas ee872d
Peter Robinson c324fb
* Fri Sep  6 2019 Peter Robinson <pbrobinson@fedoraproject.org> 4.0-0.3-rc2
Peter Robinson c324fb
- Update to 4.0 RC2
Peter Robinson c324fb
Peter Robinson 436602
* Tue Aug 27 2019 Peter Robinson <pbrobinson@fedoraproject.org> 4.0-0.2-rc1
Peter Robinson 436602
- Update to 4.0 RC1
Peter Robinson 436602
Peter Robinson 0a0c5a
* Tue Aug 20 2019 Peter Robinson <pbrobinson@fedoraproject.org> 4.0-0.1-rc0
Peter Robinson 0a0c5a
- Update to 4.0 RC0
Peter Robinson 0a0c5a
Peter Robinson 9880cb
* Thu Aug  1 2019 Peter Robinson <pbrobinson@fedoraproject.org> 3.2.0-3
Peter Robinson 9880cb
- Fix for crash for max PCRs available
Peter Robinson 9880cb
Fedora Release Engineering c2f7c4
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-2
Fedora Release Engineering c2f7c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Fedora Release Engineering c2f7c4
Yunying Sun 616572
* Fri Jun 21 2019 Yunying Sun <yunying.sun@intel.com> - 3.2.0-1
Yunying Sun 616572
- Update to 3.2.0 release
Yunying Sun 616572
- Removed patches since all have been included in 3.2.0 release
Yunying Sun 616572
Javier Martinez Canillas af88e8
* Fri May 10 2019 Javier Martinez Canillas <javierm@redhat.com> - 3.1.4-2
Javier Martinez Canillas af88e8
- Allow tpm2_makecredential to run without a TPM (jetwhiz)
Javier Martinez Canillas af88e8
- Add tpm2_pcrreset and tpm2_checkquote tools (jetwhiz)
Javier Martinez Canillas af88e8
Yunying Sun aea7a2
* Fri Mar 15 2019 Yunying Sun <yunying.sun@intel.com> - 3.1.4-1
Yunying Sun aea7a2
- Update to 3.1.4 release
Yunying Sun aea7a2
- Removed the 4 patches since all have been included in 3.1.4 release
Yunying Sun aea7a2
Fedora Release Engineering 615ce8
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.3-4
Fedora Release Engineering 615ce8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Fedora Release Engineering 615ce8
Javier Martinez Canillas fcd447
* Mon Jan 7 2019 Javier Martinez Canillas <javierm@redhat.com> - 3.1.3-3
Javier Martinez Canillas fcd447
- Fix broken -T option when passing additional arguments
Javier Martinez Canillas fcd447
Javier Martinez Canillas 83d0ae
* Mon Jan 7 2019 Javier Martinez Canillas <javierm@redhat.com> - 3.1.3-2
Javier Martinez Canillas 83d0ae
- Fix broken -T option and a couple of minor fixes
Javier Martinez Canillas 384f3d
- Add pandoc BuildRequires
Javier Martinez Canillas 83d0ae
Yunying Sun 1d7ef2
* Wed Nov 7 2018 Yunying Sun <yunying.sun@intel.com> - 3.1.3-1
Yunying Sun 1d7ef2
- Update to 3.1.3 release
Yunying Sun 1d7ef2
Javier Martinez Canillas 8c0d19
* Wed Sep 12 2018 Javier Martinez Canillas <javierm@redhat.com> - 3.1.2-1
Javier Martinez Canillas 8c0d19
- Update to 3.1.2 release
Javier Martinez Canillas 8c0d19
- Restore TCTI configuration environment for tools
Javier Martinez Canillas 8c0d19
- Restore tpm2_getcap tool properties output
Javier Martinez Canillas 8c0d19
  Resolves: rhbz#1625647
Javier Martinez Canillas 8c0d19
Javier Martinez Canillas 8c0d19
* Sat Jul 14 2018 Javier Martinez Canillas <javierm@redhat.com> - 3.1.1-3
Javier Martinez Canillas 58cab6
- Revert backward incompatible change that removes default object attributes
Javier Martinez Canillas 58cab6
Fedora Release Engineering d8e8b3
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-2
Fedora Release Engineering d8e8b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Fedora Release Engineering d8e8b3
Yunying Sun d10185
* Thu Jul 12 2018 Yunying Sun <yunying.sun@intel.com> - 3.1.1-1
Yunying Sun d10185
- Update to 3.1.1 release
Yunying Sun d10185
Yunying Sun 3304a4
* Thu Jul 5 2018 Yunying Sun <yunying.sun@intel.com> - 3.1.0-1
Yunying Sun 3304a4
- Update Requires version of tpm2-tss to 2.0.0
Yunying Sun 3304a4
- Remove BuildRequires for tcti-abrmd since it is optional
Yunying Sun 3304a4
- Remove BuildRequires for tcti-{device,mssim} as it is now dynamically loaded
Yunying Sun 3304a4
- Update to 3.1.0 release
Yunying Sun 3304a4
Javier Martinez Canillas a9aa52
* Mon Apr 30 2018 Javier Martinez Canillas <javierm@redhat.com> - 3.0.4-1
Javier Martinez Canillas a9aa52
- Update URLs to point to the new project location
Javier Martinez Canillas a9aa52
- Update to 3.0.4 release
Javier Martinez Canillas a9aa52
Javier Martinez Canillas ed6f21
* Wed Feb 21 2018 Javier Martinez Canillas <javierm@redhat.com> - 3.0.3-3
Javier Martinez Canillas ed6f21
- Remove ExclusiveArch: x86_64 directive
Javier Martinez Canillas ed6f21
Fedora Release Engineering c22b93
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.3-2
Fedora Release Engineering c22b93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Fedora Release Engineering c22b93
Javier Martinez Canillas 31faa1
* Tue Jan 16 2018 Javier Martinez Canillas <javierm@redhat.com> - 3.0.3-1
Javier Martinez Canillas 31faa1
- Update to 3.0.3 release
Javier Martinez Canillas 31faa1
Javier Martinez Canillas 7e8346
* Mon Dec 18 2017 Javier Martinez Canillas <javierm@redhat.com> - 3.0.2-1
Javier Martinez Canillas 7e8346
- Update to 3.0.2 release
Javier Martinez Canillas 7e8346
Javier Martinez Canillas be9299
* Tue Dec 12 2017 Javier Martinez Canillas <javierm@redhat.com> - 3.0.1-1
Javier Martinez Canillas be9299
- Update to 3.0.1 release (RHBZ#1512743)
Javier Martinez Canillas be9299
- Download the generated tarball provided instead of the source code tarball
Javier Martinez Canillas be9299
Javier Martinez Canillas d57864
* Fri Dec 08 2017 Javier Martinez Canillas <javierm@redhat.com> - 3.0-1
Javier Martinez Canillas d57864
- Update to 3.0 release
Javier Martinez Canillas d57864
Javier Martinez Canillas b3574b
* Wed Nov 29 2017 Javier Martinez Canillas <javierm@redhat.com> - 3.0-0.1.rc1
Javier Martinez Canillas b3574b
- Update to 3.0 release candidate 1
Javier Martinez Canillas b3574b
- Update URLs to point to the new project location
Javier Martinez Canillas b3574b
- Make the package to obsolete version 2.1.1
Javier Martinez Canillas b3574b
Javier Martinez Canillas 565cd7
* Wed Nov 01 2017 Javier Martinez Canillas <javierm@redhat.com> - 2.1.1-1
Javier Martinez Canillas 565cd7
- Rename remaining tpm2.0-tools prefixes to tpm2-tools
Javier Martinez Canillas 565cd7
- Remove global pkg_prefix since now the upstream repo and package names match
Javier Martinez Canillas 565cd7
- Remove downstream patches since now these are in the latest upstream release
Javier Martinez Canillas 565cd7
- Update to 2.1.1 release (RHBZ#1504438)
Javier Martinez Canillas 565cd7
Jerry Snitselaar 3d1352
* Thu Oct 19 2017 Jerry Snitselaar <jsnitsel@redhat.com> - 2.1.0-7
Jerry Snitselaar 3d1352
- Clean up potential memleak (RHBZ#1503959)
Jerry Snitselaar 3d1352
Javier Martinez Canillas 16c073
* Thu Oct 05 2017 Javier Martinez Canillas <javierm@redhat.com> - 2.1.0-6
Javier Martinez Canillas 16c073
- Add tpm2-abrmd-devel BuildRequires so tools have abrmd support (RHBZ#1498909)
Javier Martinez Canillas 16c073
Javier Martinez Canillas 2cf8f7
* Fri Aug 18 2017 Javier Martinez Canillas <javierm@redhat.com> - 2.1.0-5
Javier Martinez Canillas 2cf8f7
- Remove unneeded source tarballs (RHBZ#1482830)
Javier Martinez Canillas 2cf8f7
Yunying Sun 835e95
* Tue Aug 15 2017 Sun Yunying <yunying.sun@intel.com> - 2.1.0-4
Yunying Sun 835e95
- Add patch to fix build error when openssl-devel is installed(RHBZ#1481236)
Yunying Sun 835e95
Fedora Release Engineering 2b1bdf
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3
Fedora Release Engineering 2b1bdf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
Fedora Release Engineering 2b1bdf
Yunying Sun 908b33
* Mon Jul 31 2017 Sun Yunying <yunying.sun@intel.com> - 2.1.0-2
Yunying Sun 908b33
- Add patch to fix gcc7 complaining about implicit-fallthrough cases
Yunying Sun 908b33
Yunying Sun 5316d6
* Fri Jul 28 2017 Sun Yunying <yunying.sun@intel.com> - 2.1.0-1
Yunying Sun 5316d6
- Update to latest upstream release 2.1.0
Yunying Sun 5316d6
Yunying Sun b85502
* Fri Jul 28 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-9
Yunying Sun b85502
- Update Requires dependency so that tpm2-tss update won't break tpm2-tools
Yunying Sun b85502
Fedora Release Engineering c5c20a
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-8
Fedora Release Engineering c5c20a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
Fedora Release Engineering c5c20a
Yunying Sun e32e4e
* Wed May 10 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-7
Yunying Sun e32e4e
- Only update release version to make fedpkg build works for f26
Yunying Sun e32e4e
Yunying Sun cbe3cc
* Wed Mar 1 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-6
Yunying Sun cbe3cc
- Update tpm2-tss version to 1.0-3 to fix broken dependency on f26
Yunying Sun cbe3cc
Fedora Release Engineering c20e98
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-5
Fedora Release Engineering c20e98
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
Fedora Release Engineering c20e98
Yunying Sun f09093
* Fri Jan 20 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-4
Yunying Sun f09093
- Dependency check failed for Requires again, here to fix this
Yunying Sun f09093
- Update release version and changelog
Yunying Sun f09093
Yunying Sun ce2e19
* Thu Jan 19 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-3
Yunying Sun ce2e19
- Change spec file permission to 644 to avoid rpmlint complain
Yunying Sun ce2e19
- Update Requires to fix dependency check error reported in Bodhi
Yunying Sun ce2e19
- Remove tpm2-tss-devel version in BuildRequires comment
Yunying Sun ce2e19
- Update release version and changelog
Yunying Sun ce2e19
Yunying Sun 122395
* Wed Dec 21 2016 Sun Yunying <yunying.sun@intel.com> - 1.1.0-2
Yunying Sun 122395
- Remove pkg_version to avoid dupliate use of version
Yunying Sun 122395
- Remove redundant BuildRequires for autoconf/automake/pkgconfig
Yunying Sun 122395
- Add comments for BuildRequires of sapi/tcti-device/tcti-socket
Yunying Sun 122395
- Use ExclusiveArch instead of ExcludeArch
Yunying Sun 122395
- Requires tpm2-tss version updated to 1.0-2
Yunying Sun 122395
- Updated release version and changelog
Yunying Sun 122395
Yunying Sun 122395
* Fri Dec 2 2016 Sun Yunying <yunying.sun@intel.com> - 1.1.0-1
Yunying Sun 122395
- Initial version of the package