Name: simple-tpm-pk11 Version: 0.04 Release: 1%{?dist} Summary: Simple PKCS11 provider for TPM chips License: ASL 2.0 URL: https://github.com/ThomasHabets/simple-tpm-pk11 Source0: https://github.com/ThomasHabets/simple-tpm-pk11/archive/%{version}.tar.gz Patch0: simple-tpm-pk11-use-system-gtest.patch Patch1: simple-tpm-pk11-replace-obsolete-macro.patch BuildRequires: libtool BuildRequires: openssl-devel BuildRequires: opencryptoki-devel BuildRequires: trousers-devel BuildRequires: gtest-devel #Requires: %description A simple library for using the TPM chip to secure SSH keys. %prep %setup -q %patch0 -p1 %patch1 -p1 %build ./bootstrap.sh %configure --disable-static make %{?_smp_mflags} %check make check %install %make_install rm -f %{buildroot}/%{_libdir}/libsimple-tpm-pk11.la %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %license LICENSE %doc FAQ TPM-TROUBLESHOOTING %{_bindir}/stpm-* # This causes devel-file-in-non-devel-package, but this is in the # main package because this is what the user actualy specifies in # his ssh config %{_libdir}/libsimple-tpm-pk11.so* %doc %{_mandir}/man1/* %doc %{_mandir}/man7/* %changelog * Sat Dec 12 2015 Patrick Uiterwijk - 0.04-1 - Initial packaging