From 70b3076eb09912b3a11f371b8c523303114fffa3 Mon Sep 17 00:00:00 2001 From: Clemens Lang Date: Mon, 12 Sep 2022 11:05:43 +0200 Subject: [PATCH] Switch to %autosetup -S gendiff Avoid manually listing the patches by switching to %autosetup. Keep the backup files by using the 'gendiff' version control system option of %autosetup available in rpm >= 4.14. --- stunnel.spec | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/stunnel.spec b/stunnel.spec index 0cf3136..6cbdca2 100644 --- a/stunnel.spec +++ b/stunnel.spec @@ -56,15 +56,7 @@ conjunction with imapd to create a TLS secure IMAP server. %prep %{gpgverify} --keyring='%{SOURCE99}' --signature='%{SOURCE1}' --data='%{SOURCE0}' -%setup -q -%patch0 -p1 -b .authpriv -%patch1 -p1 -b .systemd-service -%patch3 -p1 -b .system-ciphers -%patch4 -p1 -b .coverity -%patch5 -p1 -b .default-tls-version -%patch6 -p1 -b .curves-doc-update -%patch7 -p1 -b .fips-test -%patch8 -p1 -b .disabled-curves +%autosetup -S gendiff -p1 # Fix the stack protector flag sed -i 's/-fstack-protector/-fstack-protector-strong/' configure