回退 'Pull Request !16 : 添加gcc依赖, 解决gcc command not found.'

This commit is contained in:
small_leek 2021-06-07 20:28:50 +08:00 committed by Gitee
parent a640755429
commit cd7b422c52

View File

@ -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
BuildRequires: gcc openssl-devel lz4-devel systemd-devel lzo-devel
BuildRequires: iproute pam-devel pkcs11-helper-devel >= 1.11
Patch0001: CVE-2020-15078.patch
BuildRequires: 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,8 +36,7 @@ User guide and other related documents for %{name}.
%prep
%setup -q -n %{name}-%{version}
%patch0000 -p1
%autosetup -n %{name}-%{version} -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
@ -124,8 +123,8 @@ fi
%{_mandir}/man8/%{name}.8*
%changelog
* Web 02 Jun 2021 zhaoyao<zhaoyao32@huawei.com> - 2.4.8-5
- fixs faileds: /bin/sh: gcc: command not found.
* Tue May 25 2021 wangyue <wangyue92@huawei.com> - 2.4.8-5
- fix CVE-2020-15078
* Thu Feb 04 2021 wangyue <wangyue92@huawei.com> 2.4.8-4
- fix CVE-2020-11810