From cb327d4a0098b9e8d446451c60ad82ac43676b44 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 18 Nov 2021 17:58:56 +0100 Subject: add better workaround for OpenSSL 3.0 from https://github.com/nginx/unit/pull/598 --- unit.spec | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'unit.spec') diff --git a/unit.spec b/unit.spec index 120a570..ec529e2 100644 --- a/unit.spec +++ b/unit.spec @@ -17,7 +17,7 @@ Name: unit Summary: NGINX Unit application server Version: 1.26.0 -Release: 1%{?dist} +Release: 2%{?dist} License: ASL 2.0 URL: https://unit.nginx.org/ @@ -30,6 +30,9 @@ Source4: unit.logrotate # Use system crypto policy # https://github.com/nginx/unit/pull/215 Patch0: %{project}-syspol.patch +# Workaround for OpenSSL 3.0 +# https://github.com/nginx/unit/pull/598 +Patch1: %{project}-openssl3.patch BuildRequires: make BuildRequires: gcc @@ -64,12 +67,10 @@ Library and include files required for NGINX Unit modules development. %prep %setup -qn %{project}-%{gh_commit} %patch0 -p1 -b .syspol +%patch1 -p1 -b .openssl3 cp pkg/rpm/rpmbuild/SOURCES/unit.example.config example.config -# For OpenSSL 3.0 deprecations -sed -e 's/-Werror//' -i ./auto/types ./auto/cc/test - %build # see https://github.com/nginx/unit/issues/467 @@ -190,6 +191,10 @@ BANNER %changelog +* Thu Nov 18 2021 Remi Collet - 1.26.0-2 +- add better workaround for OpenSSL 3.0 from + https://github.com/nginx/unit/pull/598 + * Thu Nov 18 2021 Remi Collet - 1.26.0-1 - update to 1.26.0 -- cgit