Merged update from upstream sources
This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/tpm2-pkcs11.git#63f60a41d8cea63a098029b217d901586a90bf2b
This commit is contained in:
parent
c3e904b05d
commit
b371ba78b8
|
@ -0,0 +1,2 @@
|
|||
/tpm2-pkcs11-1.*.tar.gz
|
||||
/tpm2-pkcs11-1.*.tar.gz.asc
|
Binary file not shown.
|
@ -0,0 +1,2 @@
|
|||
SHA512 (tpm2-pkcs11-1.4.0.tar.gz) = b271500c7aab256edf4b9e070e700bbc8162db070cd8dfe49289db60d8c4527b8e54c794beb8c97fda0d989e095ac6cb790898912993db1906b7139942c87ffb
|
||||
SHA512 (tpm2-pkcs11-1.4.0.tar.gz.asc) = ac05e6c6823c0b8831aea43181a94455d8b7ccb001a4e9389b12633688d3ccf95b1ee858b9e27fedf6775c0c1cd05e5d9a5ab7ede68def1d7daea8b7bb10122a
|
|
@ -0,0 +1,170 @@
|
|||
%ifarch s390x
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1861276 -> Disable LTO for now
|
||||
%define _lto_cflags %{nil}
|
||||
%endif
|
||||
|
||||
#global candidate RC0
|
||||
|
||||
Name: tpm2-pkcs11
|
||||
Version: 1.4.0
|
||||
Release: 1%{?candidate:.%{candidate}}%{?dist}
|
||||
Summary: PKCS#11 interface for TPM 2.0 hardware
|
||||
|
||||
License: BSD
|
||||
URL: https://github.com/tpm2-software/tpm2-pkcs11
|
||||
Source0: https://github.com/tpm2-software/%{name}/releases/download/%{version}%{?candidate:-%{candidate}}/%{name}-%{version}%{?candidate:-%{candidate}}.tar.gz
|
||||
Source1: https://github.com/tpm2-software/%{name}/releases/download/%{version}%{?candidate:-%{candidate}}/%{name}-%{version}%{?candidate:-%{candidate}}.tar.gz.asc
|
||||
# William Roberts (Bill Roberts) key from pgp.mit.edu
|
||||
Source2: gpgkey-8E1F50C1.gpg
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: make
|
||||
BuildRequires: python3
|
||||
BuildRequires: libgcrypt-devel
|
||||
BuildRequires: libyaml-devel
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: p11-kit-devel
|
||||
BuildRequires: sqlite-devel
|
||||
BuildRequires: tpm2-tools
|
||||
BuildRequires: tpm2-tss-devel
|
||||
# for tests
|
||||
BuildRequires: libcmocka-devel
|
||||
BuildRequires: dbus-daemon
|
||||
# for tools
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-pyasn1-modules
|
||||
BuildRequires: python3-pyyaml
|
||||
BuildRequires: python3-cryptography
|
||||
# for tarball signature verification
|
||||
BuildRequires: gnupg2
|
||||
|
||||
%description
|
||||
PKCS #11 is a Public-Key Cryptography Standard that defines a standard method
|
||||
to access cryptographic services from tokens/ devices such as hardware security
|
||||
modules (HSM), smart cards, etc. In this project we intend to use a TPM2 device
|
||||
as the cryptographic token.
|
||||
|
||||
%package tools
|
||||
Summary: The tools required to setup and configure TPM2 for PKCS#11
|
||||
# Automatic generator does not work for me even though the requires.txt is in place
|
||||
Requires: python3-cryptography
|
||||
Requires: python3-pyyaml
|
||||
Requires: python3-pyasn1-modules
|
||||
|
||||
%description tools
|
||||
The tools required to setup and configure TPM2 for PKCS#11.
|
||||
|
||||
%prep
|
||||
gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
|
||||
%autosetup -p1 -n %{name}-%{version}%{?candidate:-%{candidate}}
|
||||
|
||||
|
||||
%build
|
||||
%configure --enable-unit
|
||||
%{make_build}
|
||||
cd tools
|
||||
%py3_build
|
||||
|
||||
|
||||
%install
|
||||
%make_install
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/pkgconfig/tpm2-pkcs11.pc
|
||||
[ -f $RPM_BUILD_ROOT%{_libdir}/pkcs11/libtpm2_pkcs11.la ] && \
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/pkcs11/libtpm2_pkcs11.la
|
||||
[ -f $RPM_BUILD_ROOT%{_libdir}/pkcs11/libtpm2_pkcs11.a ] && \
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/pkcs11/libtpm2_pkcs11.a
|
||||
cd tools
|
||||
%py3_install
|
||||
install -Dpm 755 tpm2_ptool $RPM_BUILD_ROOT%{_bindir}/tpm2_ptool
|
||||
|
||||
|
||||
%check
|
||||
make check
|
||||
cd tools
|
||||
%{__python3} setup.py test
|
||||
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%{_datadir}/p11-kit/modules/tpm2_pkcs11.module
|
||||
%%dir %{_libdir}/pkcs11
|
||||
%{_libdir}/pkcs11/libtpm2_pkcs11.so
|
||||
%{_libdir}/pkcs11/libtpm2_pkcs11.so.0*
|
||||
|
||||
%files tools
|
||||
%{_bindir}/tpm2_ptool
|
||||
%{python3_sitelib}/tpm2_pkcs11/*
|
||||
%{python3_sitelib}/tpm2_pkcs11_tools-*/*
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Aug 24 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 1.4.0-1
|
||||
- Update to 1.4.0
|
||||
|
||||
* Mon Aug 10 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 1.3.2-1
|
||||
- Update to 1.3.2
|
||||
|
||||
* Mon Jul 27 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 1.3.1-1
|
||||
- Update to 1.3.1
|
||||
|
||||
* Tue Jul 07 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 1.3.0-1
|
||||
- Update to 1.3.0
|
||||
|
||||
* Thu Jul 02 2020 Jakub Jelen <jjelen@redhat.com> - 1.3.0-0.1-RC0
|
||||
- Update to 1.3.0-RC0
|
||||
|
||||
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.2.0-2
|
||||
- Rebuilt for Python 3.9
|
||||
|
||||
* Mon Mar 30 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 1.2.0-1
|
||||
- Update to 1.2.0
|
||||
|
||||
* Mon Mar 09 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 1.1.0-1
|
||||
- Update to 1.1.0
|
||||
|
||||
* Mon Mar 2 2020 Peter Robinson <pbrobinson@fedoraproject.org> 1.1.0-0.1-RC1
|
||||
- Update to 1.1.0 RC1 candidate
|
||||
|
||||
* Mon Feb 10 2020 Jakub Jelen <jjelen@redhat.com> - 1.0.1-3
|
||||
- Unbreak build with gcc10 (#1796383)
|
||||
|
||||
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Tue Jan 07 2020 Jakub Jelen <jjelen@redhat.com> - 1.0.1-1
|
||||
- New upstream release (#1784580)
|
||||
|
||||
* Tue Dec 31 2019 Peter Robinson <pbrobinson@fedoraproject.org> 1.0-1
|
||||
- Update to 1.0 stable release
|
||||
|
||||
* Thu Dec 26 2019 Peter Robinson <pbrobinson@fedoraproject.org> 1.0-0.1-RC1
|
||||
- Update to 1.0 RC1 candidate
|
||||
|
||||
* Fri Oct 11 2019 Jakub Jelen <jjelen@redhat.com> - 0-0.3.20191011git0b7ceff
|
||||
- Update to current git version
|
||||
- Fix missing requires (#1757179)
|
||||
|
||||
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0-0.7.20190813git2f3058c
|
||||
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
||||
|
||||
* Wed Aug 21 2019 Miro Hrončok <mhroncok@redhat.com> - 0-0.6.20190813git2f3058c
|
||||
- Rebuilt for Python 3.8
|
||||
|
||||
* Tue Aug 20 2019 Peter Robinson <pbrobinson@fedoraproject.org> 0-0.5.20190813git2f3058c
|
||||
- Update to new git snapshot for better use of tss2-tools 4.0 features
|
||||
|
||||
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0-0.4.20190219git1e84553
|
||||
- Rebuilt for Python 3.8
|
||||
|
||||
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.3.20190219git1e84553
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Tue Apr 23 2019 Jakub Jelen <jjelen@redhat.com> - 0-0.2.20190219git1e84553
|
||||
- Package missing python tool for TPM2 initialization
|
||||
- Update to current version from github
|
||||
|
||||
* Tue Feb 19 2019 Jakub Jelen <jjelen@redhat.com> - 0-0.1.20190219git836d715
|
||||
- Initial release for Fedora
|
||||
|
||||
|
Loading…
Reference in New Issue