From 5ac7198ea6a5e321a34caab5d0529f94b124f491 Mon Sep 17 00:00:00 2001 From: tigro Date: Sat, 28 Dec 2024 14:45:38 +0300 Subject: [PATCH] import pyOpenSSL-24.2.1-1.el10 --- .gitignore | 19 +--- .pyOpenSSL.metadata | 1 + pyOpenSSL.spec => SPECS/pyOpenSSL.spec | 128 ++++++++++++++++++------- sources | 1 - 4 files changed, 95 insertions(+), 54 deletions(-) create mode 100644 .pyOpenSSL.metadata rename pyOpenSSL.spec => SPECS/pyOpenSSL.spec (82%) delete mode 100644 sources diff --git a/.gitignore b/.gitignore index 78d3de4..a140ccf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,18 +1 @@ -/pyOpenSSL-0.13.1.tar.gz -/pyOpenSSL-0.14.tar.gz -/pyOpenSSL-0.15.1.tar.gz -/pyOpenSSL-16.0.0.tar.gz -/pyOpenSSL-16.0.0.tar.gz.asc -/pyOpenSSL-16.2.0.tar.gz -/pyOpenSSL-17.1.0.tar.gz -/pyOpenSSL-17.1.0.tar.gz.asc -/pyOpenSSL-17.2.0.tar.gz.asc -/pyOpenSSL-17.2.0.tar.gz -/pyOpenSSL-17.3.0.tar.gz -/pyOpenSSL-17.3.0.tar.gz.asc -/pyOpenSSL-18.0.0.tar.gz -/pyOpenSSL-19.0.0.tar.gz -/pyOpenSSL-19.1.0.tar.gz -/pyOpenSSL-20.0.0.tar.gz -/pyOpenSSL-20.0.1.tar.gz -/pyOpenSSL-21.0.0.tar.gz +SOURCES/pyopenssl-24.2.1.tar.gz diff --git a/.pyOpenSSL.metadata b/.pyOpenSSL.metadata new file mode 100644 index 0000000..47bda06 --- /dev/null +++ b/.pyOpenSSL.metadata @@ -0,0 +1 @@ +b92ce493392a698f2a08e96b37f9637609fe5a9e SOURCES/pyopenssl-24.2.1.tar.gz diff --git a/pyOpenSSL.spec b/SPECS/pyOpenSSL.spec similarity index 82% rename from pyOpenSSL.spec rename to SPECS/pyOpenSSL.spec index 99a98d0..728e6fa 100644 --- a/pyOpenSSL.spec +++ b/SPECS/pyOpenSSL.spec @@ -1,43 +1,45 @@ -Summary: Python wrapper module around the OpenSSL library -Name: pyOpenSSL -Version: 21.0.0 -Release: 5%{?dist} -Source0: https://files.pythonhosted.org/packages/source/p/pyOpenSSL/pyOpenSSL-%{version}.tar.gz - -BuildArch: noarch -License: ASL 2.0 -URL: https://pyopenssl.readthedocs.org/ - -BuildRequires: make -BuildRequires: python3-setuptools -BuildRequires: python3-sphinx -BuildRequires: python3-sphinx_rtd_theme - -BuildRequires: python3-devel -BuildRequires: python3-cryptography >= 3.2 - -%description +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## 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 srcname pyopenssl + +Name: pyOpenSSL +Version: 24.2.1 +Release: %autorelease +Summary: Python wrapper module around the OpenSSL library +License: Apache-2.0 +URL: https://pyopenssl.readthedocs.org/ +Source0: %{pypi_source %{srcname} %{version}} + +BuildArch: noarch + +BuildRequires: make +BuildRequires: openssl +BuildRequires: python3-devel + +%global _description %{expand: High-level wrapper around a subset of the OpenSSL library, includes among others * SSL.Connection objects, wrapping the methods of Python's portable sockets * Callbacks written in Python - * Extensive error-handling mechanism, mirroring OpenSSL's error codes + * Extensive error-handling mechanism, mirroring OpenSSL's error codes} + +%description %{_description} %package -n python3-pyOpenSSL Summary: Python 3 wrapper module around the OpenSSL library -Requires: python3-cryptography >= 2.8 -Requires: python3-six >= 1.5.2 -%{?python_provide:%python_provide python3-pyOpenSSL} Obsoletes: pyOpenSSL < 19.0.0-5 Provides: pyOpenSSL = %{version}-%{release} -%description -n python3-pyOpenSSL -High-level wrapper around a subset of the OpenSSL library, includes among others - * SSL.Connection objects, wrapping the methods of Python's portable - sockets - * Callbacks written in Python - * Extensive error-handling mechanism, mirroring OpenSSL's error codes +%description -n python3-pyOpenSSL %{_description} %package doc Summary: Documentation for pyOpenSSL @@ -47,29 +49,83 @@ BuildArch: noarch Documentation for pyOpenSSL %prep -%autosetup -p1 -n pyOpenSSL-%{version} +%autosetup -p1 -n %{srcname}-%{version} + +%generate_buildrequires +%pyproject_buildrequires -x docs,test %build -%py3_build +%pyproject_wheel %{__make} -C doc html SPHINXBUILD=sphinx-build-3 %install -%py3_install +%pyproject_install +%pyproject_save_files OpenSSL # Cleanup sphinx .buildinfo file before packaging rm doc/_build/html/.buildinfo -%files -n python3-pyOpenSSL +%check +%pyproject_check_import +%pytest -k "not test_sign_verify_with_text" -k "not test_sign_verify" + +%files -n python3-pyOpenSSL -f %{pyproject_files} %license LICENSE -%{python3_sitelib}/OpenSSL/ -%{python3_sitelib}/pyOpenSSL-*.egg-info +%doc README.rst %files doc %license LICENSE %doc CHANGELOG.rst doc/_build/html %changelog +* Sat Dec 28 2024 Arkady L. Shane - 24.2.1-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Wed Jul 31 2024 Jeremy Cline - 24.2.1-1 +- Update to v24.2.1 + +* Wed Jul 31 2024 Jeremy Cline - 24.1.0-9 +- Add README to the main package + +* Wed Jul 24 2024 Miroslav Suchý - 24.1.0-4 +- convert license to SPDX + +* Fri Jul 19 2024 Fedora Release Engineering - 24.1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jun 07 2024 Python Maint - 24.1.0-2 +- Rebuilt for Python 3.13 + +* Sat Mar 23 2024 Christian Heimes - 24.1.0-1 +- Update to 24.1.0, resolves rhbz#2246256 +- Use pyproject_buildrequires + +* Fri Jan 26 2024 Fedora Release Engineering - 23.2.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 23.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Aug 10 2023 Christian Heimes - 23.2.0-1 +- Update to 23.2.0, resolves rhbz#2181444 + +* Fri Jul 21 2023 Fedora Release Engineering - 23.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jun 14 2023 Python Maint - 23.1.1-2 +- Rebuilt for Python 3.12 + +* Wed May 17 2023 Adam Williamson - 23.1.1-1 +- New release, works with cryptography 40+ + +* Tue Apr 25 2023 Yaakov Selkowitz - 23.0.0-2 +- Rebuilt + +* Fri Jan 20 2023 Paul Wouters - 21.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild @@ -426,3 +482,5 @@ rm doc/_build/html/.buildinfo * Fri Jun 14 2002 Mihai Ibanescu - Added documentation + +## END: Generated by rpmautospec diff --git a/sources b/sources deleted file mode 100644 index ecc71e0..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (pyOpenSSL-21.0.0.tar.gz) = ca772a420b13b1e3c421170baab031d4769d77539eb5ad3eb0fda409aa8692596ce85d21b244b6e49e70fd35609b64190dcbc4fc8d4493292bac19b7856d5175