diff --git a/openvpn.spec b/openvpn.spec index d7f7265b572838d6dc292c0064308967d91c1510..437f814188179aac450676643a90be19ceb08141 100644 --- a/openvpn.spec +++ b/openvpn.spec @@ -6,9 +6,9 @@ License: GPLv2 and OpenSSL and SSLeay URL: https://community.openvpn.net/openvpn Source0: https://swupdate.openvpn.org/community/releases/openvpn-%{version}.tar.gz Patch0000: CVE-2020-11810.patch -Patch0001: CVE-2020-15078.patch -BuildRequires: openssl-devel lz4-devel systemd-devel lzo-devel -BuildRequires: iproute pam-devel pkcs11-helper-devel >= 1.11 + +BuildRequires: gcc openssl-devel lz4-devel systemd-devel lzo-devel +BuildRequires: iproute pam-devel pkcs11-helper-devel >= 1.11 Requires: iproute Requires(pre): /usr/sbin/useradd @@ -36,7 +36,8 @@ User guide and other related documents for %{name}. %prep -%autosetup -n %{name}-%{version} -p1 +%setup -q -n %{name}-%{version} +%patch0000 -p1 %build %configure --enable-x509-alt-username --enable-iproute2 --with-crypto-library=openssl --enable-pkcs11 --enable-selinux --enable-systemd SYSTEMD_UNIT_DIR=%{_unitdir} TMPFILES_DIR=%{_tmpfilesdir} IPROUTE=/sbin/ip @@ -123,8 +124,8 @@ fi %{_mandir}/man8/%{name}.8* %changelog -* Tue May 25 2021 wangyue - 2.4.8-5 -- fix CVE-2020-15078 +* Web 02 Jun 2021 zhaoyao - 2.4.8-5 +- fixs faileds: /bin/sh: gcc: command not found. * Thu Feb 04 2021 wangyue 2.4.8-4 - fix CVE-2020-11810