commit aaecd766ed060c93655c2f143b7b95ad8d363559 Author: tigro Date: Sat Jan 4 17:48:24 2025 +0300 import python-sphinx-theme-builder-0.2.0-0.16.b2.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2f52431 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/sphinx-theme-builder-0.2.0b2.tar.gz diff --git a/.python-sphinx-theme-builder.metadata b/.python-sphinx-theme-builder.metadata new file mode 100644 index 0000000..4ae91c2 --- /dev/null +++ b/.python-sphinx-theme-builder.metadata @@ -0,0 +1 @@ +eba74069bbe45299e81a0ab45904db1afb87be44 SOURCES/sphinx-theme-builder-0.2.0b2.tar.gz diff --git a/SPECS/python-sphinx-theme-builder.spec b/SPECS/python-sphinx-theme-builder.spec new file mode 100644 index 0000000..07605c3 --- /dev/null +++ b/SPECS/python-sphinx-theme-builder.spec @@ -0,0 +1,152 @@ +# This package serves both as a build backend and a tool for theme developers. +# During the Python bootstrap we need the build functionality for python-furo. +# cli extra, needed for the application usage, has got a long chain of +# dependencies leading ultimately to python-django which can be built much +# later in the bootstrap process, hence the bcond to build just the "core" parts. +%bcond bootstrap 0 + +%global prerel b2 +%global giturl https://github.com/pradyunsg/sphinx-theme-builder + +Name: python-sphinx-theme-builder +Version: 0.2.0 +Release: 0.16.%{prerel}%{?dist} +Summary: Streamline the Sphinx theme development workflow + +# Most of the code is MIT. However, +# src/sphinx_theme_builder/_internal/passthrough.py is BSD-3-Clause. +License: MIT AND BSD-3-Clause +URL: https://sphinx-theme-builder.readthedocs.io/ +VCS: git:%{giturl}.git +Source: %{giturl}/archive/%{version}%{prerel}/sphinx-theme-builder-%{version}%{prerel}.tar.gz + +BuildArch: noarch + +BuildRequires: help2man +BuildRequires: python3-devel + +%description +A tool for authoring Sphinx themes with a simple (opinionated) workflow. + +%package -n python3-sphinx-theme-builder +Summary: Streamline the Sphinx theme development workflow + +%description -n python3-sphinx-theme-builder +A tool for authoring Sphinx themes with a simple (opinionated) workflow. + +%if %{without bootstrap} +%pyproject_extras_subpkg -n python3-sphinx-theme-builder cli +%{_bindir}/stb +%{_mandir}/man1/stb.1* +%endif + +%prep +%autosetup -n sphinx-theme-builder-%{version}%{prerel} -p1 + +# Use local objects.inv for intersphinx +sed -e 's|\("https://docs\.python\.org/3", \)None|\1"%{_docdir}/python3-docs/html/objects.inv"|' \ + -e 's|\("https://www\.sphinx-doc\.org/en/master", \)None|\1"%{_docdir}/python-sphinx-doc/html/objects.inv"|' \ + -i docs/conf.py + +# Skip test packages not available in Fedora +sed -i '/pytest-clarity/d;/pytest-pspec/d' tests/requirements.txt + +%generate_buildrequires +%pyproject_buildrequires %{!?with_bootstrap:-x cli tests/requirements.txt} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files sphinx_theme_builder + +%if %{without bootstrap} +# Install a man page +mkdir -p %{buildroot}%{_mandir}/man1 +%{py3_test_envvars} help2man -N --version-string=%{version}%{prerel} \ + -n 'Streamline the Sphinx theme development workflow' \ + %{buildroot}%{_bindir}/stb > %{buildroot}%{_mandir}/man1/stb.1 +%else +# without cli there's no use of the binary file +rm %{buildroot}%{_bindir}/stb +%endif + +%check +%if %{without bootstrap} +%pytest +%else +%pyproject_check_import +%endif + +%files -n python3-sphinx-theme-builder -f %{pyproject_files} +%doc README.md +%license LICENSE + +%changelog +* Sat Jan 04 2025 Arkady L. Shane - 0.2.0-0.16.b2 +- Rebuilt for MSVSphere 10 + +* Fri Jul 19 2024 Fedora Release Engineering - 0.2.0-0.16.b2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jun 15 2024 Jerry James - 0.2.0-0.15.b2 +- Build in non-bootstrap mode +- Minor spec file cleanups + +* Sun Jun 09 2024 Python Maint - 0.2.0-0.15.b2 +- Bootstrap for Python 3.13 + +* Fri Feb 16 2024 Karolina Surma - 0.2.0-0.14.b2 +- Make cli extra optional to cut off the long dependency chain when +bootstrapping new Python + +* Fri Jan 26 2024 Fedora Release Engineering - 0.2.0-0.13.b2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 0.2.0-0.12.b2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 0.2.0-0.11.b2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu Jun 29 2023 Python Maint - 0.2.0-0.10.b2 +- Rebuilt for Python 3.12 + +* Mon Apr 24 2023 Jerry James - 0.2.0-0.9.b2 +- Use %%py3_test_envvars to simplify man page installation + +* Wed Apr 19 2023 Tomáš Hrnčiar - 0.2.0-0.9.b2 +- Unused docs BuildRequires were dropped to remove a dependency loop between +python-sphinx-theme-builder and python-furo + +* Tue Mar 28 2023 Jerry James - 0.2.0-0.8.b2 +- Version 0.2.0b2 +- Drop upstreamed tomllib patch + +* Thu Feb 23 2023 Jerry James - 0.2.0-0.7.b1 +- Add cli extras subpackage containing the stb binary +- Dynamically generate BuildRequires + +* Fri Jan 20 2023 Fedora Release Engineering - 0.2.0-0.6.b1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Tue Dec 13 2022 Jerry James - 0.2.0-0.5.b1 +- Drop dependency on tomli +- Convert License tag to SPDX + +* Fri Jul 29 2022 Jerry James - 0.2.0-0.4.b1 +- Version 0.2.0b1 +- Depend on pyproject-metadata instead of pep621 + +* Fri Jul 22 2022 Fedora Release Engineering - 0.2.0-0.3.a15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 27 2022 Jerry James - 0.2.0-0.2.a15 +- Version 0.2.0a15 + +* Wed Jun 15 2022 Python Maint - 0.2.0-0.2.a14 +- Rebuilt for Python 3.11 + +* Tue Apr 12 2022 Jerry James - 0.2.0-0.1.a14 +- Initial RPM