|
|
551b01 |
%ifarch s390x
|
|
|
551b01 |
# https://bugzilla.redhat.com/show_bug.cgi?id=1861276 -> Disable LTO for now
|
|
|
551b01 |
%define _lto_cflags %{nil}
|
|
|
551b01 |
%endif
|
|
|
551b01 |
|
|
|
551b01 |
#global candidate RC0
|
|
|
551b01 |
|
|
|
551b01 |
Name: tpm2-pkcs11
|
|
|
551b01 |
Version: 1.5.0
|
|
|
551b01 |
Release: 9%{?candidate:.%{candidate}}%{?dist}
|
|
|
551b01 |
Summary: PKCS#11 interface for TPM 2.0 hardware
|
|
|
551b01 |
|
|
|
551b01 |
License: BSD
|
|
|
551b01 |
URL: https://github.com/tpm2-software/tpm2-pkcs11
|
|
|
551b01 |
Source0: https://github.com/tpm2-software/%{name}/releases/download/%{version}%{?candidate:-%{candidate}}/%{name}-%{version}%{?candidate:-%{candidate}}.tar.gz
|
|
|
551b01 |
Source1: https://github.com/tpm2-software/%{name}/releases/download/%{version}%{?candidate:-%{candidate}}/%{name}-%{version}%{?candidate:-%{candidate}}.tar.gz.asc
|
|
|
551b01 |
# William Roberts (Bill Roberts) key from pgp.mit.edu
|
|
|
551b01 |
Source2: gpgkey-8E1F50C1.gpg
|
|
|
551b01 |
Patch0: tpm2-pkcs11-gcc11.patch
|
|
|
551b01 |
# https://github.com/tpm2-software/tpm2-pkcs11/commit/78f4e2b47d02cb8215f252e77c68a81dfe4afa30
|
|
|
551b01 |
Patch1: tpm2-pkcs11-s390x.patch
|
|
|
551b01 |
Patch2: tpm2-pkcs11-1.5.0-openssl3.patch
|
|
|
551b01 |
|
|
|
551b01 |
BuildRequires: gcc
|
|
|
551b01 |
BuildRequires: make
|
|
|
551b01 |
BuildRequires: python3
|
|
|
551b01 |
BuildRequires: libgcrypt-devel
|
|
|
551b01 |
BuildRequires: libyaml-devel
|
|
|
551b01 |
BuildRequires: openssl-devel
|
|
|
551b01 |
BuildRequires: p11-kit-devel
|
|
|
551b01 |
BuildRequires: sqlite-devel
|
|
|
551b01 |
BuildRequires: tpm2-tools
|
|
|
551b01 |
BuildRequires: tpm2-tss-devel
|
|
|
551b01 |
# for tests
|
|
|
551b01 |
BuildRequires: libcmocka-devel
|
|
|
551b01 |
BuildRequires: dbus-daemon
|
|
|
551b01 |
# for tools
|
|
|
551b01 |
BuildRequires: python3-devel
|
|
|
551b01 |
BuildRequires: python3-setuptools
|
|
|
551b01 |
BuildRequires: python3-pyasn1-modules
|
|
|
551b01 |
BuildRequires: python3-pyyaml
|
|
|
551b01 |
BuildRequires: python3-cryptography
|
|
|
551b01 |
# for tarball signature verification
|
|
|
551b01 |
BuildRequires: gnupg2
|
|
|
551b01 |
|
|
|
551b01 |
%description
|
|
|
551b01 |
PKCS #11 is a Public-Key Cryptography Standard that defines a standard method
|
|
|
551b01 |
to access cryptographic services from tokens/ devices such as hardware security
|
|
|
551b01 |
modules (HSM), smart cards, etc. In this project we intend to use a TPM2 device
|
|
|
551b01 |
as the cryptographic token.
|
|
|
551b01 |
|
|
|
551b01 |
%package tools
|
|
|
551b01 |
Summary: The tools required to setup and configure TPM2 for PKCS#11
|
|
|
551b01 |
# Automatic generator does not work for me even though the requires.txt is in place
|
|
|
551b01 |
Requires: python3-cryptography
|
|
|
551b01 |
Requires: python3-pyyaml
|
|
|
551b01 |
Requires: python3-pyasn1-modules
|
|
|
551b01 |
|
|
|
551b01 |
%description tools
|
|
|
551b01 |
The tools required to setup and configure TPM2 for PKCS#11.
|
|
|
551b01 |
|
|
|
551b01 |
%prep
|
|
|
551b01 |
gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
|
|
|
551b01 |
%autosetup -p1 -n %{name}-%{version}%{?candidate:-%{candidate}}
|
|
|
551b01 |
|
|
|
551b01 |
|
|
|
551b01 |
%build
|
|
|
551b01 |
%configure --enable-unit CFLAGS="%{optflags} -Wno-error=deprecated-declarations"
|
|
|
551b01 |
%{make_build}
|
|
|
551b01 |
cd tools
|
|
|
551b01 |
%py3_build
|
|
|
551b01 |
|
|
|
551b01 |
|
|
|
551b01 |
%install
|
|
|
551b01 |
%make_install
|
|
|
551b01 |
rm $RPM_BUILD_ROOT%{_libdir}/pkgconfig/tpm2-pkcs11.pc
|
|
|
551b01 |
[ -f $RPM_BUILD_ROOT%{_libdir}/pkcs11/libtpm2_pkcs11.la ] && \
|
|
|
551b01 |
rm $RPM_BUILD_ROOT%{_libdir}/pkcs11/libtpm2_pkcs11.la
|
|
|
551b01 |
[ -f $RPM_BUILD_ROOT%{_libdir}/pkcs11/libtpm2_pkcs11.a ] && \
|
|
|
551b01 |
rm $RPM_BUILD_ROOT%{_libdir}/pkcs11/libtpm2_pkcs11.a
|
|
|
551b01 |
cd tools
|
|
|
551b01 |
%py3_install
|
|
|
551b01 |
install -Dpm 755 tpm2_ptool $RPM_BUILD_ROOT%{_bindir}/tpm2_ptool
|
|
|
551b01 |
|
|
|
551b01 |
|
|
|
551b01 |
%check
|
|
|
551b01 |
make check
|
|
|
551b01 |
cd tools
|
|
|
551b01 |
%{__python3} setup.py test
|
|
|
551b01 |
|
|
|
551b01 |
|
|
|
551b01 |
%files
|
|
|
551b01 |
%license LICENSE
|
|
|
551b01 |
%{_datadir}/p11-kit/modules/tpm2_pkcs11.module
|
|
|
551b01 |
%%dir %{_libdir}/pkcs11
|
|
|
551b01 |
%{_libdir}/pkcs11/libtpm2_pkcs11.so
|
|
|
551b01 |
%{_libdir}/pkcs11/libtpm2_pkcs11.so.0*
|
|
|
551b01 |
|
|
|
551b01 |
%files tools
|
|
|
551b01 |
%{_bindir}/tpm2_ptool
|
|
|
551b01 |
%{python3_sitelib}/tpm2_pkcs11/*
|
|
|
551b01 |
%{python3_sitelib}/tpm2_pkcs11_tools-*/*
|
|
|
551b01 |
|
|
|
551b01 |
|
|
|
551b01 |
%changelog
|
|
|
551b01 |
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.5.0-9
|
|
|
551b01 |
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
551b01 |
Related: rhbz#1991688
|
|
|
551b01 |
|
|
|
551b01 |
* Fri Jul 02 2021 Jerry Snitselaar <jsnitsel@redhat.com> - 1.5.0-8
|
|
|
551b01 |
- Fix product version for gating
|
|
|
551b01 |
Resolves: rhbz#1972907
|
|
|
551b01 |
|
|
|
551b01 |
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.5.0-7
|
|
|
551b01 |
- Rebuilt for RHEL 9 BETA for openssl 3.0
|
|
|
551b01 |
Related: rhbz#1971065
|
|
|
551b01 |
|
|
|
551b01 |
* Wed May 19 2021 Jerry Snitselaar <jsnitsel@redhat.com> - 1.5.0-6
|
|
|
551b01 |
- Work around for openssl 3.0 update. Related: rhbz#1958030
|
|
|
551b01 |
|
|
|
551b01 |
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.5.0-5
|
|
|
551b01 |
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
551b01 |
|
|
|
551b01 |
* Mon Feb 01 2021 Jakub Jelen <jjelen@redhat.com> - 1.5.0-4}
|
|
|
551b01 |
- Unbreak the build on s390x (#1923383)
|
|
|
551b01 |
|
|
|
551b01 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-3
|
|
|
551b01 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
551b01 |
|
|
|
551b01 |
* Mon Dec 07 2020 Jeff Law <law@redhat.com> - 1.5.0-2
|
|
|
551b01 |
- Avoid stringop-overflow diagnostic in testsuite
|
|
|
551b01 |
|
|
|
551b01 |
* Wed Nov 18 2020 Jakub Jelen <jjelen@redhat.com> - 1.5.0-1
|
|
|
551b01 |
- New upstream release
|
|
|
551b01 |
|
|
|
551b01 |
* Tue Sep 15 2020 Jeff Law <law@redhat.com> - 1.4.0-2
|
|
|
551b01 |
- Fix two source over-reads detected by gcc-11
|
|
|
551b01 |
|
|
|
551b01 |
* Mon Aug 24 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 1.4.0-1
|
|
|
551b01 |
- Update to 1.4.0
|
|
|
551b01 |
|
|
|
551b01 |
* Mon Aug 10 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 1.3.2-1
|
|
|
551b01 |
- Update to 1.3.2
|
|
|
551b01 |
|
|
|
551b01 |
* Mon Jul 27 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 1.3.1-1
|
|
|
551b01 |
- Update to 1.3.1
|
|
|
551b01 |
|
|
|
551b01 |
* Tue Jul 07 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 1.3.0-1
|
|
|
551b01 |
- Update to 1.3.0
|
|
|
551b01 |
|
|
|
551b01 |
* Thu Jul 02 2020 Jakub Jelen <jjelen@redhat.com> - 1.3.0-0.1-RC0
|
|
|
551b01 |
- Update to 1.3.0-RC0
|
|
|
551b01 |
|
|
|
551b01 |
* Tue May 26 2020 Miro Hron훾ok <mhroncok@redhat.com> - 1.2.0-2
|
|
|
551b01 |
- Rebuilt for Python 3.9
|
|
|
551b01 |
|
|
|
551b01 |
* Mon Mar 30 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 1.2.0-1
|
|
|
551b01 |
- Update to 1.2.0
|
|
|
551b01 |
|
|
|
551b01 |
* Mon Mar 09 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 1.1.0-1
|
|
|
551b01 |
- Update to 1.1.0
|
|
|
551b01 |
|
|
|
551b01 |
* Mon Mar 2 2020 Peter Robinson <pbrobinson@fedoraproject.org> 1.1.0-0.1-RC1
|
|
|
551b01 |
- Update to 1.1.0 RC1 candidate
|
|
|
551b01 |
|
|
|
551b01 |
* Mon Feb 10 2020 Jakub Jelen <jjelen@redhat.com> - 1.0.1-3
|
|
|
551b01 |
- Unbreak build with gcc10 (#1796383)
|
|
|
551b01 |
|
|
|
551b01 |
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-2
|
|
|
551b01 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
551b01 |
|
|
|
551b01 |
* Tue Jan 07 2020 Jakub Jelen <jjelen@redhat.com> - 1.0.1-1
|
|
|
551b01 |
- New upstream release (#1784580)
|
|
|
551b01 |
|
|
|
551b01 |
* Tue Dec 31 2019 Peter Robinson <pbrobinson@fedoraproject.org> 1.0-1
|
|
|
551b01 |
- Update to 1.0 stable release
|
|
|
551b01 |
|
|
|
551b01 |
* Thu Dec 26 2019 Peter Robinson <pbrobinson@fedoraproject.org> 1.0-0.1-RC1
|
|
|
551b01 |
- Update to 1.0 RC1 candidate
|
|
|
551b01 |
|
|
|
551b01 |
* Fri Oct 11 2019 Jakub Jelen <jjelen@redhat.com> - 0-0.3.20191011git0b7ceff
|
|
|
551b01 |
- Update to current git version
|
|
|
551b01 |
- Fix missing requires (#1757179)
|
|
|
551b01 |
|
|
|
551b01 |
* Thu Oct 03 2019 Miro Hron훾ok <mhroncok@redhat.com> - 0-0.7.20190813git2f3058c
|
|
|
551b01 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
551b01 |
|
|
|
551b01 |
* Wed Aug 21 2019 Miro Hron훾ok <mhroncok@redhat.com> - 0-0.6.20190813git2f3058c
|
|
|
551b01 |
- Rebuilt for Python 3.8
|
|
|
551b01 |
|
|
|
551b01 |
* Tue Aug 20 2019 Peter Robinson <pbrobinson@fedoraproject.org> 0-0.5.20190813git2f3058c
|
|
|
551b01 |
- Update to new git snapshot for better use of tss2-tools 4.0 features
|
|
|
551b01 |
|
|
|
551b01 |
* Mon Aug 19 2019 Miro Hron훾ok <mhroncok@redhat.com> - 0-0.4.20190219git1e84553
|
|
|
551b01 |
- Rebuilt for Python 3.8
|
|
|
551b01 |
|
|
|
551b01 |
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.3.20190219git1e84553
|
|
|
551b01 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
551b01 |
|
|
|
551b01 |
* Tue Apr 23 2019 Jakub Jelen <jjelen@redhat.com> - 0-0.2.20190219git1e84553
|
|
|
551b01 |
- Package missing python tool for TPM2 initialization
|
|
|
551b01 |
- Update to current version from github
|
|
|
551b01 |
|
|
|
551b01 |
* Tue Feb 19 2019 Jakub Jelen <jjelen@redhat.com> - 0-0.1.20190219git836d715
|
|
|
551b01 |
- Initial release for Fedora
|
|
|
551b01 |
|
|
|
551b01 |
|