use %patch -P to quieten rpmbuild

This commit is contained in:
Jens Petersen 2023-05-10 16:36:55 +08:00
parent 80e2008e81
commit 17c6346a25
1 changed files with 13 additions and 13 deletions

View File

@ -437,37 +437,37 @@ Installing this package causes %{name}-*-prof packages corresponding to
%endif
%setup -q -n ghc-%{version} %{?with_testsuite:-b1}
%patch1 -p1 -b .orig
%patch3 -p1 -b .orig
%patch -P1 -p1 -b .orig
%patch -P3 -p1 -b .orig
%patch2 -p1 -b .orig
%patch10 -p1 -b .orig
%patch11 -p1 -b .orig11
%patch -P2 -p1 -b .orig
%patch -P10 -p1 -b .orig
%patch -P11 -p1 -b .orig11
rm libffi-tarballs/libffi-*.tar.gz
%ifarch armv7hl
%patch12 -p1 -b .orig
%patch -P12 -p1 -b .orig
%endif
# remove s390x after complete switching to llvm
%ifarch %{ghc_unregisterized_arches} s390x
%patch15 -p1 -b .orig
%patch16 -p1 -b .orig
%patch -P15 -p1 -b .orig
%patch -P16 -p1 -b .orig
%endif
# bigendian
%ifarch s390x
%patch18 -p1 -b .orig
%patch -P18 -p1 -b .orig
%endif
# ppc64le
%patch20 -p1 -b .orig
%patch -P20 -p1 -b .orig
# debian
%patch24 -p1 -b .orig
%patch26 -p1 -b .orig
%patch27 -p1 -b .orig
%patch -P24 -p1 -b .orig
%patch -P26 -p1 -b .orig
%patch -P27 -p1 -b .orig
%if %{with haddock} && %{without hadrian}
%global gen_contents_index gen_contents_index.orig