This commit is contained in:
@@ -16,9 +16,8 @@
|
||||
#
|
||||
|
||||
%define so_ver 0
|
||||
%define realname tpm2-pkcs11
|
||||
|
||||
Name: libtpm2_pkcs110
|
||||
Name: tpm2-pkcs11
|
||||
Version: 1.6.0
|
||||
Release: 0
|
||||
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
|
||||
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}
|
||||
Group: Development/Languages/C and C++
|
||||
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Provides: %{name}-devel = %{version}-%{release}
|
||||
Requires: libtpm2_pkcs110 = %{version}
|
||||
Provides: libtpm2_pkcs11-devel = %{version}-%{release}
|
||||
|
||||
%description -n %{realname}-devel
|
||||
%description devel
|
||||
Headers and linraries to build software against %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n tpm2-pkcs11-%version
|
||||
%setup -q
|
||||
if [ ! -x configure ]; then
|
||||
test -x bootstrap && ./bootstrap || autoreconf --install
|
||||
fi
|
||||
@@ -73,7 +81,7 @@ fi
|
||||
%install
|
||||
%{__make} install DESTDIR=%{buildroot}
|
||||
|
||||
%files
|
||||
%files -n libtpm2_pkcs110
|
||||
%defattr(-,root,root)
|
||||
%doc CHANGELOG.md LICENSE docs/*
|
||||
%dir %{_libdir}/pkcs11
|
||||
@@ -83,7 +91,7 @@ fi
|
||||
%dir %{_datadir}/p11-kit
|
||||
%{_datadir}/p11-kit/modules/tpm2_pkcs11.module
|
||||
|
||||
%files -n %{realname}-devel
|
||||
%files -n libtpm2_pkcs110 devel
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/pkgconfig/tpm2-pkcs11.pc
|
||||
%exclude %{_libdir}/pkcs11/libtpm2_pkcs11.la
|
||||
|
Reference in New Issue
Block a user