File openssl_tpm_engine.spec of Package openssl_tpm_engine

# spec file for package openssl_tpm_engine
# Copyright (c) 2011 SUSE LINUX Products 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

Name:           openssl_tpm_engine
License:        GPL-2.0+
Group:          Productivity/Security
Summary:        OpenSSL TPM interface engine plugin
Version:        0.4.1
Release:        32
Source0:        %{name}-%{version}.tar.bz2
Patch0:         openssl_tpm_engine-somodule.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libopenssl-devel libtool trousers-devel

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

%setup -q
%patch0 -p0

mkdir m4
autoreconf -fiv
%configure --libdir=/%{_lib}

make check

rm $RPM_BUILD_ROOT/%{_lib}/engines/


%defattr(-, root, root)
%doc LICENSE README openssl.cnf.sample
%dir /%{_lib}/engines