import CS python-awscrt-0.23.8-1.el10
This commit is contained in:
parent
897f921d82
commit
e7ed64a85f
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
SOURCES/awscrt-0.20.2.tar.gz
|
||||
awscrt-0.23.8.tar.gz
|
||||
|
||||
@ -1 +0,0 @@
|
||||
3b76a63f106d4ddb6a27198f935405aa82c43585 SOURCES/awscrt-0.20.2.tar.gz
|
||||
1750
SOURCES/pkcs11.h
1750
SOURCES/pkcs11.h
File diff suppressed because it is too large
Load Diff
@ -1,123 +0,0 @@
|
||||
%global desc %{expand:
|
||||
Python bindings for the AWS Common Runtime}
|
||||
|
||||
|
||||
Name: python-awscrt
|
||||
Version: 0.20.2
|
||||
Release: 3%{dist}
|
||||
|
||||
Summary: Python bindings for the AWS Common Runtime
|
||||
# All files are licensed under Apache-2.0, except:
|
||||
# - crt/aws-c-common/include/aws/common/external/cJSON.h is MIT
|
||||
# - crt/aws-c-common/source/external/cJSON.c is MIT
|
||||
# - crt/s2n/pq-crypto/kyber_r3/KeccakP-brg_endian_avx2.h is BSD-3-Clause
|
||||
License: Apache-2.0 AND MIT AND BSD-3-Clause
|
||||
URL: https://github.com/awslabs/aws-crt-python
|
||||
|
||||
Source0: %{pypi_source awscrt}
|
||||
|
||||
# Get an open source version of the pkcs11 header file from Simo's repository.
|
||||
# https://github.com/latchset/pkcs11-headers
|
||||
Source1: https://raw.githubusercontent.com/latchset/pkcs11-headers/main/public-domain/2.40/pkcs11.h
|
||||
|
||||
# one test requires internet connection, skip it
|
||||
Patch0: skip-test-requiring-network.patch
|
||||
|
||||
BuildRequires: python%{python3_pkgversion}-devel
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: cmake
|
||||
BuildRequires: openssl-devel
|
||||
|
||||
BuildRequires: python%{python3_pkgversion}-websockets
|
||||
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=2180988
|
||||
ExcludeArch: s390x
|
||||
|
||||
|
||||
%description
|
||||
%{desc}
|
||||
|
||||
|
||||
%package -n python%{python3_pkgversion}-awscrt
|
||||
Summary: %{summary}
|
||||
|
||||
|
||||
%description -n python%{python3_pkgversion}-awscrt
|
||||
%{desc}
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n awscrt-%{version}
|
||||
|
||||
# Bring in the pkcs11 header file from Simo's repository.
|
||||
rm -fv crt/aws-c-io/source/pkcs11/v2.40/*
|
||||
cp %{SOURCE1} crt/aws-c-io/source/pkcs11/v2.40/
|
||||
|
||||
# Remove the third party license that goes along with
|
||||
# the removed pkcs11.h header file.
|
||||
rm -rf crt/aws-c-io/THIRD-PARTY-LICENSES.txt
|
||||
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires
|
||||
|
||||
|
||||
%build
|
||||
%ifarch %{ix86}
|
||||
# disable SSE2 instructions to prevent a crash in aws-c-common thread handling
|
||||
# probably caused by a compiler bug
|
||||
export CFLAGS="%{optflags} -mno-sse2"
|
||||
%endif
|
||||
export AWS_CRT_BUILD_USE_SYSTEM_LIBCRYPTO=1
|
||||
%pyproject_wheel
|
||||
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%pyproject_save_files _awscrt awscrt
|
||||
|
||||
|
||||
%check
|
||||
PYTHONPATH="%{buildroot}%{python3_sitearch}:%{buildroot}%{python3_sitelib}" %{python3} -m unittest
|
||||
|
||||
|
||||
%files -n python%{python3_pkgversion}-awscrt -f %{pyproject_files}
|
||||
%doc README.md
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Feb 13 2024 Major Hayden <major@redhat.com> - 0.20.2-3
|
||||
- Remove the third party license file from excluded pkcs11.h
|
||||
|
||||
* Mon Feb 12 2024 Major Hayden <major@redhat.com> - 0.20.2-2
|
||||
- Replacing upstream's pkcs11.h with Simo's public domain version.
|
||||
|
||||
* Tue Jan 02 2024 Packit <hello@packit.dev> - 0.20.2-1
|
||||
- [packit] 0.20.2 upstream release
|
||||
- Resolves rhbz#2254450
|
||||
|
||||
* Wed Dec 06 2023 Nikola Forró <nforro@redhat.com> - 0.19.19-2
|
||||
- Add Packit config
|
||||
|
||||
* Thu Nov 30 2023 Packit <hello@packit.dev> - 0.19.19-1
|
||||
- [packit] 0.19.19 upstream release
|
||||
- Resolves rhbz#2250726
|
||||
|
||||
* Fri Nov 17 2023 Packit <hello@packit.dev> - 0.19.13-1
|
||||
- [packit] 0.19.13 upstream release
|
||||
- Resolves rhbz#2247105
|
||||
|
||||
* Wed Oct 25 2023 Packit <hello@packit.dev> - 0.19.6-1
|
||||
- [packit] 0.19.6 upstream release
|
||||
- Resolves rhbz#2211521 Upstream tag: v0.19.6 Upstream commit: b83949d0
|
||||
|
||||
* Mon Oct 16 2023 Packit <hello@packit.dev> - 0.19.3-1
|
||||
- [packit] 0.19.3 upstream release
|
||||
|
||||
* Mon Oct 02 2023 Packit <hello@packit.dev> - 0.19.2-1
|
||||
- [packit] 0.19.2 upstream release
|
||||
|
||||
* Fri Aug 25 2023 Nikola Forró <nforro@redhat.com> - 0.18.0-1
|
||||
- Initial import for EPEL 9
|
||||
185
python-awscrt.spec
Normal file
185
python-awscrt.spec
Normal file
@ -0,0 +1,185 @@
|
||||
## START: Set by rpmautospec
|
||||
## (rpmautospec version 0.6.5)
|
||||
## RPMAUTOSPEC: autorelease, autochangelog
|
||||
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
||||
release_number = 1;
|
||||
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
||||
print(release_number + base_release_number - 1);
|
||||
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
||||
## END: Set by rpmautospec
|
||||
|
||||
%global desc %{expand:
|
||||
Python bindings for the AWS Common Runtime}
|
||||
|
||||
|
||||
Name: python-awscrt
|
||||
Version: 0.23.8
|
||||
Release: %autorelease
|
||||
|
||||
Summary: Python bindings for the AWS Common Runtime
|
||||
# All files are licensed under Apache-2.0, except:
|
||||
# - crt/aws-c-common/include/aws/common/external/cJSON.h is MIT
|
||||
# - crt/aws-c-common/source/external/cJSON.c is MIT
|
||||
# - crt/s2n/pq-crypto/kyber_r3/KeccakP-brg_endian_avx2.h is BSD-3-Clause
|
||||
License: Apache-2.0 AND MIT AND BSD-3-Clause
|
||||
URL: https://github.com/awslabs/aws-crt-python
|
||||
|
||||
Source0: %{pypi_source awscrt}
|
||||
|
||||
# one test requires internet connection, skip it
|
||||
Patch0: skip-test-requiring-network.patch
|
||||
# two tests are checking SHA1 support which is deprecated
|
||||
Patch1: skip-testing-sha1.patch
|
||||
|
||||
BuildRequires: python%{python3_pkgversion}-devel
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: cmake
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: python%{python3_pkgversion}-wheel
|
||||
BuildRequires: python%{python3_pkgversion}-websockets
|
||||
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=2180988
|
||||
ExcludeArch: s390x
|
||||
|
||||
|
||||
%description
|
||||
%{desc}
|
||||
|
||||
|
||||
%package -n python%{python3_pkgversion}-awscrt
|
||||
Summary: %{summary}
|
||||
|
||||
|
||||
%description -n python%{python3_pkgversion}-awscrt
|
||||
%{desc}
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n awscrt-%{version}
|
||||
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires
|
||||
|
||||
|
||||
%build
|
||||
%ifarch %{ix86}
|
||||
# disable SSE2 instructions to prevent a crash in aws-c-common thread handling
|
||||
# probably caused by a compiler bug
|
||||
export CFLAGS="%{optflags} -mno-sse2"
|
||||
%endif
|
||||
export AWS_CRT_BUILD_USE_SYSTEM_LIBCRYPTO=1
|
||||
%pyproject_wheel
|
||||
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%pyproject_save_files _awscrt awscrt
|
||||
|
||||
|
||||
%check
|
||||
PYTHONPATH="%{buildroot}%{python3_sitearch}:%{buildroot}%{python3_sitelib}" %{python3} -m unittest
|
||||
|
||||
|
||||
%files -n python%{python3_pkgversion}-awscrt -f %{pyproject_files}
|
||||
%doc README.md
|
||||
|
||||
|
||||
%changelog
|
||||
## START: Generated by rpmautospec
|
||||
* Mon Feb 24 2025 Kseniia Nivnia <knivnia@redhat.com> - 0.23.8-1
|
||||
- Update to 0.23.8 and add skip-testing-sha1.patch
|
||||
|
||||
* Wed Dec 18 2024 Kseniia Nivnia <101121921+knivnia@users.noreply.github.com> - 0.20.2-6
|
||||
- add gating.yaml
|
||||
|
||||
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.20.2-5
|
||||
- Bump release for October 2024 mass rebuild:
|
||||
|
||||
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.20.2-4
|
||||
- Bump release for June 2024 mass rebuild
|
||||
|
||||
* Mon Jan 29 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.20.2-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.20.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Tue Jan 02 2024 Packit <hello@packit.dev> - 0.20.2-1
|
||||
- [packit] 0.20.2 upstream release
|
||||
- Resolves rhbz#2254450
|
||||
|
||||
* Thu Nov 30 2023 Packit <hello@packit.dev> - 0.19.19-1
|
||||
- [packit] 0.19.19 upstream release
|
||||
- Resolves rhbz#2250726
|
||||
|
||||
* Fri Nov 17 2023 Packit <hello@packit.dev> - 0.19.13-1
|
||||
- [packit] 0.19.13 upstream release
|
||||
- Resolves rhbz#2247105
|
||||
|
||||
* Wed Oct 25 2023 Packit <hello@packit.dev> - 0.19.6-1
|
||||
- [packit] 0.19.6 upstream release
|
||||
- Resolves rhbz#2211521 Upstream tag: v0.19.6 Upstream commit: b83949d0
|
||||
|
||||
* Mon Oct 16 2023 Packit <hello@packit.dev> - 0.19.3-1
|
||||
- [packit] 0.19.3 upstream release
|
||||
|
||||
* Mon Oct 02 2023 Packit <hello@packit.dev> - 0.19.2-1
|
||||
- [packit] 0.19.2 upstream release
|
||||
|
||||
* Mon Sep 11 2023 Nikola Forró <nforro@redhat.com> - 0.19.1-2
|
||||
- Enable EPEL 9 in Packit config
|
||||
|
||||
* Mon Aug 28 2023 Packit <hello@packit.dev> - 0.19.1-1
|
||||
- [packit] 0.19.1 upstream release
|
||||
|
||||
* Fri Aug 11 2023 Packit <hello@packit.dev> - 0.18.0-1
|
||||
- [packit] 0.18.0 upstream release
|
||||
|
||||
* Thu Jul 27 2023 Packit <hello@packit.dev> - 0.17.0-1
|
||||
- [packit] 0.17.0 upstream release
|
||||
|
||||
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.25-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Mon Jul 17 2023 Packit <hello@packit.dev> - 0.16.25-1
|
||||
- [packit] 0.16.25 upstream release
|
||||
|
||||
* Mon Jul 10 2023 Packit <hello@packit.dev> - 0.16.24-1
|
||||
- [packit] 0.16.24 upstream release
|
||||
|
||||
* Fri Jun 16 2023 Python Maint <python-maint@redhat.com> - 0.16.21-2
|
||||
- Rebuilt for Python 3.12
|
||||
|
||||
* Fri Jun 16 2023 Packit <hello@packit.dev> - 0.16.21-1
|
||||
- [packit] 0.16.21 upstream release
|
||||
|
||||
* Thu Jun 15 2023 Python Maint <python-maint@redhat.com> - 0.16.19-4
|
||||
- Rebuilt for Python 3.12
|
||||
|
||||
* Thu Jun 15 2023 Nikola Forró <nforro@redhat.com> - 0.16.19-3
|
||||
- Backport a commit improving Python 3.12 compatibility
|
||||
|
||||
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 0.16.19-2
|
||||
- Rebuilt for Python 3.12
|
||||
|
||||
* Wed May 31 2023 Packit <hello@packit.dev> - 0.16.19-1
|
||||
- [packit] 0.16.19 upstream release
|
||||
|
||||
* Wed May 24 2023 Packit <hello@packit.dev> - 0.16.18-1
|
||||
- [packit] 0.16.18 upstream release
|
||||
|
||||
* Fri May 05 2023 Packit <hello@packit.dev> - 0.16.17-1
|
||||
- [packit] 0.16.17 upstream release
|
||||
|
||||
* Wed Apr 26 2023 Nikola Forró <nforro@redhat.com> - 0.16.16-1
|
||||
- New upstream release 0.16.16
|
||||
|
||||
* Wed Mar 22 2023 Nikola Forró <nforro@redhat.com> - 0.16.13-2
|
||||
- Workaround a crash on %%ix86
|
||||
|
||||
* Thu Mar 16 2023 Nikola Forró <nforro@redhat.com> - 0.16.13-1
|
||||
- Initial package
|
||||
|
||||
## END: Generated by rpmautospec
|
||||
40
skip-testing-sha1.patch
Normal file
40
skip-testing-sha1.patch
Normal file
@ -0,0 +1,40 @@
|
||||
diff --git a/test/test_crypto.py b/test/test_crypto.py
|
||||
index 008b164..d0acfdd 100644
|
||||
--- a/test/test_crypto.py
|
||||
+++ b/test/test_crypto.py
|
||||
@@ -192,15 +192,11 @@ class TestCredentials(NativeResourceTest):
|
||||
|
||||
def test_rsa_signing_roundtrip(self):
|
||||
param_list = [RSASignatureAlgorithm.PKCS1_5_SHA256,
|
||||
- RSASignatureAlgorithm.PSS_SHA256,
|
||||
- RSASignatureAlgorithm.PKCS1_5_SHA1]
|
||||
+ RSASignatureAlgorithm.PSS_SHA256]
|
||||
|
||||
for p in param_list:
|
||||
with self.subTest(msg="RSA Signing Roundtrip using algo p", p=p):
|
||||
- if (p == RSASignatureAlgorithm.PKCS1_5_SHA1):
|
||||
- h = Hash.sha1_new()
|
||||
- else:
|
||||
- h = Hash.sha256_new()
|
||||
+ h = Hash.sha256_new()
|
||||
h.update(b'totally original test string')
|
||||
digest = h.digest()
|
||||
|
||||
@@ -213,15 +209,11 @@ class TestCredentials(NativeResourceTest):
|
||||
|
||||
def test_rsa_signing_roundtrip_der(self):
|
||||
param_list = [RSASignatureAlgorithm.PKCS1_5_SHA256,
|
||||
- RSASignatureAlgorithm.PSS_SHA256,
|
||||
- RSASignatureAlgorithm.PKCS1_5_SHA1]
|
||||
+ RSASignatureAlgorithm.PSS_SHA256]
|
||||
|
||||
for p in param_list:
|
||||
with self.subTest(msg="RSA Signing Roundtrip using algo p", p=p):
|
||||
- if (p == RSASignatureAlgorithm.PKCS1_5_SHA1):
|
||||
- h = Hash.sha1_new()
|
||||
- else:
|
||||
- h = Hash.sha256_new()
|
||||
+ h = Hash.sha256_new()
|
||||
h.update(b'totally original test string')
|
||||
digest = h.digest()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user