Blame SPECS/libtpms.spec

7650bd
%global gitdate   20211126
7650bd
%global gitversion 1ff6fe1f43
20abf0
20abf0
Name:           libtpms
7650bd
Version:        0.9.1
1b023f
Release:        2.%{gitdate}git%{gitversion}%{?dist}
20abf0
20abf0
Summary: Library providing Trusted Platform Module (TPM) functionality
20abf0
License:        BSD
20abf0
Url:            http://github.com/stefanberger/libtpms
20abf0
Source0:        libtpms-%{gitdate}.tar.xz
1b023f
Patch0001:      0001-tpm2-Do-not-call-EVP_PKEY_CTX_set0_rsa_oaep_label-fo.patch
1b023f
Patch0002:      0001-tpm2-Fix-size-check-in-CryptSecretDecrypt.patch
1b023f
Patch0003:      0001-tpm2-When-writing-state-initialize-s_ContextSlotMask.patch
20abf0
20abf0
BuildRequires:  openssl-devel
20abf0
BuildRequires:  pkgconfig gawk sed
20abf0
BuildRequires:  automake autoconf libtool bash coreutils gcc-c++
20abf0
BuildRequires: make
20abf0
20abf0
%description
20abf0
A library providing TPM functionality for VMs. Targeted for integration
20abf0
into Qemu.
20abf0
20abf0
%package        devel
20abf0
Summary:        Include files for libtpms
20abf0
Requires:       %{name}%{?_isa} = %{version}-%{release}
20abf0
20abf0
%description   devel
20abf0
Libtpms header files and documentation.
20abf0
20abf0
%prep
20abf0
%autosetup -p1 -n %{name}-%{gitdate}
20abf0
%build
20abf0
NOCONFIGURE=1 sh autogen.sh
7650bd
%configure --disable-static --with-tpm2 --without-tpm1 --with-openssl
7650bd
%make_build
20abf0
20abf0
%check
20abf0
make check
20abf0
20abf0
%install
7650bd
%make_install
20abf0
find %{buildroot} -type f -name '*.la' | xargs rm -f -- || :
20abf0
20abf0
%ldconfig_scriptlets
20abf0
20abf0
%files
20abf0
%license LICENSE
20abf0
%doc README CHANGES
20abf0
%{_libdir}/lib*.so.*
20abf0
20abf0
%files devel
20abf0
%dir %{_includedir}/%{name}
20abf0
%{_includedir}/%{name}/*.h
20abf0
%{_libdir}/lib*.so
20abf0
%{_libdir}/pkgconfig/*.pc
20abf0
%{_mandir}/man3/*
20abf0
20abf0
%changelog
1b023f
* Mon Jun 20 2022 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.9.1-2.20211126git1ff6fe1f43
1b023f
- Backport s_ContextSlotMask initialization fix
1b023f
  Resolves: rhbz#2035731
1b023f
1b023f
* Mon Jun 13 2022 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.9.1-1.20211126git1ff6fe1f43
1b023f
- Backport RSA/OAEP fixes.
1b023f
  Resolves: rhbz#2093651
1b023f
7650bd
* Wed Dec 01 2021 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.9.1-0.20211126git1ff6fe1f43
7650bd
- Rebase to 0.9.1
7650bd
  Resolves: rhbz#2027951
7650bd
7650bd
* Tue Nov  9 2021 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.9.0-0.20211004gitdc4e3f6313
7650bd
- Rebase to 0.9.0, disable TPM 1.2
7650bd
  Resolves: rhbz#1990152 & rhbz#2021628
7650bd
7650bd
* Tue Aug 31 2021 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.8.2-0.20210301git729fc6a4ca.7
7650bd
- Fixes CVE-2021-3746 libtpms: out-of-bounds access via specially crafted TPM 2 command packets
7650bd
  Resolves: rhbz#1999303
7650bd
20abf0
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.8.2-0.20210301git729fc6a4ca.6
20abf0
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
20abf0
  Related: rhbz#1991688
20abf0
20abf0
* Wed Jun 30 2021 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.8.2-0.20210301git729fc6a4ca.5
20abf0
- Fixes CVE-2021-3623: out-of-bounds access when trying to resume the state of the vTPM
20abf0
  Resolves: rhbz#1976814
20abf0
20abf0
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.8.2-0.20210301git729fc6a4ca.4
20abf0
- Rebuilt for RHEL 9 BETA for openssl 3.0
20abf0
  Related: rhbz#1971065
20abf0
20abf0
* Tue May 18 2021 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.8.2-0.20210301git729fc6a4ca.3
20abf0
- Add -Wno-error=deprecated-declarations, to ignore OpenSSL 3.0 deprecation warnings.
20abf0
  Fixes: rhbz#1958054
20abf0
20abf0
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.8.2-0.20210301git729fc6a4ca.2
20abf0
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
20abf0
20abf0
* Mon Mar 01 2021 Stefan Berger <stefanb@linux.ibm.com> - 0.8.2-0.20210301git729fc6a4ca
20abf0
- tpm2: CryptSym: fix AES output IV; a CVE has been filed for this issue
20abf0
20abf0
* Sat Feb 27 2021 Stefan Berger <stefanb@linux.ibm.com> - 0.8.1-0.20210227git5bf2746e47
20abf0
- Fixed a context save and suspend/resume problem when public keys are loaded
20abf0
20abf0
* Thu Feb 18 2021 Stefan Berger <stefanb@linux.ibm.com> - 0.7.5-0.20210218gite271498466
20abf0
- Addressed UBSAN and cppcheck detected issues
20abf0
- Return proper size of ECC Parameters to pass HLK tests
20abf0
20abf0
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.4-0.20201031git2452a24dab.1
20abf0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
20abf0
20abf0
* Sat Oct 31 2020 Stefan Berger <stefanb@linux.ibm.com> - 0.7.4-0.20201031git2452a24dab
20abf0
- Follow stable-0.7.0 branch to v0.7.4 with security-related fixes
20abf0
20abf0
* Fri Jul 31 2020 Stefan Berger <stefanb@linux.ibm.com> - 0.7.3-0.20200731git1d392d466a
20abf0
- Follow stable-0.7.0 branch to v0.7.3
20abf0
20abf0
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-0.20200527git7325acb477.1
20abf0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
20abf0
20abf0
* Wed May 27 2020 Stefan Berger <stefanb@linux.ibm.com> - 0.7.2-0.20200527git7325acb477
20abf0
- Following stable-0.7.0 branch for TPM 2 related fixes: RSA decryption,
20abf0
  PSS salt length, symmetric decryption (padding)
20abf0
- Under certain circumstances an RSA decryption could cause a buffer overflow causing
20abf0
  termination of the program (swtpm)
20abf0
20abf0
* Wed May 20 2020 Stefan Berger <stefanb@linux.ibm.com> - 0.7.1-0.20200520git8fe99d1fd0
20abf0
- Following stable-0.7.0 branch for TPM 2 related fixes; v0.7.1 + gcc related patch
20abf0
- elliptic curve fixes
20abf0
- MANUFACTURER changed from "IBM " to "IBM"
20abf0
- gcc 10 related fix
20abf0
20abf0
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-0.20191018gitdc116933b7.1
20abf0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
20abf0
20abf0
* Fri Oct 18 2019 Stefan Berger <stefanb@linux.ibm.com> - 0.7.0-0.20191018gitdc116933b7
20abf0
- Following stable-0.7.0 branch for TPM 1.2 related bugfix
20abf0
20abf0
* Tue Oct 08 2019 Stefan Berger <stefanb@linux.ibm.com> - 0.7.0-0.20191008gitc26e8f7b08
20abf0
- Following stable-0.7.0 branch for bug fix
20abf0
20abf0
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-0.20190719gitd061d8065b.2
20abf0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
20abf0
20abf0
* Fri Jul 19 2019 Stefan Berger <stefanb@linux.ibm.com> - 0.7.0-0.20190719gitd061d8065b
20abf0
- Update to v0.7.0
20abf0
20abf0
* Fri May 10 2019 Stefan Berger <stefanb@linux.ibm.com> - 0.6.1-0.20190510gitb244bdf6e2
20abf0
- Applied bugfix for CMAC
20abf0
20abf0
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-0.20190121git9dc915572b.1
20abf0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
20abf0
20abf0
* Mon Jan 21 2019 Stefan Berger <stefanb@linux.ibm.com> - 0.6.1-0.20190121git9dc915572b
20abf0
- Libtpms was updated to rev. 150 of TPM 2.0 code
20abf0
- following branch stable-0.6.0
20abf0
20abf0
* Tue Dec 11 2018 Stefan Berger <stefanb@linux.ibm.com> - 0.6.0-0.20181211gitba56737b93
20abf0
- Following bugfixes in libtpms
20abf0
20abf0
* Wed Oct 31 2018 Stefan Berger <stefanb@linux.ibm.com> - 0.6.0-0.20181031git0466fcf6a4
20abf0
- Following improvements in libtpms
20abf0
20abf0
* Tue Sep 18 2018 Stefan Berger 
20abf0
- Fixed changelog
20abf0
20abf0
* Mon Sep 17 2018 Stefan Berger 
20abf0
- Build snapshot from git after libtpms fix.
20abf0
20abf0
* Fri Sep 14 2018 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.6.0-0.20180914git4111bd1bcf
20abf0
- Build snapshot from git, simplify spec
20abf0
20abf0
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-12
20abf0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
20abf0
20abf0
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-11
20abf0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
20abf0
20abf0
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-10
20abf0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
20abf0
20abf0
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-9
20abf0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
20abf0
20abf0
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-8
20abf0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
20abf0
20abf0
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-7
20abf0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
20abf0
20abf0
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-6
20abf0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
20abf0
20abf0
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-4
20abf0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
20abf0
20abf0
* Sat Aug 16 2014 Stefan Berger - 0.5.2-3
20abf0
- do not include libtpms.la in rpm
20abf0
20abf0
* Mon Jul 14 2014 Stefan Berger - 0.5.2-2
20abf0
- Added patches
20abf0
20abf0
* Mon Jun 30 2014 Stefan Berger - 0.5.2-1
20abf0
- Updated to version 0.5.2
20abf0
- coverity fixes
20abf0
- fixes for ARM64 using __aarch64__
20abf0
20abf0
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-20.1
20abf0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
20abf0
20abf0
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-19
20abf0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
20abf0
20abf0
* Mon Mar 25 2013 Stefan Berger - 0.5.1-18
20abf0
- Ran autoreconf for support of aarch64
20abf0
- Checking for __arm64__ in code
20abf0
20abf0
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-17
20abf0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
20abf0
20abf0
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-16
20abf0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
20abf0
20abf0
* Fri Feb 17 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 0.5.1-15
20abf0
- Add dist tag as required by package guidelines
20abf0
20abf0
* Fri Jan 27 2012 Stefan Berger - 0.5.1-14
20abf0
- fix gcc-4.7 compilation problem
20abf0
20abf0
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-13
20abf0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
20abf0
20abf0
* Tue Dec 20 2011 Dan Horák <dan[at]danny.cz> - 0.5.1-12
20abf0
- fix build on secondary arches
20abf0
20abf0
* Wed Nov 2 2011 Stefan Berger - 0.5.1-11
20abf0
- added (lib)gmp as runtime dependency
20abf0
20abf0
* Sat Oct 8 2011 Stefan Berger - 0.5.1-10
20abf0
- internal fixes; callback fixes
20abf0
20abf0
* Tue Aug 30 2011 Stefan Berger - 0.5.1-9
20abf0
- new directory structure and build process
20abf0
20abf0
* Tue Jul 12 2011 Stefan Berger - 0.5.1-8
20abf0
- added pkgconfig as build dependency
20abf0
- enabling __powerpc__ build following Bz 728220
20abf0
20abf0
* Wed May 25 2011 Stefan Berger - 0.5.1-7
20abf0
- increasing NVRAM area space to have enough room for certificates
20abf0
20abf0
* Wed May 25 2011 Stefan Berger - 0.5.1-6
20abf0
- adding libtpms.pc pkg-config file
20abf0
20abf0
* Wed Apr 13 2011 Stefan Berger - 0.5.1-5
20abf0
- adding BuildRequires for nss-softokn-freebl-static
20abf0
- several libtpms-internal changes around state serialization and 
20abf0
  deserialization
20abf0
- fixes to libtpms makefile (makefile-libtpms)
20abf0
- adding build_type to generate a debug or production build
20abf0
- need nss-devel to have nss-config
20abf0
20abf0
* Tue Mar 08 2011 Stefan Berger - 0.5.1-4
20abf0
- small fixes to libtpms makefile
20abf0
20abf0
* Fri Feb 25 2011 Stefan Berger - 0.5.1-3
20abf0
- removing release from tar ball name
20abf0
- Use {?_smp_mflags} for make rather than hardcoding it
20abf0
- Fixing post and postun scripts; removing the scripts for devel package
20abf0
- Fixing usage of defattr
20abf0
- Adding version information into the changelog headers and spaces between the changelog entries
20abf0
- Adding LICENSE, README and CHANGELOG file into tar ball and main rpm
20abf0
- Removing clean section
20abf0
- removed command to clean the build root
20abf0
- adding library version to the libries required for building and during
20abf0
  runtime
20abf0
- Extended Requires in devel package with {?_isa}
20abf0
20abf0
* Fri Feb 18 2011 Stefan Berger - 0.5.1-2
20abf0
- make rpmlint happy by replacing tabs with spaces
20abf0
- providing a valid URL for the tgz file
20abf0
- release is now 2 -> 0.5.1-2
20abf0
20abf0
* Mon Jan 17 2011 Stefan Berger - 0.5.1-1
20abf0
- Update version to 0.5.1
20abf0
20abf0
* Fri Jan 14 2011 Stefan Berger - 0.5.0-1
20abf0
- Changes following Fedora review comments
20abf0
20abf0
* Thu Dec 2 2010 Stefan Berger
20abf0
- Small tweaks after reading the FedoreCore packaging requirements
20abf0
20abf0
* Tue Nov 16 2010 Stefan Berger
20abf0
- Created initial version of rpm spec files
20abf0
- Version of library is now 0.5.0
20abf0
- Debuginfo rpm is built but empty -- seems to be a known problem
20abf0
  Check https://bugzilla.redhat.com/show_bug.cgi?id=209316