SHA256
1
0
forked from pool/python-acme
Files
python-acme/python-acme.spec

75 lines
2.4 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package python-acme
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
%define libname acme
Name: python-%{libname}
Version: 2.11.0
Release: 0
Summary: Python library for the ACME protocol
License: Apache-2.0
URL: https://github.com/certbot/certbot
Source0: https://files.pythonhosted.org/packages/source/a/%{libname}/%{libname}-%{version}.tar.gz
Accepting request 1091295 from home:mcalabkova:branches:devel:languages:python:certbot - Update to 2.6.0 * Support for Python 3.11 was added to Certbot and all of its components * acme.challenges.HTTP01Response.simple_verify now accepts a timeout argument which defaults to 30 that causes the verification request to timeout after that many seconds. * The default key type for new certificates is now ECDSA secp256r1 (P-256). It was previously RSA 2048-bit. Existing certificates are not affected. * acme and Certbot no longer support versions of ACME from before the RFC 8555 standard. * acme and Certbot no longer support the old urn:acme:error: ACME error prefix. * many acme classes have been removed * acme.messages.Directory now only supports lookups by the exact resource name string in the ACME directory * Removed the deprecated source_address argument for acme.client.ClientNetwork. * Certbot will no longer respect very long challenge polling intervals, which may be suggested by some ACME servers. Certbot will continue to wait up to 90 seconds by default, or up to a total of 30 minutes if requested by the server via Retry-After. * certbot show_account now displays the ACME Account Thumbprint. * acme.messages.OrderResource now supports being round-tripped through JSON * acme.client.ClientV2 now provides separate begin_finalization and poll_finalization methods, in addition to the existing finalize_order method. * Packaged tests for all Certbot components besides josepy were moved inside the _internal/tests module. - Drop the signature (last was acme-1.31.0.tar.gz.asc) and python-acme.keyring * PyPI currently hides the signatures and plans to drop support * https://github.com/certbot/certbot/issues/9707 OBS-URL: https://build.opensuse.org/request/show/1091295 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:certbot/python-acme?expand=0&rev=94
2023-06-07 16:58:31 +00:00
BuildRequires: %{python_module cryptography >= 3.2.1}
BuildRequires: %{python_module josepy >= 1.13.0}
BuildRequires: %{python_module pyOpenSSL >= 17.5.0}
BuildRequires: %{python_module pyRFC3339}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytz >= 2019.3}
BuildRequires: %{python_module requests >= 2.20.0}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Accepting request 1091295 from home:mcalabkova:branches:devel:languages:python:certbot - Update to 2.6.0 * Support for Python 3.11 was added to Certbot and all of its components * acme.challenges.HTTP01Response.simple_verify now accepts a timeout argument which defaults to 30 that causes the verification request to timeout after that many seconds. * The default key type for new certificates is now ECDSA secp256r1 (P-256). It was previously RSA 2048-bit. Existing certificates are not affected. * acme and Certbot no longer support versions of ACME from before the RFC 8555 standard. * acme and Certbot no longer support the old urn:acme:error: ACME error prefix. * many acme classes have been removed * acme.messages.Directory now only supports lookups by the exact resource name string in the ACME directory * Removed the deprecated source_address argument for acme.client.ClientNetwork. * Certbot will no longer respect very long challenge polling intervals, which may be suggested by some ACME servers. Certbot will continue to wait up to 90 seconds by default, or up to a total of 30 minutes if requested by the server via Retry-After. * certbot show_account now displays the ACME Account Thumbprint. * acme.messages.OrderResource now supports being round-tripped through JSON * acme.client.ClientV2 now provides separate begin_finalization and poll_finalization methods, in addition to the existing finalize_order method. * Packaged tests for all Certbot components besides josepy were moved inside the _internal/tests module. - Drop the signature (last was acme-1.31.0.tar.gz.asc) and python-acme.keyring * PyPI currently hides the signatures and plans to drop support * https://github.com/certbot/certbot/issues/9707 OBS-URL: https://build.opensuse.org/request/show/1091295 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:certbot/python-acme?expand=0&rev=94
2023-06-07 16:58:31 +00:00
Requires: python-cryptography >= 3.2.1
Requires: python-josepy >= 1.13.0
Requires: python-pyOpenSSL >= 17.5.0
Requires: python-pyRFC3339
Requires: python-pytz >= 2019.3
Requires: python-requests >= 2.20.0
BuildArch: noarch
%if %{?suse_version} < 1500
BuildRequires: %{python_module devel}
%endif
%python_subpackages
%description
Python library implementing the Automatic Certificate Management Environment
(ACME) protocol. It is used by the certbot project. Formerly Let's Encrypt project.
%prep
%setup -q -n %{libname}-%{version}
%build
%python_build
%install
%python_install
# remove duplicates
%python_expand %fdupes %{buildroot}%{$python_sitelib}/%{libname}
%check
Accepting request 1091295 from home:mcalabkova:branches:devel:languages:python:certbot - Update to 2.6.0 * Support for Python 3.11 was added to Certbot and all of its components * acme.challenges.HTTP01Response.simple_verify now accepts a timeout argument which defaults to 30 that causes the verification request to timeout after that many seconds. * The default key type for new certificates is now ECDSA secp256r1 (P-256). It was previously RSA 2048-bit. Existing certificates are not affected. * acme and Certbot no longer support versions of ACME from before the RFC 8555 standard. * acme and Certbot no longer support the old urn:acme:error: ACME error prefix. * many acme classes have been removed * acme.messages.Directory now only supports lookups by the exact resource name string in the ACME directory * Removed the deprecated source_address argument for acme.client.ClientNetwork. * Certbot will no longer respect very long challenge polling intervals, which may be suggested by some ACME servers. Certbot will continue to wait up to 90 seconds by default, or up to a total of 30 minutes if requested by the server via Retry-After. * certbot show_account now displays the ACME Account Thumbprint. * acme.messages.OrderResource now supports being round-tripped through JSON * acme.client.ClientV2 now provides separate begin_finalization and poll_finalization methods, in addition to the existing finalize_order method. * Packaged tests for all Certbot components besides josepy were moved inside the _internal/tests module. - Drop the signature (last was acme-1.31.0.tar.gz.asc) and python-acme.keyring * PyPI currently hides the signatures and plans to drop support * https://github.com/certbot/certbot/issues/9707 OBS-URL: https://build.opensuse.org/request/show/1091295 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:certbot/python-acme?expand=0&rev=94
2023-06-07 16:58:31 +00:00
%pytest acme/_internal/tests/
%files %{python_files}
%license LICENSE.txt
Accepting request 1091295 from home:mcalabkova:branches:devel:languages:python:certbot - Update to 2.6.0 * Support for Python 3.11 was added to Certbot and all of its components * acme.challenges.HTTP01Response.simple_verify now accepts a timeout argument which defaults to 30 that causes the verification request to timeout after that many seconds. * The default key type for new certificates is now ECDSA secp256r1 (P-256). It was previously RSA 2048-bit. Existing certificates are not affected. * acme and Certbot no longer support versions of ACME from before the RFC 8555 standard. * acme and Certbot no longer support the old urn:acme:error: ACME error prefix. * many acme classes have been removed * acme.messages.Directory now only supports lookups by the exact resource name string in the ACME directory * Removed the deprecated source_address argument for acme.client.ClientNetwork. * Certbot will no longer respect very long challenge polling intervals, which may be suggested by some ACME servers. Certbot will continue to wait up to 90 seconds by default, or up to a total of 30 minutes if requested by the server via Retry-After. * certbot show_account now displays the ACME Account Thumbprint. * acme.messages.OrderResource now supports being round-tripped through JSON * acme.client.ClientV2 now provides separate begin_finalization and poll_finalization methods, in addition to the existing finalize_order method. * Packaged tests for all Certbot components besides josepy were moved inside the _internal/tests module. - Drop the signature (last was acme-1.31.0.tar.gz.asc) and python-acme.keyring * PyPI currently hides the signatures and plans to drop support * https://github.com/certbot/certbot/issues/9707 OBS-URL: https://build.opensuse.org/request/show/1091295 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:certbot/python-acme?expand=0&rev=94
2023-06-07 16:58:31 +00:00
%pycache_only %{python_sitelib}/%{libname}/__pycache__
%{python_sitelib}/%{libname}
%{python_sitelib}/%{libname}-%{version}*.egg-info
%changelog