From c48ddf8443efc78fb4ea4bb7517f27f38d598c58 Mon Sep 17 00:00:00 2001 From: tigro Date: Sat, 4 Jan 2025 11:49:06 +0300 Subject: [PATCH] import python-furo-2024.08.06-1.el10 --- .gitignore | 2 + .python-furo.metadata | 2 + SOURCES/furo-2024.08.06-vendor-licenses.txt | 14 ++ SPECS/python-furo.spec | 206 ++++++++++++++++++++ 4 files changed, 224 insertions(+) create mode 100644 .gitignore create mode 100644 .python-furo.metadata create mode 100644 SOURCES/furo-2024.08.06-vendor-licenses.txt create mode 100644 SPECS/python-furo.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5a25a7d --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/furo-2024.08.06-vendor.tar.xz +SOURCES/furo-2024.08.06.tar.gz diff --git a/.python-furo.metadata b/.python-furo.metadata new file mode 100644 index 0000000..659bb34 --- /dev/null +++ b/.python-furo.metadata @@ -0,0 +1,2 @@ +57678113b53d5be364404d763467da20a0f8cd35 SOURCES/furo-2024.08.06-vendor.tar.xz +96c9e1eb0d0fbbcb934f1a0765c79da6e1d1a9ba SOURCES/furo-2024.08.06.tar.gz diff --git a/SOURCES/furo-2024.08.06-vendor-licenses.txt b/SOURCES/furo-2024.08.06-vendor-licenses.txt new file mode 100644 index 0000000..57ee66a --- /dev/null +++ b/SOURCES/furo-2024.08.06-vendor-licenses.txt @@ -0,0 +1,14 @@ +yarn run v1.22.22 +$ /tmp/node_modules/.bin/license-checker --summary +├─ MIT: 237 +├─ ISC: 33 +├─ BSD-2-Clause: 15 +├─ BSD-3-Clause: 6 +├─ Apache-2.0: 4 +├─ CC0-1.0: 3 +├─ Python-2.0: 1 +├─ CC-BY-4.0: 1 +├─ CC-BY-3.0: 1 +└─ (MIT AND CC-BY-3.0): 1 + +Done in 0.48s. diff --git a/SPECS/python-furo.spec b/SPECS/python-furo.spec new file mode 100644 index 0000000..7cc8e8d --- /dev/null +++ b/SPECS/python-furo.spec @@ -0,0 +1,206 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.6.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 1; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +%global giturl https://github.com/pradyunsg/furo + +Name: python-furo +Version: 2024.08.06 +Release: %autorelease +Summary: Clean customizable Sphinx documentation theme + +License: MIT +URL: https://pradyunsg.me/furo/ +VCS: git:%{giturl}.git +Source0: %{giturl}/archive/%{version}/furo-%{version}.tar.gz +# Source1 and Source2 created with ./prepare_vendor.sh +Source1: furo-%{version}-vendor.tar.xz +Source2: furo-%{version}-vendor-licenses.txt + +BuildArch: noarch + +BuildRequires: make +BuildRequires: nodejs-devel +BuildRequires: nodejs-npm +BuildRequires: python-sphinx-doc +BuildRequires: python3-devel +BuildRequires: python3-docs +BuildRequires: yarnpkg + +%global _description %{expand: +Furo is a Sphinx theme, which is: +- Intentionally minimal --- the most important thing is the content, not + the scaffolding around it. +- Responsive --- adapting perfectly to the available screen space, to + work on all sorts of devices. +- Customizable --- change the color palette, font families, logo and + more! +- Easy to navigate --- with carefully-designed sidebar navigation and + inter-page links. +- Good looking content --- through clear typography and well-stylized + elements. +- Good looking search --- helps readers find what they want quickly. +- Biased for smaller docsets --- intended for smaller documentation + sets, where presenting the entire hierarchy in the sidebar is not + overwhelming.} + +%description %_description + +%package -n python3-furo +Summary: Clean customizable Sphinx documentation theme + +%description -n python3-furo %_description + +%package doc +Summary: Documentation for %{name} +# This project is MIT. Other files bundled with the documentation have the +# following licenses: +# - searchindex.js: BSD-2-Clause +# - _sources/kitchen-sink/*.rst.txt: CC-BY-SA-4.0 +# - _sphinx_design_static/*: MIT +# - _static/basic.css: BSD-2-Clause +# - _static/check-solid.svg: MIT +# - _static/clipboard.min.js: MIT +# - _static/copy*: MIT +# - _static/debug.css: MIT +# - _static/demo*.png: MIT +# - _static/design*: MIT +# - _static/doctools.js: BSD-2-Clause +# - _static/file.png: BSD-2-Clause +# - _static/language_data.js: BSD-2-Clause +# - _static/minus.png: BSD-2-Clause +# - _static/pied-piper-admonition.css: MIT +# - _static/plus.png: BSD-2-Clause +# - _static/pygments.css: BSD-2-Clause +# - _static/readthedocs-dummy.js: MIT +# - _static/searchtools.js: BSD-2-Clause +# - _static/skeleton.css: MIT +# - _static/sphinx-design.min.css: MIT +# - _static/sphinx_highlight.js: BSD-2-Clause +# - _static/tabs.*: MIT +License: MIT AND BSD-2-Clause AND CC-BY-SA-4.0 + +%description doc +Documentation for %{name}. + +%prep +%autosetup -n furo-%{version} -a1 +cp -p %{SOURCE2} . + +# Don't ship version control files +find . -name .gitignore -delete + +# Substitute the installed nodejs version for the requested version +sed -i 's,^\(node-version = \)".*",\1"%{nodejs_version}",' pyproject.toml + +# 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 + +%generate_buildrequires +%pyproject_buildrequires docs/requirements.txt + +%build +export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1 +export YARN_CACHE_FOLDER="$PWD/.package-cache" +yarn install --offline +nodeenv --node=system --prebuilt --clean-src $PWD/.nodeenv + +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files furo + +# Build documentation +%{py3_test_envvars} sphinx-build -b html docs html +rm -rf html/{.buildinfo,.doctrees} + +%check +# The tests require web access. If any tests show up that can be run without a +# network, do this: +#%%pytest -v +%pyproject_check_import + +%files -n python3-furo -f %{pyproject_files} +%doc README.md +%license LICENSE + +%files doc +%doc html +%license LICENSE + +%changelog +* Sat Jan 04 2025 Arkady L. Shane - 2024.08.06-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Wed Aug 07 2024 Jerry James - 2024.08.06-1 +- Version 2024.08.06 + +* Sun Aug 04 2024 Jerry James - 2024.07.18-1 +- Version 2024.07.18 + +* Fri Jul 19 2024 Fedora Release Engineering - 2024.05.06-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Wed Jul 17 2024 Jerry James - 2024.05.06-2 +- Fix the VCS field + +* Wed Jun 12 2024 Jerry James - 2024.05.06-1 +- Version 2024.05.06 + +* Sun Jun 09 2024 Python Maint - 2024.04.27-2 +- Rebuilt for Python 3.13 + +* Mon Apr 29 2024 Jerry James - 2024.04.27-1 +- Version 2024.04.27 + +* Mon Feb 26 2024 Jerry James - 2024.01.29-1 +- Version 2024.01.29 + +* Fri Jan 26 2024 Fedora Release Engineering - 2023.09.10-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 2023.09.10-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Sep 15 2023 Jerry James - 2023.09.10-1 +- Version 2023.09.10 + +* Fri Jul 21 2023 Fedora Release Engineering - 2023.05.20-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Mon Jul 10 2023 Karolina Surma - 2023.05.20-1 +- Update to new upstream version 2023.05.20 + +* Thu Jun 29 2023 Python Maint - 2023.03.27-2 +- Rebuilt for Python 3.12 + +* Tue Mar 28 2023 Jerry James - 2023.03.27-1 +- Version 2023.03.27 + +* Thu Feb 23 2023 Jerry James - 2022.12.07-2 +- Dynamically generate BuildRequires +- The node header tarball is no longer needed + +* Fri Jan 20 2023 Fedora Release Engineering - 2022.12.07-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Tue Dec 13 2022 Jerry James - 2022.12.07-1 +- Version 2022.12.07 + +* Fri Sep 30 2022 Jerry James - 2022.09.29-1 +- Version 2022.09.29 + +* Thu Aug 25 2022 Jerry James - 2022.06.21-1 +- Initial RPM + +## END: Generated by rpmautospec