Accepting request 1159117 from home:ngueorguiev:branches:security:tls
- Updated the .spec file (bsc#1218933, bsc#1221627) * Amended the .spec file to use modulesdir variable - Implemented _multibuild environment (openssl1, engine, provider) - Added a flag and logic for provider in the .spec file * When provider is set to 1, it 'configures' the provider * When provider is set to 0, it 'configures' the engine OBS-URL: https://build.opensuse.org/request/show/1159117 OBS-URL: https://build.opensuse.org/package/show/security:tls/openssl-ibmca?expand=0&rev=57
This commit is contained in:
parent
3f2f0b2b75
commit
821561cda7
5
_multibuild
Normal file
5
_multibuild
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<multibuild>
|
||||||
|
<flavor>openssl1</flavor>
|
||||||
|
<flavor>engine</flavor>
|
||||||
|
<flavor>provider</flavor>
|
||||||
|
</multibuild>
|
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 18 19:18:47 UTC 2024 - Nikolay Gueorguiev <nikolay.gueorguiev@suse.com>
|
||||||
|
|
||||||
|
- Updated the .spec file (bsc#1218933, bsc#1221627)
|
||||||
|
* Amended the .spec file to use modulesdir variable
|
||||||
|
- Implemented _multibuild environment (openssl1, engine, provider)
|
||||||
|
- Added a flag and logic for provider in the .spec file
|
||||||
|
* When provider is set to 1, it 'configures' the provider
|
||||||
|
* When provider is set to 0, it 'configures' the engine
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Oct 13 10:39:42 UTC 2023 - Nikolay Gueorguiev <nikolay.gueorguiev@suse.com>
|
Fri Oct 13 10:39:42 UTC 2023 - Nikolay Gueorguiev <nikolay.gueorguiev@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package openssl-ibmca
|
# spec file for package openssl-ibmca
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,9 +16,30 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
|
||||||
|
%if "%{flavor}" == ""
|
||||||
%define openssl3 1
|
%define openssl3 1
|
||||||
|
%define provider 0
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if "%{flavor}" == "openssl1"
|
||||||
|
%define openssl3 0
|
||||||
|
%define provider 0
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if "%{flavor}" == "engine"
|
||||||
|
%define openssl3 1
|
||||||
|
%define provider 0
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if "%{flavor}" == "provider"
|
||||||
|
%define openssl3 1
|
||||||
|
%define provider 1
|
||||||
|
%endif
|
||||||
|
|
||||||
%global enginesdir %(pkg-config --variable=enginesdir libcrypto)
|
%global enginesdir %(pkg-config --variable=enginesdir libcrypto)
|
||||||
|
%global modulesdir %(pkg-config --variable=modulesdir libcrypto)
|
||||||
|
|
||||||
Name: openssl-ibmca
|
Name: openssl-ibmca
|
||||||
Version: 2.4.1
|
Version: 2.4.1
|
||||||
@ -29,6 +50,7 @@ Group: Hardware/Other
|
|||||||
URL: https://github.com/opencryptoki/openssl-ibmca
|
URL: https://github.com/opencryptoki/openssl-ibmca
|
||||||
Source: https://github.com/opencryptoki/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source: https://github.com/opencryptoki/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
Source1: engine_section.txt
|
Source1: engine_section.txt
|
||||||
|
Source2: _multibuild
|
||||||
###
|
###
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
@ -56,17 +78,38 @@ to libica, a library enabling the IBM s390/x CPACF crypto instructions.
|
|||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
export CFLAGS="%{optflags}"
|
||||||
export CPPFLAGS="%{optflags}"
|
export CPPFLAGS="%{optflags}"
|
||||||
%configure \
|
|
||||||
|
%if %{provider}
|
||||||
|
%configure \
|
||||||
|
--disable-engine \
|
||||||
|
--libdir=%{modulesdir}
|
||||||
|
%else
|
||||||
|
%configure \
|
||||||
|
--disable-provider \
|
||||||
--libdir=%{enginesdir}
|
--libdir=%{enginesdir}
|
||||||
|
%endif
|
||||||
|
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%if %{provider}
|
||||||
|
#
|
||||||
|
###
|
||||||
|
#
|
||||||
|
%else
|
||||||
# Update the sample config file so that the dynamic path points
|
# Update the sample config file so that the dynamic path points
|
||||||
# to the correct version of the engines directory.
|
# to the correct version of the engines directory.
|
||||||
sed -i -e "/^dynamic_path/s, = .*/, = %{enginesdir}/," src/engine/openssl.cnf.sample
|
sed -i -e "/^dynamic_path/s, = .*/, = %{enginesdir}/," src/engine/openssl.cnf.sample
|
||||||
|
%endif
|
||||||
|
|
||||||
%make_install
|
%make_install
|
||||||
rm %{buildroot}/%{enginesdir}/ibmca.la
|
%if %{provider}
|
||||||
|
#
|
||||||
|
###
|
||||||
|
#
|
||||||
|
%else
|
||||||
|
rm -f %{buildroot}/%{enginesdir}/ibmca.la
|
||||||
|
%endif
|
||||||
|
|
||||||
# This file contains the declaration of the ibmca engine section. It
|
# This file contains the declaration of the ibmca engine section. It
|
||||||
# needs to be on the "real" file system when the postinstall scriptlet
|
# needs to be on the "real" file system when the postinstall scriptlet
|
||||||
@ -110,15 +153,21 @@ fi
|
|||||||
%doc ChangeLog
|
%doc ChangeLog
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%doc src/engine/openssl.cnf.sample
|
%doc src/engine/openssl.cnf.sample
|
||||||
%doc src/engine/ibmca-engine-opensslconfig
|
%doc src/engine/ibmca-engine-opensslconfig.in
|
||||||
%dir %{_datadir}/%{name}
|
%dir %{_datadir}/%{name}
|
||||||
%{_datadir}/%{name}/openssl-ibmca.sectiondef.txt
|
%{_datadir}/%{name}/openssl-ibmca.sectiondef.txt
|
||||||
%{_datadir}/%{name}/openssl-ibmca.enginedef.cnf
|
%{_datadir}/%{name}/openssl-ibmca.enginedef.cnf
|
||||||
%{enginesdir}/ibmca.*
|
|
||||||
%{_mandir}/man5/ibmca.5%{?ext_man}
|
|
||||||
%if %{openssl3}
|
%if %{openssl3}
|
||||||
%{_mandir}/man5/ibmca-provider.5%{?ext_man}
|
%if %{provider}
|
||||||
%{enginesdir}/ibmca-provider.*
|
%{modulesdir}/ibmca-provider.*
|
||||||
|
%{_mandir}/man5/ibmca-provider.5%{?ext_man}
|
||||||
|
%else
|
||||||
|
%{enginesdir}/ibmca.*
|
||||||
|
%{_mandir}/man5/ibmca.5%{?ext_man}
|
||||||
|
%endif
|
||||||
|
%else
|
||||||
|
%{enginesdir}/ibmca.*
|
||||||
|
%{_mandir}/man5/ibmca.5%{?ext_man}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user