From 028245ff5b9ba31cdffdc283a8451c2c61f799ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=81=AC?= Date: Tue, 17 Dec 2024 14:44:47 +0800 Subject: [PATCH] fix build warnings: %patchN is deprecated, use %patch N (or %patch -P N) --- jython.spec | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/jython.spec b/jython.spec index 5dde271..1d3a450 100644 --- a/jython.spec +++ b/jython.spec @@ -2,7 +2,7 @@ %global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g') Name: jython Version: 2.7.1 -Release: 2 +Release: 3 Summary: A Java implementation of the Python language License: ASL 1.1 and BSD URL: http://www.jython.org/ @@ -63,18 +63,18 @@ Demonstrations and samples for %{name}. %prep %setup -q -n jython-%{version} -%patch2 -R -p1 -%patch0 -%patch1 -%patch3 -%patch4 -p1 -%patch5 +%patch -P 2 -R -p1 +%patch -P 0 +%patch -P 1 +%patch -P 3 +%patch -P 4 -p1 +%patch -P 5 find . -type f -a -name *.jar -delete find . -type f -a -name *.exe -delete find . -type f -a -name *.dll -delete %if %{with rpmwheels} -%patch189 -p1 +%patch -P 189 -p1 rm Lib/ensurepip/_bundled/*.whl rmdir Lib/ensurepip/_bundled %endif @@ -140,6 +140,9 @@ ln -s %{_datadir}/%{name}/bin/jython $RPM_BUILD_ROOT%{_bindir} %{_datadir}/%{name}/Demo %changelog +* Tue Dec 17 2024 litian - 2.7.1-3 +- fix %patchN is deprecated warning + * Mon Nov 13 2023 wangkai <13474090681@163.com> - 2.7.1-2 - Fix build failure caused by guava upgrade -- Gitee