Blob Blame History Raw
%global pypi_name sphinx-tabs
%global python_module_name sphinx_tabs

Name:           python-sphinx-tabs
Version:        3.1.0
Release:        1%{?dist}
Summary:        Tabbed views for Sphinx
License:        MIT

BuildArch:      noarch

%global _description %{expand:
Create tabbed content in Sphinx documentation when building HTML.}

BuildRequires:  pyproject-rpm-macros
BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)
# Needed for testing
BuildRequires:  python3dist(beautifulsoup4)
BuildRequires:  python3dist(pygments)
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(sphinx)
# Not yet packaged
#BuildRequires:  python3dist(pytest-regressions)


%description %{_description}

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

%description -n python3-%{pypi_name} %{_description}

%package -n python3-%{pypi_name}-doc
Summary:        HTML documentation for %{pypi_name}
Requires:       python3-%{pypi_name}

%description -n python3-%{pypi_name}-doc

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


PYTHONPATH=$(pwd) sphinx-build -b html docs html_docs

%pyproject_save_files %{python_module_name}

# TODO: Missing BR

%files -n  python3-%{pypi_name} -f %{pyproject_files}
%license LICENSE

%files -n python3-%{pypi_name}-doc
%doc html_docs/*

* Mon Jun 28 2021 Karolina Surma <> - 3.1.0-1
- Update to 3.1.0

* Fri Jun 04 2021 Python Maint <> - 2.0.0-3
- Rebuilt for Python 3.10

* Sun Feb 07 2021 Richard Shaw <> - 2.0.0-2
- Make sure doc subpackage requires main package.
- Add __pycache__ dir to %%files temporarily, see:

* Fri Feb 05 2021 Richard Shaw <> - 2.0.0-1
- Update to latest release and correct spec per reviewer comments.

* Wed Dec  9 2020 Richard Shaw <> 1.3.0-1
- Initial Packaging