LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File openssl_tpm_engine.spec of Package openssl_tpm_engine (Project home:jejb1:Tumbleweed)

# spec file for package openssl_tpm_engine
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/

Name:           openssl_tpm_engine
Url:            http://sourceforge.net/projects/trousers
Summary:        OpenSSL TPM 1.2 interface engine plugin
License:        GPL-2.0+
Group:          Productivity/Security
Version:        0.4.2
Release:        0
Source0:        https://downloads.sourceforge.net/project/trousers/OpenSSL%20TPM%20Engine/%{version}/%{name}-%{version}.tar.gz
Patch0:         openssl_tpm_engine-somodule.patch
Patch1:         0000-openssl-1.1-compatibility-preparation-remove-unneede.patch
Patch2:         0001-openssl-1.1-compatibility-preparation-fix-warnings-a.patch
Patch3:         0002-Explicitly-link-create_tpm_key-against-libcrypto.patch
Patch4:         0003-OpenSSL-1.1-compatibility.patch
Patch5:         0004-automake-add-linker-flags-to-explicitly-build-a-plug.patch
Patch6:         0005-autotools-choose-engine-plugin-name-based-on-OpenSSL.patch
Patch7:         0006-autotools-make-engine-plugin-installation-dir-config.patch

Patch101:       0001-try-well-known-authority-for-SRK-first.patch
Patch102:       0002-Handle-EVP-keys.patch
Patch103:       0003-Add-option-for-random-migration-authority.patch
Patch104:       0004-e_tpm-reduce-TPM-connection-time.patch
Patch105:       0005-configure-don-t-use-pkgconfig-to-find-the-engines-di.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  automake
BuildRequires:  libopenssl-devel
BuildRequires:  libtool
BuildRequires:  trousers-devel
BuildRequires:  tss2-devel

This package contains a plugin a for OpenSSL which connects it with the
Trusted Platform Module version 1.2 found on newer machines and a
create_tpm_key helper binary to create and extract a TPM key.

%setup -q
%patch0 -p0
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1

%patch101 -p1
%patch102 -p1
%patch103 -p1
%patch104 -p1
%patch105 -p1

mkdir m4
sh ./bootstrap.sh
%configure --libdir=/%{_lib}

make check

find $RPM_BUILD_ROOT/ -name \*.la -exec rm -f {} \;
%define EXTRA_FILES ExtraFiles.list
find * -name libtpm.so -printf "/%p" > $CWD/%{EXTRA_FILES}


%files -f %{EXTRA_FILES}
%defattr(-, root, root)
%doc LICENSE README openssl.cnf.sample