Accepting request 1166593 from home:ngueorguiev:branches:security:tls

Re-implemented flavors (openssl3, engine, provider)

OBS-URL: https://build.opensuse.org/request/show/1166593
OBS-URL: https://build.opensuse.org/package/show/security:tls/openssl-ibmca?expand=0&rev=65
This commit is contained in:
Nikolay Gueorguiev 2024-04-10 08:01:09 +00:00 committed by Git OBS Bridge
parent f97e95c8e8
commit 1c1bc15f2d

View File

@ -48,7 +48,7 @@ Summary: The IBMCA OpenSSL dynamic engine
License: Apache-2.0
Group: Hardware/Other
URL: https://github.com/opencryptoki/openssl-ibmca
Source: https://github.com/opencryptoki/opensll-ibmca/archive/v%{version}.tar.gz#/openssl-ibmca-%{version}.tar.gz
Source: https://github.com/opencryptoki/openssl-ibmca/archive/v%{version}.tar.gz#/openssl-ibmca-%{version}.tar.gz
Source1: engine_section.txt
Source2: _multibuild
###
@ -115,16 +115,16 @@ sed -i -e "/^dynamic_path/s, = .*/, = %{enginesdir}/," src/engine/openssl.cnf.sa
%if "%{flavor}" == ""
rm -f %{buildroot}/%{enginesdir}/ibmca-provider.*
rm -f %{buildroot}%{_mandir}/man5/ibmca-provider.5.gz
%endif
%if "%{flavor}" == "openssl3"
rm -f %{buildroot}/%{modulesdir}/ibmca.la
rm -f %{buildroot}/%{modulesdir}/ibmca-provider.la
mkdir -p %{buildroot}/%{enginesdir}
mv %{buildroot}/%{modulesdir}/ibmca.* %{buildroot}/%{enginesdir}/
%endif
rm -f %{buildroot}/%{enginesdir}/ibmca*.la
rm -f %{buildroot}/%{modulesdir}/ibmca*.la
# This file contains the declaration of the ibmca engine section. It
# needs to be on the "real" file system when the postinstall scriptlet
# is run. It will be read by the openssl .include directive that points