File openssl-ibmpkcs11.spec of Package openssl-ibmpkcs11

# spec file for package openssl-ibmpkcs11
# 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

Name:           openssl-ibmpkcs11
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  openssl-devel
Version:        1.0.1
Release:        0
Summary:        OpenSSL Dynamic PKCS #11 Engine
License:        OpenSSL
Group:          Productivity/Networking/Security
Source:         %name-%{version}.tar.bz2
Patch:          openssl-ibmpkcs11_sample_config_file.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

OpenSSL Dynamic PKCS #11 Engine

%patch -p1

# The directory where crypto engines are located is owned by the libcrypto package.
# Find out where that is for this version of the distribution.
%define _ENGINE_DIR %(pkg-config --variable=enginesdir libcrypto)

%configure --libdir=%{_ENGINE_DIR}

rm -f $RPM_BUILD_ROOT/%{_ENGINE_DIR}/*.{la,so}

%doc LICENSE ChangeLog README openssl.cnf.sample