Switch to %autosetup
Renumber high numbered patches to two digits patch. It does not really matter for autosetup. Simplify applying of new patches.
This commit is contained in:
parent
b0bc4995fb
commit
24d1ecd259
44
bind.spec
44
bind.spec
@ -88,23 +88,24 @@ Source49: named-chroot.files
|
|||||||
# Common patches
|
# Common patches
|
||||||
Patch10: bind-9.5-PIE.patch
|
Patch10: bind-9.5-PIE.patch
|
||||||
Patch16: bind-9.16-redhat_doc.patch
|
Patch16: bind-9.16-redhat_doc.patch
|
||||||
Patch72: bind-9.5-dlz-64bit.patch
|
Patch20: bind-9.5-dlz-64bit.patch
|
||||||
Patch106:bind93-rh490837.patch
|
# https://gitlab.isc.org/isc-projects/bind9/-/merge_requests/5601
|
||||||
Patch112:bind97-rh645544.patch
|
Patch21: bind93-rh490837.patch
|
||||||
Patch130:bind-9.9.1-P2-dlz-libdb.patch
|
Patch22: bind-9.11-fips-tests.patch
|
||||||
|
Patch23: bind97-rh645544.patch
|
||||||
|
Patch24: bind-9.9.1-P2-dlz-libdb.patch
|
||||||
# Make PKCS11 used only for pkcs11 parts
|
# Make PKCS11 used only for pkcs11 parts
|
||||||
Patch135:bind-9.14-config-pkcs11.patch
|
Patch70: bind-9.14-config-pkcs11.patch
|
||||||
# Fedora specific patch to distribute native-pkcs#11 functionality
|
# Fedora specific patch to distribute native-pkcs#11 functionality
|
||||||
Patch136:bind-9.10-dist-native-pkcs11.patch
|
Patch71: bind-9.10-dist-native-pkcs11.patch
|
||||||
# Do not use isc-pkcs11.
|
# Do not use isc-pkcs11.
|
||||||
Patch149:bind-9.11-kyua-pkcs11.patch
|
Patch72: bind-9.11-kyua-pkcs11.patch
|
||||||
|
|
||||||
Patch157:bind-9.11-fips-tests.patch
|
|
||||||
# https://gitlab.isc.org/isc-projects/bind9/-/merge_requests/2689
|
# https://gitlab.isc.org/isc-projects/bind9/-/merge_requests/2689
|
||||||
Patch164:bind-9.11-rh1666814.patch
|
Patch25:bind-9.11-rh1666814.patch
|
||||||
# https://gitlab.isc.org/isc-projects/bind9/-/merge_requests/5795
|
# https://gitlab.isc.org/isc-projects/bind9/-/merge_requests/5795
|
||||||
Patch167:bind-9.16-hp-workers-rh2048235.patch
|
Patch26:bind-9.16-hp-workers-rh2048235.patch
|
||||||
Patch168:bind-9.16-hp-workers-rh2048235-dyndb.patch
|
Patch27:bind-9.16-hp-workers-rh2048235-dyndb.patch
|
||||||
|
|
||||||
%{?systemd_ordering}
|
%{?systemd_ordering}
|
||||||
Requires: coreutils
|
Requires: coreutils
|
||||||
@ -392,28 +393,15 @@ in HTML and PDF format.
|
|||||||
# RHEL does not yet support this verification
|
# RHEL does not yet support this verification
|
||||||
%{gpgverify} --keyring='%{SOURCE4}' --signature='%{SOURCE2}' --data='%{SOURCE0}'
|
%{gpgverify} --keyring='%{SOURCE4}' --signature='%{SOURCE2}' --data='%{SOURCE0}'
|
||||||
%endif
|
%endif
|
||||||
%setup -q
|
%autosetup -n %{name}-%{version} -p1 -N
|
||||||
|
%autopatch -p1 -M 69
|
||||||
# Common patches
|
|
||||||
%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
|
|
||||||
%patch157 -p1 -b .fips-tests
|
|
||||||
%patch164 -p1 -b .rh1666814
|
|
||||||
%patch167 -p1 -b .rh2048235
|
|
||||||
%patch168 -p1 -b .rh2048235-dyndb
|
|
||||||
|
|
||||||
%if %{with PKCS11}
|
%if %{with PKCS11}
|
||||||
%patch135 -p1 -b .config-pkcs11
|
%autopatch -m 70 -M 70
|
||||||
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}
|
||||||
%patch136 -p1 -b .dist_pkcs11
|
%autopatch -m 71
|
||||||
%patch149 -p1 -b .kyua-pkcs11
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Sparc and s390 arches need to use -fPIE
|
# Sparc and s390 arches need to use -fPIE
|
||||||
|
Loading…
Reference in New Issue
Block a user