Revert "Use autosetup/autopatch, reorder few patches"
This reverts commit cc152b028f
.
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.
This commit is contained in:
parent
cc152b028f
commit
684e4b0d0a
57
bind.spec
57
bind.spec
@ -99,26 +99,25 @@ Source48: setup-named-softhsm.sh
|
|||||||
Source49: named-chroot.files
|
Source49: named-chroot.files
|
||||||
|
|
||||||
# Common patches
|
# Common patches
|
||||||
Patch01: bind-9.5-PIE.patch
|
Patch10: bind-9.5-PIE.patch
|
||||||
Patch02: bind-9.16-redhat_doc.patch
|
Patch16: bind-9.16-redhat_doc.patch
|
||||||
Patch03: bind-9.5-dlz-64bit.patch
|
Patch72: bind-9.5-dlz-64bit.patch
|
||||||
Patch06: bind93-rh490837.patch
|
Patch106:bind93-rh490837.patch
|
||||||
Patch12: bind97-rh645544.patch
|
Patch112:bind97-rh645544.patch
|
||||||
Patch30: bind-9.9.1-P2-dlz-libdb.patch
|
Patch130:bind-9.9.1-P2-dlz-libdb.patch
|
||||||
# https://gitlab.isc.org/isc-projects/bind9/-/merge_requests/2688
|
Patch133:bind99-rh640538.patch
|
||||||
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
|
|
||||||
|
|
||||||
# Make PKCS11 used only for pkcs11 parts
|
# 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
|
# 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.
|
# 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(post): systemd
|
||||||
Requires(preun): systemd
|
Requires(preun): systemd
|
||||||
@ -413,23 +412,36 @@ in HTML and PDF format.
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%if 0%{?fedora}
|
%if 0%{?gpgverify:1}
|
||||||
|
# RHEL does not yet support this verification
|
||||||
%{gpgverify} --keyring='%{SOURCE4}' --signature='%{SOURCE2}' --data='%{SOURCE0}'
|
%{gpgverify} --keyring='%{SOURCE4}' --signature='%{SOURCE2}' --data='%{SOURCE0}'
|
||||||
%endif
|
%endif
|
||||||
%autosetup -n %{name}-%{BINDVERSION} -N
|
%setup -q -n %{name}-%{BINDVERSION}
|
||||||
|
|
||||||
# Common patches
|
# 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}
|
%if %{with PKCS11}
|
||||||
%patch300 -p1 -b .config-pkcs11
|
%patch135 -p1 -b .config-pkcs11
|
||||||
cp -r bin/named{,-pkcs11}
|
cp -r bin/named{,-pkcs11}
|
||||||
cp -r bin/dnssec{,-pkcs11}
|
cp -r bin/dnssec{,-pkcs11}
|
||||||
cp -r lib/dns{,-pkcs11}
|
cp -r lib/dns{,-pkcs11}
|
||||||
cp -r lib/ns{,-pkcs11}
|
cp -r lib/ns{,-pkcs11}
|
||||||
%autopatch -m 301 -M 309 -p1
|
%patch136 -p1 -b .dist_pkcs11
|
||||||
|
%patch149 -p1 -b .kyua-pkcs11
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%patch133 -p1 -b .rh640538
|
||||||
|
|
||||||
# Sparc and s390 arches need to use -fPIE
|
# Sparc and s390 arches need to use -fPIE
|
||||||
%ifarch sparcv9 sparc64 s390 s390x
|
%ifarch sparcv9 sparc64 s390 s390x
|
||||||
@ -1145,7 +1157,6 @@ fi;
|
|||||||
* Wed Jan 06 2021 Petr Menšík <pemensik@redhat.com> - 32:9.16.10-2
|
* Wed Jan 06 2021 Petr Menšík <pemensik@redhat.com> - 32:9.16.10-2
|
||||||
- Use make macros
|
- Use make macros
|
||||||
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
|
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
|
||||||
- Use autosetup/autopatch macros
|
|
||||||
|
|
||||||
* Tue Jan 05 2021 Petr Menšík <pemensik@redhat.com> - 32:9.16.10-1
|
* Tue Jan 05 2021 Petr Menšík <pemensik@redhat.com> - 32:9.16.10-1
|
||||||
- Update to 9.16.10
|
- Update to 9.16.10
|
||||||
|
Loading…
Reference in New Issue
Block a user