fix build warnings:patchN is deprecated, use patch N (or %patch -P N )

Signed-off-by: Chen Hao <dev11201@linx-info.com>
(cherry picked from commit 6da8d15c22be1e7ec79c8f0d548162ecc4448507)
This commit is contained in:
Chen Hao 2024-12-13 19:25:49 +00:00 committed by openeuler-sync-bot
parent 0346491428
commit 9ac6474aca

View File

@ -1,6 +1,6 @@
Name: astyle
Version: 3.1
Release: 1
Release: 2
Summary: Source code formatter for C-like programming languages
%global majorversion 3
@ -34,8 +34,8 @@ This package contains the shared library.
%prep
%setup -q -n %{name}
%patch1 -p1
%patch2 -p1
%patch 1 -p1
%patch 2 -p1
find . -type f -exec chmod a-x {} \;
@ -73,5 +73,8 @@ popd
%{_includedir}/astyle.h
%changelog
* Fri Dec 13 2024 chenhao <dev11201@linx-info.com> - 3.1-2
- Fix %patchN is deprecated warning
* Wed Jul 20 2022 misaka00251 <misaka00251@misakanet.cn> - 3.1-1
- Init package