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:
Petr Menšík 2021-12-01 19:17:24 +01:00
parent bdce0b1c00
commit 6d322a72e4

View File

@ -94,8 +94,8 @@ Source50: https://gitlab.isc.org/isc-projects/bind9/-/raw/main/doc/arm/isc-logo.
Patch10: bind-9.5-PIE.patch
Patch16: bind-9.16-redhat_doc.patch
# https://gitlab.isc.org/isc-projects/bind9/-/merge_requests/5601
Patch106:bind93-rh490837.patch
Patch157:bind-9.11-fips-tests.patch
Patch21: bind93-rh490837.patch
Patch22: bind-9.11-fips-tests.patch
Requires(post): systemd
Requires(preun): systemd
@ -392,16 +392,7 @@ in HTML and PDF format.
# RHEL does not yet support this verification
%{gpgverify} --keyring='%{SOURCE4}' --signature='%{SOURCE2}' --data='%{SOURCE0}'
%endif
%setup -qn %{upname}-%{version}
# Common patches
%patch10 -p1 -b .PIE
%patch16 -p1 -b .redhat_doc
%patch106 -p1 -b .rh490837
%patch112 -p1 -b .rh645544
%patch157 -p1 -b .fips-tests
#%patch133 -p1 -b .rh640538
%autosetup -n %{upname}-%{version} -p1
# Sparc and s390 arches need to use -fPIE
%ifarch sparcv9 sparc64 s390 s390x