1
0
forked from pool/openssl-ibmca

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

- Updated the .spec file
  * uses a flag openssl3 (1 or 0) to include or not the openssl3 libraries

OBS-URL: https://build.opensuse.org/request/show/1083947
OBS-URL: https://build.opensuse.org/package/show/security:tls/openssl-ibmca?expand=0&rev=49
This commit is contained in:
Nikolay Gueorguiev 2023-05-02 07:54:47 +00:00 committed by Git OBS Bridge
parent 1b6da356a1
commit c919c280fe
2 changed files with 22 additions and 6 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue May 2 07:49:24 UTC 2023 - Nikolay Gueorguiev <nikolay.gueorguiev@suse.com>
- Updated the .spec file
* uses a flag openssl3 (1 or 0) to include or not the openssl3 libraries
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Apr 25 12:47:39 UTC 2023 - Nikolay Gueorguiev <nikolay.gueorguiev@suse.com> Tue Apr 25 12:47:39 UTC 2023 - Nikolay Gueorguiev <nikolay.gueorguiev@suse.com>

View File

@ -16,6 +16,8 @@
# #
%define openssl3 1
%global enginesdir %(pkg-config --variable=enginesdir libcrypto) %global enginesdir %(pkg-config --variable=enginesdir libcrypto)
Name: openssl-ibmca Name: openssl-ibmca
@ -36,9 +38,14 @@ BuildRequires: libica >= 4.0.0
BuildRequires: libica-devel >= 4.0.0 BuildRequires: libica-devel >= 4.0.0
BuildRequires: libica-tools >= 4.0.0 BuildRequires: libica-tools >= 4.0.0
BuildRequires: libtool BuildRequires: libtool
BuildRequires: openssl-devel
Requires: libica >= 4.0.0 Requires: libica >= 4.0.0
%if %{openssl3}
BuildRequires: openssl-devel > 3.0.0
Requires: openssl > 3.0.0
%else
BuildRequires: openssl-devel
Requires: openssl Requires: openssl
%endif
ExclusiveArch: s390x ExclusiveArch: s390x
%description %description
@ -85,8 +92,10 @@ grep -v "^#" src/engine/openssl.cnf.sample | \
SSLENGCNF=%{_sysconfdir}/ssl/engines.d SSLENGCNF=%{_sysconfdir}/ssl/engines.d
SSLENGDEF=%{_sysconfdir}/ssl/engdef.d SSLENGDEF=%{_sysconfdir}/ssl/engdef.d
mkdir -p ${SSLENGCNF} %if %{openssl3}
mkdir -p ${SSLENGDEF} mkdir -p ${SSLENGCNF}
mkdir -p ${SSLENGDEF}
%endif
cp -p %{_datadir}/%{name}/openssl-ibmca.sectiondef.txt ${SSLENGCNF}/openssl-ibmca.cnf cp -p %{_datadir}/%{name}/openssl-ibmca.sectiondef.txt ${SSLENGCNF}/openssl-ibmca.cnf
cp -p %{_datadir}/%{name}/openssl-ibmca.enginedef.cnf ${SSLENGDEF}/openssl-ibmca.cnf cp -p %{_datadir}/%{name}/openssl-ibmca.enginedef.cnf ${SSLENGDEF}/openssl-ibmca.cnf
@ -109,9 +118,10 @@ fi
%{_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.* %{enginesdir}/ibmca.*
/usr/lib64/engines-3/ibmca-provider.la
/usr/lib64/engines-3/ibmca-provider.so
%{_mandir}/man5/ibmca.5%{?ext_man} %{_mandir}/man5/ibmca.5%{?ext_man}
%{_mandir}/man5/ibmca-provider.5.gz %if %{openssl3}
%{_mandir}/man5/ibmca-provider.5%{?ext_man}
%{enginesdir}/ibmca-provider.*
%endif
%changelog %changelog