From f0f790ca0bbe826b7ae58125845d347cd8cc9319 Mon Sep 17 00:00:00 2001 From: Sergey Cherevko Date: Wed, 24 Jul 2024 17:37:14 +0300 Subject: [PATCH] Fixed for the build version of setuptools --- ...1-fixed-for-build-setuptools-version.patch | 26 +++++++++++++++++++ SPECS/python-pyzstd.spec | 7 ++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 SOURCES/0001-fixed-for-build-setuptools-version.patch diff --git a/SOURCES/0001-fixed-for-build-setuptools-version.patch b/SOURCES/0001-fixed-for-build-setuptools-version.patch new file mode 100644 index 0000000..59f04e6 --- /dev/null +++ b/SOURCES/0001-fixed-for-build-setuptools-version.patch @@ -0,0 +1,26 @@ +From 599f0bd93b8e47572ab0f8c912fd2e7c8dcab54c Mon Sep 17 00:00:00 2001 +From: Sergey Cherevko +Date: Wed, 24 Jul 2024 17:31:54 +0300 +Subject: [PATCH] fixed for build setuptools version + +--- + pyproject.toml | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 492f712..a4ef6d5 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,5 +1,5 @@ + [build-system] +-# setuptools 64.0+ support --build-option +-requires = ["setuptools>=64.0"] ++# setuptools 53.0+ support --build-option ++requires = ["setuptools>=53.0"] + backend-path = ["build_script"] +-build-backend = "pyzstd_pep517" +\ No newline at end of file ++build-backend = "pyzstd_pep517" +-- +2.43.5 + diff --git a/SPECS/python-pyzstd.spec b/SPECS/python-pyzstd.spec index 8bd0737..7901528 100644 --- a/SPECS/python-pyzstd.spec +++ b/SPECS/python-pyzstd.spec @@ -5,7 +5,7 @@ Name: python-pyzstd Version: 0.15.10 %forgemeta -Release: 1%{?dist} +Release: 1%{?dist}.inferit Summary: Python bindings to Zstandard (zstd) compression library License: BSD-3-Clause @@ -14,6 +14,8 @@ Source: %{forgesource} # pyzstd_pep517: name config_settings argument correctly (#2) # pyproject-rpm-macros' config_settings support passes it as a kwarg Patch: %{url}/pull/2.patch#/config_settings-fix.patch +# MSVSphere +Patch100: 0001-fixed-for-build-setuptools-version.patch BuildRequires: gcc BuildRequires: python3-devel @@ -68,6 +70,9 @@ sed -i -e '1{\@^#!.*@d}' src/__main__.py %changelog +* Wed Jul 24 2024 Sergey Cherevko - 0.15.10-1.inferit +- Fixed for the build version of setuptools + * Thu Jul 18 2024 Sergey Cherevko - 0.15.10-1 - Rebuilt for MSVSphere 9.4