%global pypi_name certbot-dns-desec Name: python-%{pypi_name} Version: 1.3.2 Release: %autorelease Summary: deSEC DNS Authenticator plugin for Certbot License: Apache-2.0 URL: https://github.com/desec-io/%{pypi_name} Source: %{pypi_source certbot_dns_desec} Patch : 7011ed5e81518261d4b81e232adcfc08b2ca3f16.patch Patch: use_unittest.mock.patch BuildArch: noarch BuildRequires: python3-devel # Test dependencies: BuildRequires: python3dist(pytest) BuildRequires: python3dist(requests-mock) %global _description %{expand: deSEC DNS Authenticator plugin for Certbot } %description %_description %package -n python3-%{pypi_name} Summary: %{summary} # Provide the name users expect as a certbot plugin %if 0%{?fedora} Provides: %{pypi_name} = %{version}-%{release} %endif # Recommend the CLI as that will be the interface most use Recommends: certbot %description -n python3-%{pypi_name} %_description %prep %autosetup -p1 -n certbot_dns_desec-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l certbot_dns_desec %check %pytest %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.md %changelog %autochangelog