Remove pkcs11 headers source

Upstream switched over to the public domain pkcs11 headers and we no
longer need the extra source within this package to work around the
OASIS license.

Resolves: RHEL-12453

Signed-off-by: Major Hayden <major@redhat.com>
This commit is contained in:
Major Hayden 2024-04-29 10:51:15 -05:00
parent 9850ff12f0
commit b6fd80cd30
No known key found for this signature in database

View File

@ -4,7 +4,7 @@ Python bindings for the AWS Common Runtime}
Name: python-awscrt
Version: 0.20.5
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Python bindings for the AWS Common Runtime
# All files are licensed under Apache-2.0, except:
@ -16,10 +16,6 @@ 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
@ -51,14 +47,6 @@ Summary: %{summary}
%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
@ -88,6 +76,9 @@ PYTHONPATH="%{buildroot}%{python3_sitearch}:%{buildroot}%{python3_sitelib}" %{py
%changelog
* Mon Apr 29 2024 Major Hayden <major@redhat.com> - 0.20.5-3
- Removing extra pkcs11 source now that upstream switched to public domain headers
* Mon Apr 01 2024 Major Hayden <major@redhat.com> - 0.20.5-2
- Bump revision for new build