diff --git a/pluma.spec b/pluma.spec index feeaa2b89f29a0727dd9a4af3040a50c392f22b8..d1f2a0d17fcaaee1b63aee6a0224ba163053e2ae 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