Files
python-certbot/python-certbot.spec
Markéta Machová 9c540dc94f Accepting request 911272 from home:dspinella:branches:devel:languages:python:certbot
- Update to version 1.18.0
  * New functions that Certbot plugins can use to interact with the user have
    been added to certbot.display.util. We plan to deprecate using IDisplay
    with zope in favor of these new functions in the future.
  * The Plugin, Authenticator and Installer classes are added to
    certbot.interfaces module as alternatives to Certbot's current zope based
    plugin interfaces. The API of these interfaces is identical, but they are
    based on Python's abc module instead of zope. Certbot will continue to
    detect plugins that implement either interface, but we plan to drop support
    for zope based interfaces in a future version of Certbot.
  * The class certbot.configuration.NamespaceConfig is added to the Certbot's
    public API
  * When self-validating HTTP-01 challenges using
    acme.challenges.HTTP01Response.simple_verify, we now assume that the response
    is composed of only ASCII characters. Previously we were relying on the
    default behavior of the requests library which tries to guess the encoding of
    the response which was error prone
  * In order to simplify the transition to Certbot's new plugin interfaces, the
    classes Plugin and Installer in certbot.plugins.common module and
    certbot.plugins.dns_common.DNSAuthenticator now implement Certbot's new
    plugin interfaces. The Certbot plugins based on these classes are now
    automatically detected as implementing these interfaces.
  * The Apache authenticator no longer crashes with "Unable to insert label"
    when encountering a completely empty vhost. This issue affected Certbot 1.17.0.

OBS-URL: https://build.opensuse.org/request/show/911272
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:certbot/python-certbot?expand=0&rev=86
2021-08-11 06:03:32 +00:00

103 lines
3.4 KiB
RPMSpec

#
# spec file for package python-certbot
#
# Copyright (c) 2021 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-certbot
Version: 1.18.0
Release: 0
Summary: ACME client
License: Apache-2.0
URL: https://github.com/certbot/certbot
Source0: https://files.pythonhosted.org/packages/source/c/certbot/certbot-%{version}.tar.gz
Source1: https://files.pythonhosted.org/packages/source/c/certbot/certbot-%{version}.tar.gz.asc
Source2: %{name}.keyring
BuildRequires: %{python_module acme >= %{version}}
BuildRequires: %{python_module configargparse >= 0.9.3}
BuildRequires: %{python_module configobj >= 5.0.6}
BuildRequires: %{python_module cryptography >= 2.1.4}
BuildRequires: %{python_module distro >= 1.0.1}
BuildRequires: %{python_module josepy >= 1.1.0}
BuildRequires: %{python_module parsedatetime >= 2.4}
BuildRequires: %{python_module pyRFC3339}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module zope.component}
BuildRequires: %{python_module zope.interface}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-acme >= %{version}
Requires: python-configargparse >= 0.9.3
Requires: python-configobj
Requires: python-cryptography >= 2.1.4
Requires: python-distro >= 1.0.1
Requires: python-future
Requires: python-josepy >= 1.1.0
Requires: python-parsedatetime >= 2.4
Requires: python-pyRFC3339
Requires: python-pytz
Requires: python-setuptools
Requires: python-zope.component
Requires: python-zope.interface
Requires(post): update-alternatives
Requires(postun):update-alternatives
Provides: certbot = %{version}
Obsoletes: certbot < %{version}
BuildArch: noarch
%python_subpackages
%description
certbot is a free, automated certificate authority that aims
to lower the barriers to entry for encrypting all HTTP traffic on the internet.
%prep
%setup -q -n certbot-%{version}
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/certbot
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%post
%python_install_alternative certbot
# migrate from old certbot to new certbot
if test ! -h %{_sysconfdir}/certbot -a -e %{_sysconfdir}/certbot; then
echo "Migrating %{_sysconfdir}/certbot to %{_sysconfdir}/letsencrypt..."
mv %{_sysconfdir}/letsencrypt %{_sysconfdir}/letsencrypt.empty
mv %{_sysconfdir}/certbot %{_sysconfdir}/letsencrypt
cd %{_sysconfdir} ; ln -s letsencrypt certbot
fi
%postun
%python_uninstall_alternative certbot
%files %{python_files}
%license LICENSE.txt
%doc README.rst
%{python_sitelib}/*
%python_alternative %{_bindir}/certbot
%changelog