This commit is contained in:
@@ -16,9 +16,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
%define so_ver 0
|
%define so_ver 0
|
||||||
%define realname tpm2-pkcs11
|
|
||||||
|
|
||||||
Name: libtpm2_pkcs110
|
Name: tpm2-pkcs11
|
||||||
Version: 1.6.0
|
Version: 1.6.0
|
||||||
Release: 0
|
Release: 0
|
||||||
URL: https://github.com/tpm2-software/tpm2-pkcs11
|
URL: https://github.com/tpm2-software/tpm2-pkcs11
|
||||||
@@ -49,19 +48,28 @@ 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
|
modules (HSM), smart cards, etc. In this project we intend to use a TPM2 device
|
||||||
as the cryptographic token.
|
as the cryptographic token.
|
||||||
|
|
||||||
%package -n %{realname}-devel
|
%package -n libtpm2_pkcs110
|
||||||
|
Summary: A PKCS#11 interface for TPM2 hardware
|
||||||
|
|
||||||
|
%description -n libtpm2_pkcs110
|
||||||
|
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 devel
|
||||||
Summary: Developent files for %{name}
|
Summary: Developent files for %{name}
|
||||||
Group: Development/Languages/C and C++
|
Group: Development/Languages/C and C++
|
||||||
|
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: libtpm2_pkcs110 = %{version}
|
||||||
Provides: %{name}-devel = %{version}-%{release}
|
|
||||||
Provides: libtpm2_pkcs11-devel = %{version}-%{release}
|
Provides: libtpm2_pkcs11-devel = %{version}-%{release}
|
||||||
|
|
||||||
%description -n %{realname}-devel
|
%description devel
|
||||||
Headers and linraries to build software against %{name}.
|
Headers and linraries to build software against %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n tpm2-pkcs11-%version
|
%setup -q
|
||||||
if [ ! -x configure ]; then
|
if [ ! -x configure ]; then
|
||||||
test -x bootstrap && ./bootstrap || autoreconf --install
|
test -x bootstrap && ./bootstrap || autoreconf --install
|
||||||
fi
|
fi
|
||||||
@@ -73,7 +81,7 @@ fi
|
|||||||
%install
|
%install
|
||||||
%{__make} install DESTDIR=%{buildroot}
|
%{__make} install DESTDIR=%{buildroot}
|
||||||
|
|
||||||
%files
|
%files -n libtpm2_pkcs110
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc CHANGELOG.md LICENSE docs/*
|
%doc CHANGELOG.md LICENSE docs/*
|
||||||
%dir %{_libdir}/pkcs11
|
%dir %{_libdir}/pkcs11
|
||||||
@@ -83,7 +91,7 @@ fi
|
|||||||
%dir %{_datadir}/p11-kit
|
%dir %{_datadir}/p11-kit
|
||||||
%{_datadir}/p11-kit/modules/tpm2_pkcs11.module
|
%{_datadir}/p11-kit/modules/tpm2_pkcs11.module
|
||||||
|
|
||||||
%files -n %{realname}-devel
|
%files -n libtpm2_pkcs110 devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/pkgconfig/tpm2-pkcs11.pc
|
%{_libdir}/pkgconfig/tpm2-pkcs11.pc
|
||||||
%exclude %{_libdir}/pkcs11/libtpm2_pkcs11.la
|
%exclude %{_libdir}/pkcs11/libtpm2_pkcs11.la
|
||||||
|
Reference in New Issue
Block a user