diff --git a/pyOpenSSL-23.1.1.tar.gz b/pyOpenSSL-23.1.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..be62bb4e24dd8d0d4561ad8804485d3a8b6f2066 Binary files /dev/null and b/pyOpenSSL-23.1.1.tar.gz differ diff --git a/pyOpenSSL.spec b/pyOpenSSL.spec new file mode 100644 index 0000000000000000000000000000000000000000..7b858f1b280e454026746560f1e54d5f9a988163 --- /dev/null +++ b/pyOpenSSL.spec @@ -0,0 +1,75 @@ +%define anolis_release 1 + +Name: pyOpenSSL +Version: 23.1.1 +Release: %{anolis_release}%{?dist} +Summary: Python wrapper module around the OpenSSL library + +License: ASL 2.0 +URL: https://pyopenssl.readthedocs.org/ +Source0: %pypi_source pyOpenSSL + +BuildArch: noarch + +BuildRequires: make +BuildRequires: python3-setuptools +BuildRequires: python3-sphinx +BuildRequires: python3-sphinx_rtd_theme + +BuildRequires: python3-devel +BuildRequires: python3-cryptography >= 3.2 + +%description +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 + +%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 + +%package -n python3-pyOpenSSL-doc +Summary: Documentation files for %{name} +Requires: python3-pyOpenSSL = %{version}-%{release} +BuildArch: noarch + +%description -n python3-pyOpenSSL-doc +The python3-pyOpenSSL-doc package contains documentation files for %{name}. + +%prep +%autosetup -p1 -n pyOpenSSL-%{version} + +%build +%py3_build + +%{__make} -C doc html SPHINXBUILD=sphinx-build-3 + +%install +%py3_install + +rm doc/_build/html/.buildinfo + +%files -n python3-pyOpenSSL +%license LICENSE +%{python3_sitelib}/OpenSSL/ +%{python3_sitelib}/pyOpenSSL-*.egg-info + +%files -n python3-pyOpenSSL-doc +%doc CHANGELOG.rst doc/_build/html + +%changelog +* Tue Mar 28 2023 Feng Su - 23.1.1-1 +- package init from upstream