tpm2-tss-engine/tpm2-tss-engine.spec
wangyoukang 80ef05385e add SM2 engine test script
Signed-off-by: wangyoukang <wangyoukang@xfusion.com>
2023-08-01 19:14:58 +08:00

114 lines
2.9 KiB
RPMSpec

Name: tpm2-tss-engine
Version: 1.1.0
Release: 1.u4
Summary: OpenSSL Engine for TPM2 devices using the tpm2-tss software stack
License: BSD
URL: https://github.com/tpm2-software/tpm2-tss-engine
Source0: https://github.com/tpm2-software/tpm2-tss-engine/releases/download/v%{version}/%{name}-%{version}.tar.gz
Patch10001: 0001-add-bootstrap-for-source-code-compilation.patch
Patch10002: 0002-add-SM2-genkey-function.patch
Patch10003: 0003-add-SM2-sign-function-for-openssl-engine.patch
Patch10004: 0004-add-SM2-engine-test-script.patch
BuildRequires: make
BuildRequires: autoconf
BuildRequires: autoconf-archive
BuildRequires: automake
BuildRequires: libtool
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: pkgconfig
#BuildRequires: pandoc
BuildRequires: tpm2-tss-devel
BuildRequires: openssl-devel
Requires: openssl
Requires: tpm2-tss
%description
tpm2-tss-engine is an engine implementation for OpenSSL that uses tpm2-tss
software stack. It uses the Enhanced System API (ESAPI) interface of the
TSS 2.0 for downwards communication. It supports RSA decryption and signatures
as well as ECDSA signatures.
%prep
%autosetup -n %{name}-%{version} -p1
%build
%configure
%make_build
%install
%make_install
find %{buildroot}%{_libdir}/engines-1.1 -type f -name \*.la -exec rm {} +
find %{buildroot}%{_libdir}/engines-1.1 -type f -name \*.a -exec rm {} +
%files
%license LICENSE
%doc README.md CHANGELOG.md
%{_libdir}/engines-1.1/libtpm2tss.so
%{_libdir}/engines-1.1/tpm2tss.so
%package devel
Summary: Headers and libraries for building applications against tpm2-tss-engine
Requires: %{name}%{_isa} = %{version}-%{release}
%description devel
This package contains headers and libraries for building apps applications
against tpm2-tss-engine
%files devel
%{_includedir}/tpm2-tss-engine.h
%{_mandir}/man3/tpm2tss_*.3.*
%package utilities
Summary: Utility binary for openssl using tpm2-tss software stack
Requires: %{name}%{_isa} = %{version}-%{release}
%description utilities
This package contains the binary of the engine implementation for openssl that
uses the tpm2-tss software stack
%files utilities
%{_bindir}/tpm2tss-genkey
%{_datadir}/bash-completion/completions/tpm2tss-genkey
%{_mandir}/man1/tpm2tss-*.1.*
%changelog
* Tue Aug 1 2023 wangyoukang<wangyoukang@xfusion.com> - 1.1.0-1.u4
- Type:req
- CVE:
- DESC: add SM2 engine test script
* Tue Aug 1 2023 wangyoukang<wangyoukang@xfusion.com> - 1.1.0-1.u3
- Type:req
- CVE:
- DESC: add SM2 sign function for openssl engine
* Tue Aug 1 2023 wangyoukang<wangyoukang@xfusion.com> - 1.1.0-1.u2
- Type:req
- CVE:
- DESC: add SM2 genkey function
* Tue Aug 1 2023 wangyoukang<wangyoukang@xfusion.com> - 1.1.0-1.u1
- Type:req
- CVE:
- DESC: add bootstratp for source code compilation
* Wed May 17 2023 wujiangtao<wujiangtao@xfusion.com> - 1.1.0-1
- ID:NA
- SUG:NA
- DESC: Package init