https://bugzilla.redhat.com/show_bug.cgi?id=2233084
Robert-André Mauchin 🐧 zebob.m@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zebob.m@gmail.com
--- Comment #7 from Robert-André Mauchin 🐧 zebob.m@gmail.com --- - Ok, it would be nice to build the docs. For that you need the Github archive.
For that you need build python-m2r2 :
%global pypi_name m2r2
Name: python-%{pypi_name} Version: 0.3.3.post2 Release: %autorelease Summary: Markdown to reStructuredText converter
License: MIT URL: https://github.com/crossnox/m2r2 Source: %URL/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(pytest) BuildRequires: python3dist(sphinx)
%global _description %{expand: M2R2 converts a markdown file including reStructuredText (rst) markups to a valid rst format.}
%description %_description
%package -n python3-%{pypi_name} Summary: %{summary}
%description -n python3-%{pypi_name} %_description
%package -n python-%{pypi_name}-doc Summary: Documentation for python-%{pypi_name} BuildArch: noarch
%description -n python-%{pypi_name}-doc %{common_description}
This package is providing the documentation for %{pypi_name}.
%prep %autosetup -n %{pypi_name}-%{version} sed -i 's|__version__ = get_distribution("m2r2").version|__version__ = "%{version}"|' m2r2.py
%generate_buildrequires %pyproject_buildrequires -t
%build %pyproject_wheel
%install %pyproject_install %pyproject_save_files m2r2
# generate html docs export PYTHONPATH=$PYTHONPATH:%{buildroot}%{python3_sitelib}/ sphinx-build-3 -b html docs/ html # remove the sphinx-build-3 leftovers rm -rf html/.{doctrees,buildinfo}
%check %pytest
%files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %doc CHANGES.md README.md %{_bindir}/m2r2
%files -n python-%{pypi_name}-doc %doc html %license LICENSE
%changelog %autochangelog ========================================================
%global pypi_name click-option-group %global pypi_name_with_underscore %(echo "%{pypi_name}" | sed "s/-/_/g")
Name: python-%{pypi_name} Version: 0.5.6 Release: %autorelease Summary: Option groups missing in Click
License: BSD-3-Clause URL: https://github.com/click-contrib/click-option-group Source: %URL/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(m2r2) BuildRequires: python3dist(sphinx) BuildRequires: python3dist(pallets-sphinx-themes)
%global _description %{expand: click-option-group is a Click-extension package that adds option groups missing in Click.}
%description %_description
%package -n python3-click-option-group Summary: %{summary}
%description -n python3-click-option-group %_description
%package -n python-%{pypi_name}-doc Summary: Documentation for python-%{pypi_name} BuildArch: noarch
%description -n python-%{pypi_name}-doc %_description
This package is providing the documentation for %{pypi_name}.
%prep %autosetup -n click-option-group-%{version}
%generate_buildrequires %pyproject_buildrequires -x tests
%build %pyproject_wheel
%install %pyproject_install %pyproject_save_files click_option_group
# generate html docs export PYTHONPATH=$PYTHONPATH:%{buildroot}%{python3_sitelib}/ sphinx-build-3 -b html docs/ html # remove the sphinx-build-3 leftovers rm -rf html/.{doctrees,buildinfo}
%check %pytest
%files -n python3-click-option-group -f %{pyproject_files} %license LICENSE %doc README.md
%files -n python-%{pypi_name}-doc %doc html %license LICENSE
%changelog %autochangelog
========================================================
- description must be split after 80 column:
%global _description %{expand: click-option-group is a Click-extension package that adds option groups missing in Click. }
->
%global _description %{expand: click-option-group is a Click-extension package that adds option groups missing in Click.}