Use %autosetup instead of deprecated %patchX macros

and reindent patches

Fixes:

RPM build warnings:
    %patchN is deprecated (3 usages found), use %patch N (or %patch -P N)
This commit is contained in:
Petr Lautrbach 2023-05-30 11:53:33 +02:00
parent 895b14b241
commit 6d9e759e76

View File

@ -33,10 +33,7 @@ Requires: pkgconfig
Static libraries and header files from %{name}
%prep
%setup -q
%patch0 -p1 -b .add-needed
%patch1 -p1 -b .libpng
%patch2 -p1
%autosetup -p 1
%build
autoreconf -v --install