%define srcname certbot_nginx Name: certbot-nginx Version: 4.0.0 Release: %mkrel 1 Summary: The nginx plugin for certbot Group: Development/Python License: ASL 2.0 URL: https://pypi.python.org/pypi/certbot-nginx Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel %description Plugin for certbot that allows for automatic configuration of ngnix %prep %autosetup -n %{srcname}-%{version} -p1 %generate_buildrequires %pyproject_buildrequires -x test %build %pyproject_wheel %install %pyproject_install %pyproject_save_files certbot_nginx %check %pytest %files -f %{pyproject_files} %license LICENSE.txt %doc README.rst %exclude %{python3_sitelib}/certbot_nginx/tests