From 81fc0e6343fe7ef17189a33f1f7d58d71cf24df0 Mon Sep 17 00:00:00 2001 From: Wangjunqi123 Date: Mon, 21 Aug 2023 19:40:15 +0800 Subject: [PATCH] fix build problum (cherry picked from commit 24949d74093fc2be5c5b05a63fa4db5d6d074817) --- modify_python_require.patch | 11 +++++++++++ python-plum-py.spec | 9 +++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 modify_python_require.patch diff --git a/modify_python_require.patch b/modify_python_require.patch new file mode 100644 index 0000000..2babe11 --- /dev/null +++ b/modify_python_require.patch @@ -0,0 +1,11 @@ +--- a/setup.cfg 2023-08-21 20:31:42.239883538 +0800 ++++ c/setup.cfg 2023-08-21 20:31:59.085884393 +0800 +@@ -3,7 +3,7 @@ keywords = pack unpack bytes structure m + platforms = any + + [options] +-python_requires = >=3.6.* ++python_requires = >=3.11.4 + setup_requires = + setuptools>=39.0.1 + zip_safe = True diff --git a/python-plum-py.spec b/python-plum-py.spec index 191ce7c..b327f14 100644 --- a/python-plum-py.spec +++ b/python-plum-py.spec @@ -3,11 +3,12 @@ Name: python-%{srcname} Version: 0.8.0 -Release: 2 +Release: 3 Summary: Pack/Unpack Memory. License: MIT URL: https://pypi.org/project/plum-py/ Source0: https://files.pythonhosted.org/packages/63/3e/8f54cedec888fe4ba74c8a934751f268c39f5a0858e58702fdf703a41229/plum-py-0.8.0.tar.gz +Patch0: modify_python_require.patch BuildArch: noarch @@ -16,6 +17,7 @@ The plum-py Python package provides classes and utility functions to transform b %package -n python3-plum-py Summary: Pack/Unpack Memory. +Requires: python3 >= 3.11.4 BuildRequires: python3-pytest BuildRequires: python3-rpm-generators @@ -23,7 +25,7 @@ BuildRequires: python3-rpm-generators The plum-py Python package provides classes and utility functions to transform byte sequences into Python objects and back. %prep -%autosetup -n plum-py-%{version} +%autosetup -n plum-py-%{version} -p1 %build %py3_build @@ -39,6 +41,9 @@ The plum-py Python package provides classes and utility functions to transform b %{python3_sitelib}/* %changelog +* Mon Aug 21 2023 wangjunqi - 0.8.0-3 +- fix build problem + * Mon Jun 6 2022 lin zhang - 0.8.0-2 - Add BuildRequires : python3-rpm-generators