From d361cfa0d89ee07da095519cb0f0b020cd0d96aa Mon Sep 17 00:00:00 2001 From: yuanxing Date: Thu, 24 Apr 2025 11:35:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0python3=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=88=A4=E6=96=AD=EF=BC=8C=E7=A1=AE=E5=AE=9A=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0python3-setuptools=E7=BC=96=E8=AF=91=E4=BE=9D?= =?UTF-8?q?=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pluma.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pluma.spec b/pluma.spec index feeaa2b..d1f2a0d 100644 --- a/pluma.spec +++ b/pluma.spec @@ -1,7 +1,9 @@ +%define python3_version %(python3 -c "v=__import__('sys').version_info; print(v.major*1000000 + v.minor*1000 + v.micro)") + Summary: Text editor for the MATE desktop Name: pluma Version: 1.28.0 -Release: 1 +Release: 2 License: GPLv2+ and LGPLv2+ URL: http://mate-desktop.org @@ -24,7 +26,9 @@ BuildRequires: mate-common BuildRequires: mate-desktop-devel BuildRequires: python3-gobject-base BuildRequires: python3-devel -BuildRequires: (python3-setuptools if python3-devel >= 3.12) +%if 0%{?python3_version} >= 3012000 + BuildRequires: python3-setuptools +%endif Requires: %{name}-data = %{version}-%{release} # needed to get a gsettings schema, #959607 @@ -122,6 +126,9 @@ find %{buildroot} -name '*.a' -exec rm -f {} ';' %changelog +* Thu Apr 24 2025 yuanxing - 1.28.0-2 + KYOS-B: add python3 version judgment in BuildRequires + * Thu Mar 20 2025 yuanxing - 1.28.0-1 - Initial build - KYOS-F: add chinese translation -- Gitee