From 684e4b0d0a94d487f24108cb59a952eda5a67f5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= Date: Tue, 12 Jan 2021 20:54:56 +0100 Subject: [PATCH] Revert "Use autosetup/autopatch, reorder few patches" This reverts commit cc152b028f6dddc9e0e77827d295510ebe1270ce. EPEL and RHEL 8 do not yet support %autopatch -M X. I want check the compatibility with them, keep it legacy way until they are supported in RHEL 8. --- bind.spec | 57 +++++++++++++++++++++++++++++++++---------------------- 1 file changed, 34 insertions(+), 23 deletions(-) diff --git a/bind.spec b/bind.spec index 5bf8c9f..ccdded9 100644 --- a/bind.spec +++ b/bind.spec @@ -99,26 +99,25 @@ Source48: setup-named-softhsm.sh Source49: named-chroot.files # Common patches -Patch01: bind-9.5-PIE.patch -Patch02: bind-9.16-redhat_doc.patch -Patch03: bind-9.5-dlz-64bit.patch -Patch06: bind93-rh490837.patch -Patch12: bind97-rh645544.patch -Patch30: bind-9.9.1-P2-dlz-libdb.patch -# https://gitlab.isc.org/isc-projects/bind9/-/merge_requests/2688 -Patch33: bind99-rh640538.patch -Patch40: bind-9.11-rh1410433.patch -Patch57: bind-9.11-fips-tests.patch -Patch64: bind-9.11-rh1666814.patch -Patch70: bind-9.11-feature-test-named.patch -Patch71: bind-9.11-tests-variants.patch - +Patch10: bind-9.5-PIE.patch +Patch16: bind-9.16-redhat_doc.patch +Patch72: bind-9.5-dlz-64bit.patch +Patch106:bind93-rh490837.patch +Patch112:bind97-rh645544.patch +Patch130:bind-9.9.1-P2-dlz-libdb.patch +Patch133:bind99-rh640538.patch # Make PKCS11 used only for pkcs11 parts -Patch300: bind-9.14-config-pkcs11.patch +Patch135:bind-9.14-config-pkcs11.patch # Fedora specific patch to distribute native-pkcs#11 functionality -Patch301: bind-9.10-dist-native-pkcs11.patch +Patch136:bind-9.10-dist-native-pkcs11.patch # Do not use isc-pkcs11. -Patch302: bind-9.11-kyua-pkcs11.patch +Patch149:bind-9.11-kyua-pkcs11.patch + +Patch140:bind-9.11-rh1410433.patch +Patch157:bind-9.11-fips-tests.patch +Patch164:bind-9.11-rh1666814.patch +Patch170:bind-9.11-feature-test-named.patch +Patch171:bind-9.11-tests-variants.patch Requires(post): systemd Requires(preun): systemd @@ -413,23 +412,36 @@ in HTML and PDF format. %endif %prep -%if 0%{?fedora} +%if 0%{?gpgverify:1} +# RHEL does not yet support this verification %{gpgverify} --keyring='%{SOURCE4}' --signature='%{SOURCE2}' --data='%{SOURCE0}' %endif -%autosetup -n %{name}-%{BINDVERSION} -N +%setup -q -n %{name}-%{BINDVERSION} # Common patches -%autopatch -M 299 -p1 +%patch10 -p1 -b .PIE +%patch16 -p1 -b .redhat_doc +%patch72 -p1 -b .64bit +%patch106 -p1 -b .rh490837 +%patch112 -p1 -b .rh645544 +%patch130 -p1 -b .libdb +%patch140 -p1 -b .rh1410433 +%patch157 -p1 -b .fips-tests +%patch164 -p1 -b .rh1666814 +%patch170 -p1 -b .featuretest-named +%patch171 -p1 -b .test-variant %if %{with PKCS11} -%patch300 -p1 -b .config-pkcs11 +%patch135 -p1 -b .config-pkcs11 cp -r bin/named{,-pkcs11} cp -r bin/dnssec{,-pkcs11} cp -r lib/dns{,-pkcs11} cp -r lib/ns{,-pkcs11} -%autopatch -m 301 -M 309 -p1 +%patch136 -p1 -b .dist_pkcs11 +%patch149 -p1 -b .kyua-pkcs11 %endif +%patch133 -p1 -b .rh640538 # Sparc and s390 arches need to use -fPIE %ifarch sparcv9 sparc64 s390 s390x @@ -1145,7 +1157,6 @@ fi; * Wed Jan 06 2021 Petr Menšík - 32:9.16.10-2 - Use make macros - https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro -- Use autosetup/autopatch macros * Tue Jan 05 2021 Petr Menšík - 32:9.16.10-1 - Update to 9.16.10