Blob Blame History Raw
%global pypi_name sphinx-click

Name:           python-%{pypi_name}
Version:        5.1.0
Release:        %autorelease
Summary:        Sphinx extension that automatically documents Click applications

License:        MIT

BuildArch:      noarch

BuildRequires:  python3-devel
# pytest is not an upstream dependency, we use it here out of convenience
BuildRequires:  python3dist(pytest)
BuildRequires:  pyproject-rpm-macros

%global package_desc \
sphinx-click is a Sphinx plugin that allows you to automatically extract\
documentation from a click-based application and include it in your docs.


%package -n     python3-%{pypi_name}
Summary:        %{summary}

# The doc subpackage was removed, obsolete it to have clean upgrade path
# This was added in Fedora 35 and can be removed in Fedora 37
Obsoletes:      python-%{pypi_name}-doc < 2.7.1-1

%description -n python3-%{pypi_name}

%autosetup -p1 -n %{pypi_name}-%{version}

%pyproject_buildrequires -r


%pyproject_save_files sphinx_click

%pytest -v tests

%files -n python3-%{pypi_name} -f %{pyproject_files}
%license LICENSE
%doc README.rst ChangeLog