File openssl-ibmpkcs11.spec of Package openssl-ibmpkcs11

#
# spec file for package openssl-ibmpkcs11
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           openssl-ibmpkcs11
Version:        1.0.1
Release:        0
Summary:        OpenSSL Dynamic PKCS #11 Engine
License:        OpenSSL
URL:            https://sourceforge.net/projects/opencryptoki/
Source:         %{name}-%{version}.tar.bz2
Patch0:         openssl-ibmpkcs11_sample_config_file.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  openssl-devel

%description
OpenSSL Dynamic PKCS #11 Engine

%prep
%autosetup -p1

%build
# 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)

sh bootstrap.sh
%configure --libdir=%{_ENGINE_DIR}
%make_build

%install
%make_install
rm -f %{buildroot}/%{_ENGINE_DIR}/*.{la,so}

%files
%license LICENSE
%doc ChangeLog README openssl.cnf.sample
%{_ENGINE_DIR}/libibmpkcs11.so.*

%changelog
openSUSE Build Service is sponsored by