From 95db5b8ce1979104e3aa405ffacbe47914266466 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Wed, 20 Feb 2019 15:19:50 +0100 Subject: [PATCH] tpm2-pkcs11-0-0.1.20190219git836d715 --- .gitignore | 1 + sources | 1 + tpm2-pkcs11.spec | 69 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 71 insertions(+) create mode 100644 .gitignore create mode 100644 sources create mode 100644 tpm2-pkcs11.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6b4ac8c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/tpm2-pkcs11-0-git836d715.tar.gz diff --git a/sources b/sources new file mode 100644 index 0000000..590a5f0 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (tpm2-pkcs11-0-git836d715.tar.gz) = 26ef4acc9b7233ec811adeaa40be70330755d02c9a32482842c7f20c43816931d6d56f321623da464613a0d45fc11ddb168f6d54f5ed24dde6576caaf431994e diff --git a/tpm2-pkcs11.spec b/tpm2-pkcs11.spec new file mode 100644 index 0000000..97b6d15 --- /dev/null +++ b/tpm2-pkcs11.spec @@ -0,0 +1,69 @@ +%global commit0 836d7155bc35253b19367bc59bb7351484232e01 +%global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) + +Name: tpm2-pkcs11 +Version: 0 +Release: 0.1.20190219git%{shortcommit0}%{?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/tpm2-pkcs11/archive/%{commit0}.tar.gz#/%{name}-%{version}-git%{shortcommit0}.tar.gz + +BuildRequires: automake +BuildRequires: libtool +BuildRequires: gcc +BuildRequires: make +BuildRequires: tpm2-tss-devel +BuildRequires: tpm2-tools +BuildRequires: python3 +BuildRequires: openssl-devel +BuildRequires: autoconf-archive +BuildRequires: sqlite-devel +BuildRequires: libgcrypt-devel +BuildRequires: p11-kit-devel +# for tests +BuildRequires: libcmocka-devel +BuildRequires: dbus-daemon + +%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. + +%prep +%setup -q -n tpm2-pkcs11-%{commit0} + + +%build +./bootstrap +%configure --enable-unit +make %{?_smp_mflags} + + +%check +make check + + +%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 + +%files +%doc +%license LICENSE +%{_datadir}/p11-kit/modules/tpm2_pkcs11.module +%%dir %{_libdir}/pkcs11 +%{_libdir}/pkcs11/libtpm2_pkcs11.so +%{_libdir}/pkcs11/libtpm2_pkcs11.so.0* + + + +%changelog +* Tue Feb 19 2019 Jakub Jelen - 0-0.1.20190219git836d715 +- Initial release for Fedora + +