2018-08-28 11:52:12 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-certbot
|
|
|
|
#
|
2024-02-07 12:38:17 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2018-08-28 11:52:12 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2024-02-07 12:38:17 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2018-08-28 11:52:12 +00:00
|
|
|
Name: python-certbot
|
2024-06-25 12:16:36 +00:00
|
|
|
Version: 2.11.0
|
2018-08-28 11:52:12 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: ACME client
|
|
|
|
License: Apache-2.0
|
2018-12-15 07:23:00 +00:00
|
|
|
URL: https://github.com/certbot/certbot
|
2020-10-07 07:58:09 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/c/certbot/certbot-%{version}.tar.gz
|
2021-07-30 08:42:52 +00:00
|
|
|
BuildRequires: %{python_module acme >= %{version}}
|
2023-10-30 15:52:53 +00:00
|
|
|
BuildRequires: %{python_module configargparse >= 1.5.3}
|
2021-03-08 08:27:29 +00:00
|
|
|
BuildRequires: %{python_module configobj >= 5.0.6}
|
2023-06-07 17:00:39 +00:00
|
|
|
BuildRequires: %{python_module cryptography >= 3.2.1}
|
2019-09-11 13:17:43 +00:00
|
|
|
BuildRequires: %{python_module distro >= 1.0.1}
|
2023-10-30 15:52:53 +00:00
|
|
|
BuildRequires: %{python_module importlib-metadata if %python-base < 3.10}
|
|
|
|
BuildRequires: %{python_module importlib-resources if %python-base < 3.9}
|
2022-04-08 06:28:06 +00:00
|
|
|
BuildRequires: %{python_module josepy >= 1.13.0}
|
2021-03-08 08:27:29 +00:00
|
|
|
BuildRequires: %{python_module parsedatetime >= 2.4}
|
2018-08-28 11:52:12 +00:00
|
|
|
BuildRequires: %{python_module pyRFC3339}
|
|
|
|
BuildRequires: %{python_module pytest}
|
2022-04-08 06:28:06 +00:00
|
|
|
BuildRequires: %{python_module pytz >= 2019.3}
|
|
|
|
BuildRequires: %{python_module setuptools >= 41.6.0}
|
2018-08-28 11:52:12 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2021-07-30 08:42:52 +00:00
|
|
|
Requires: python-acme >= %{version}
|
2023-10-30 15:52:53 +00:00
|
|
|
Requires: python-configargparse >= 1.5.3
|
2023-06-07 17:00:39 +00:00
|
|
|
Requires: python-configobj >= 5.0.6
|
|
|
|
Requires: python-cryptography >= 3.2.1
|
2019-09-11 13:17:43 +00:00
|
|
|
Requires: python-distro >= 1.0.1
|
2021-12-21 15:35:19 +00:00
|
|
|
Requires: python-josepy >= 1.9.0
|
2021-03-08 08:27:29 +00:00
|
|
|
Requires: python-parsedatetime >= 2.4
|
2018-08-28 11:52:12 +00:00
|
|
|
Requires: python-pyRFC3339
|
2022-04-08 06:28:06 +00:00
|
|
|
Requires: python-pytz >= 2019.3
|
|
|
|
Requires: python-setuptools >= 41.6.0
|
2018-08-28 11:52:12 +00:00
|
|
|
Requires(post): update-alternatives
|
2024-02-07 12:38:17 +00:00
|
|
|
Requires(postun): update-alternatives
|
2023-11-16 14:43:35 +00:00
|
|
|
%if %{python_version_nodots} < 310
|
2023-10-30 15:52:53 +00:00
|
|
|
Requires: python-importlib-metadata
|
2023-11-16 14:43:35 +00:00
|
|
|
%endif
|
|
|
|
%if %{python_version_nodots} < 39
|
2023-10-30 15:52:53 +00:00
|
|
|
Requires: python-importlib-resources
|
2023-11-16 14:43:35 +00:00
|
|
|
%endif
|
2020-04-21 08:14:05 +00:00
|
|
|
Provides: certbot = %{version}
|
|
|
|
Obsoletes: certbot < %{version}
|
2018-08-28 11:52:12 +00:00
|
|
|
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}
|
2023-11-16 14:32:51 +00:00
|
|
|
%autopatch -p1
|
2018-08-28 11:52:12 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/certbot
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2019-03-18 09:29:38 +00:00
|
|
|
%pytest
|
2018-08-28 11:52:12 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
%python_install_alternative certbot
|
2019-05-13 15:52:11 +00:00
|
|
|
# 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
|
2018-08-28 11:52:12 +00:00
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative certbot
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE.txt
|
|
|
|
%doc README.rst
|
|
|
|
%{python_sitelib}/*
|
|
|
|
%python_alternative %{_bindir}/certbot
|
|
|
|
|
|
|
|
%changelog
|