diff --git a/boto3-1.40.70.tar.gz b/boto3-1.40.70.tar.gz deleted file mode 100644 index 102824c3589ec8ff0d605584614623cdbf742613..0000000000000000000000000000000000000000 Binary files a/boto3-1.40.70.tar.gz and /dev/null differ diff --git a/boto3-1.41.5.tar.gz b/boto3-1.41.5.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..a5afa95c1abbe1cd114ae1ed11d81499145363f4 Binary files /dev/null and b/boto3-1.41.5.tar.gz differ diff --git a/python-boto3.spec b/python-boto3.spec index cdcaf37f1ccfb69ce69cad879fc3c40fa23f3fdb..a4f98d3d4ddc380a9fa9af169b51da3b69b08f6e 100644 --- a/python-boto3.spec +++ b/python-boto3.spec @@ -1,12 +1,23 @@ %global _empty_manifest_terminate_build 0 +%undefine _python_dist_allow_version_zero Name: python-boto3 -Version: 1.40.70 +Version: 1.41.5 Release: 1 Summary: The AWS SDK for Python License: Apache-2.0 URL: https://github.com/boto/boto3 -Source0: https://files.pythonhosted.org/packages/37/12/d5ac34e0536e1914dde28245f014a635056dde0427f6efa09f104d7999f4/boto3-1.40.70.tar.gz +Source0: https://files.pythonhosted.org/packages/source/b/boto3/boto3-%{version}.tar.gz BuildArch: noarch +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-build +BuildRequires: python3-hatchling +BuildRequires: python3-devel +BuildRequires: python3-s3transfer +BuildRequires: python3-jmespath +BuildRequires: python3-botocore +BuildRequires: python3-setuptools + %description Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for Python, which allows Python developers to @@ -16,11 +27,6 @@ and Amazon EC2. %package -n python3-boto3 Summary: The AWS SDK for Python Provides: python-boto3 = %{version}-%{release} -BuildRequires: python3-devel -BuildRequires: python3-s3transfer -BuildRequires: python3-jmespath -BuildRequires: python3-botocore -BuildRequires: python3-setuptools %description -n python3-boto3 Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for Python, which allows Python developers to @@ -39,11 +45,29 @@ and Amazon EC2. %prep %autosetup -n boto3-%{version} +# Fix setuptools_scm version issue +if [ -f pyproject.toml ]; then + sed -i '/^version *=/d' pyproject.toml + sed -i '/^\[project\]/a version = "%{version}"' pyproject.toml + sed -i '/dynamic *= *\[.*version.*\]/d' pyproject.toml + if grep -q '^\[tool\.setuptools_scm\]' pyproject.toml; then + sed -i '/^\[tool\.setuptools_scm\]/,/^\[/ {/^write_to *=/d}' pyproject.toml + sed -i '/^\[tool\.setuptools_scm\]/a fallback_version = "%{version}"' pyproject.toml + fi +fi + %build -%py3_build +export SETUPTOOLS_SCM_PRETEND_VERSION="%{version}" +%pyproject_build %install -%py3_install +export PYTHONDONTWRITEBYTECODE=1 + +# Clean __pycache__ directories and .pyc/.pyo files +find %{buildroot} -name '*.py[co]' -delete +find %{buildroot} -type d -name '__pycache__' -exec rm -rf {} + 2>/dev/null || true +export SETUPTOOLS_SCM_PRETEND_VERSION="%{version}" +%pyproject_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi @@ -77,6 +101,9 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Thu Nov 27 2025 zhangzeyang0718 - 1.41.5-1 +- Update package to version 1.41.5 + * Mon Nov 24 2025 wanggang - 1.40.70-1 - Update package to version 1.40.70 - Private Certificate Authority service now supports ML-DSA key algorithms.