Build against OpenSSL 1.1 on RHEL/CentOS 7 (for TLSv1.3 support)

This commit is contained in:
Robert Scheck 2020-10-31 01:07:42 +01:00
parent c049c77f41
commit 87f9d1ca4d
1 changed files with 12 additions and 1 deletions

View File

@ -13,7 +13,7 @@
Name: znc
Version: 1.8.2
Release: 1%{?dist}
Release: 2%{?dist}
Summary: An advanced IRC bouncer
License: ASL 2.0
@ -33,7 +33,11 @@ BuildRequires: gcc-c++
BuildRequires: gettext-devel
BuildRequires: gnupg2
BuildRequires: libicu-devel
%if 0%{?fedora} || 0%{?rhel} >= 8
BuildRequires: openssl-devel >= 0.9.8
%else
BuildRequires: openssl11-devel
%endif
BuildRequires: perl(ExtUtils::Embed)
%if 0%{?rhel} && 0%{?rhel} <= 9
@ -120,6 +124,10 @@ rm -rf "$gpghome" $key.gpg # Cleanup tmp gpg home dir and dearmored key
sed -ie 's!/usr/local/!/usr/!' man/znc.1
%build
%if 0%{?rhel} == 7
sed -e 's/"openssl"/"openssl11"/g' -i configure
%endif
%configure \
--with-module-prefix=%{_libdir}/znc \
--with-systemdsystemunitdir=%{_unitdir} \
@ -212,6 +220,9 @@ getent passwd znc >/dev/null || \
%changelog
* Sat Oct 31 2020 Robert Scheck <robert@fedoraproject.org> - 1.8.2-2
- Build against OpenSSL 1.1 on RHEL/CentOS 7 (for TLSv1.3 support)
* Thu Oct 01 2020 Nick Bebout <nb@fedoraproject.org> - 1.8.2-1
- Update to 1.8.2