!7 [sync] PR-5: fix build problem

From: @openeuler-sync-bot 
Reviewed-by: @dwl301 
Signed-off-by: @dwl301
This commit is contained in:
openeuler-ci-bot 2024-04-02 08:03:02 +00:00 committed by Gitee
commit 4f7b48fee9
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 18 additions and 2 deletions

View File

@ -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

View File

@ -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 <wangjunqi@kylinos.cn> - 0.8.0-3
- fix build problem
* Mon Jun 6 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 0.8.0-2
- Add BuildRequires : python3-rpm-generators