use %patch -P N instead of deprecated %patchN

This commit is contained in:
Zuzana Miklankova 2023-12-11 15:52:31 +01:00
parent 8390776d61
commit d2fec8bacd
No known key found for this signature in database
GPG Key ID: 46A18EF4D17103A0

View File

@ -87,13 +87,13 @@ This package contains the contributed examples for %{name}.
%prep
%setup -q
cp %{SOURCE1} .
%patch0 -p1 -b .build
%patch1 -p1 -b .loadlib
%patch2 -p1 -b .tests-headless
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch -P 0 -p1 -b .build
%patch -P 1 -p1 -b .loadlib
%patch -P 2 -p1 -b .tests-headless
%patch -P 3 -p1
%patch -P 4 -p1
%patch -P 5 -p1
%patch -P 6 -p1
chmod -Rf a+rX,u+w,g-w,o-w .
sed -i 's|@LIBDIR@|%{_libdir}/%{name}|' src/com/sun/jna/Native.java