From 13acedff5849c9147b4f8f500300ce1c5a102d4ef1711202c8616363db951eca Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 13 Sep 2022 08:53:30 +0000 Subject: [PATCH] apply disable-tls13-to-support-older-openssl-versions.patch conditionally on SLE-15 only OBS-URL: https://build.opensuse.org/package/show/network/vsftpd?expand=0&rev=165 --- vsftpd.spec | 49 +++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 47 insertions(+), 2 deletions(-) diff --git a/vsftpd.spec b/vsftpd.spec index 3d6a02e..a1dba05 100644 --- a/vsftpd.spec +++ b/vsftpd.spec @@ -96,13 +96,13 @@ Patch41: revert-undocumented-config-file-format-changes.patch Patch42: use-system-wide-tls-cipher-policy.patch Patch43: vsftpd-allow-dev-log-socket.patch Patch44: vsftpd-enable-sendto-for-prelogin-syslog.patch +Patch45: disable-tls13-to-support-older-openssl-versions.patch BuildRequires: libcap-devel %if 0%{?suse_version} == 1315 BuildRequires: libopenssl-1_1-devel >= 1.1.1 %else %if 0%{?sle_version} == 150000 BuildRequires: libopenssl-1_1-devel >= 1.1.0 -Patch99: disable-tls13-to-support-older-openssl-versions.patch %else BuildRequires: libopenssl-devel >= 1.1.1 %endif @@ -138,7 +138,52 @@ vsftpd was always faster, supporting over twice as many users in some tests. %prep -%autosetup -p1 +%setup -q +%patch1 -p1 +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 +%patch6 -p1 +%patch7 -p1 +%patch8 -p1 +%patch9 -p1 +%patch10 -p1 +%patch11 -p1 +%patch13 -p1 +%patch14 -p1 +%patch15 -p1 +%patch16 -p1 +%patch17 -p1 +%patch18 -p1 +%patch19 -p1 +%patch20 -p1 +%patch21 -p1 +%patch22 -p1 +%patch23 -p1 +%patch24 -p1 +%patch25 -p1 +%patch26 -p1 +%patch27 -p1 +%patch28 -p1 +%patch29 -p1 +%patch30 -p1 +%patch31 -p1 +%patch32 -p1 +%patch33 -p1 +%patch35 -p1 +%patch36 -p1 +%patch37 -p1 +%patch38 -p1 +%patch39 -p1 +%patch40 -p1 +%patch41 -p1 +%patch42 -p1 +%patch43 -p1 +%patch44 -p1 + +%if 0%{?sle_version} == 150000 +%patch45 -p1 +%endif %build %define seccomp_opts -D_GNU_SOURCE -DUSE_SECCOMP