Compare commits

..

7 commits

Author SHA1 Message Date
Jerry James
4d6a96274c Adapt to removal of %{nodejs_version}
- Update the nodejs packages
2025-12-09 16:38:38 -07:00
Jerry James
5d9e552654 Do not run code coverage tools 2025-11-03 17:06:06 -07:00
Python Maint
295e69321d Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 14:04:20 +02:00
Python Maint
ce90274552 Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 14:28:43 +02:00
Fedora Release Engineering
31062250cc Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 09:34:23 +00:00
Jerry James
0fe2a8140a Update bundled bootstrap to version 5.3.7
- Use the pyproject declarative buildsystem
2025-07-18 20:54:18 -06:00
Python Maint
82e0d2bd04 Rebuilt for Python 3.14 2025-06-03 23:35:16 +02:00
3 changed files with 30 additions and 23 deletions

View file

@ -4,7 +4,7 @@ $ /tmp/node_modules/.bin/license-checker --summary
├─ ISC: 32
├─ BSD-2-Clause: 15
├─ BSD-3-Clause: 7
├─ Apache-2.0: 5
├─ Apache-2.0: 6
├─ CC0-1.0: 2
├─ (CC-BY-4.0 AND OFL-1.1 AND MIT): 1
├─ MPL-2.0: 1

View file

@ -13,7 +13,6 @@ Summary: Bootstrap-based Sphinx theme from the PyData community
# This project is BSD-3-Clause.
# The bundled bootstrap JavaScript library is MIT.
License: BSD-3-Clause AND MIT
BuildArch: noarch
URL: https://pydata-sphinx-theme.readthedocs.io/
VCS: git:%{giturl}.git
Source0: %{giturl}/archive/v%{version}/pydata-sphinx-theme-%{version}.tar.gz
@ -33,6 +32,11 @@ Source3: pydata-gallery.tar.xz
# Fedora-only patch: unbundle the fontawesome fonts
Patch: %{name}-fontawesome.patch
BuildArch: noarch
BuildSystem: pyproject
BuildOption(install): -L pydata_sphinx_theme
BuildOption(generate_buildrequires): -x test%{?with_docs:,doc}
BuildRequires: babel
BuildRequires: fontawesome-fonts-all
BuildRequires: fontawesome-fonts-web
@ -40,25 +44,22 @@ BuildRequires: gcc-c++
BuildRequires: make
BuildRequires: nodejs-devel
BuildRequires: nodejs-npm
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-soupsieve
BuildRequires: yarnpkg
Provides: bundled(js-bootstrap) = 5.3.3
Provides: bundled(js-bootstrap) = 5.3.8
%if %{without docs}
Obsoletes: %{name}-doc < 0.13.0-1
%endif
%global _description %{expand:
This package contains a Sphinx extension for creating document components
%global _description %{expand:This package contains a Sphinx extension for creating document components
optimized for HTML+CSS.
- The panels directive creates panels of content in a grid layout,
utilizing both the Bootstrap 4 grid system, and cards layout.
- The panels directive creates panels of content in a grid layout, utilizing
both the Bootstrap 5 grid system, and cards layout.
- The link-button directive creates a clickable button, linking to a URL
or reference, and can also be used to make an entire panel clickable.
- The link-button directive creates a clickable button, linking to a URL or
reference, and can also be used to make an entire panel clickable.
- The dropdown directive creates content that can be toggled.
@ -68,14 +69,21 @@ optimized for HTML+CSS.
See https://pydata-sphinx-theme.readthedocs.io/ for documentation.}
%description %_description
%description
%_description
%package -n python3-pydata-sphinx-theme
Summary: Bootstrap-based Sphinx theme from the PyData community
Requires: fontawesome-fonts-all
Requires: fontawesome-fonts-web
Provides: bundled(js-bootstrap) = 5.3.7
%description -n python3-pydata-sphinx-theme %_description
%if %{without docs}
Obsoletes: %{name}-doc < 0.13.0-1
%endif
%description -n python3-pydata-sphinx-theme
%_description
%if %{with docs}
%package doc
@ -87,6 +95,8 @@ Documentation for pydata-sphinx-theme.
%prep
%autosetup -n pydata-sphinx-theme-%{version} -p1 -a1
%conf
cp -p %{SOURCE2} .
%if %{with docs}
@ -97,26 +107,23 @@ sed -i 's,https://pydata-sphinx-theme\.readthedocs\.io/en/latest/,,' docs/conf.p
%endif
# Substitute the installed nodejs version for the requested version
%global nodejs_version %(%{_bindir}/node -v | sed s/v//)
sed -i 's,^\(node-version = \)".*",\1"%{nodejs_version}",' pyproject.toml
%generate_buildrequires -p
# The Fedora sphinx package does not provide sphinx[test]
sed -i 's/\(sphinx\)\[test\]/\1/' pyproject.toml
# Do not run code coverage tools
sed -i 's/, "pytest-cov"//' pyproject.toml
%generate_buildrequires
%pyproject_buildrequires -x test%{?with_docs:,doc}
%build
%build -p
export YARN_CACHE_FOLDER="$PWD/.package-cache"
yarn install --offline
nodeenv --node=system --prebuilt --clean-src $PWD/.nodeenv
%pyproject_wheel
%install
%install -a
%define instdir %{buildroot}%{python3_sitelib}/pydata_sphinx_theme
%define themedir %{instdir}/theme/pydata_sphinx_theme/static
%pyproject_install
%pyproject_save_files -L pydata_sphinx_theme
sed -i '/\.gitignore/d' %{pyproject_files}
rm %{themedir}/.gitignore

View file

@ -1,2 +1,2 @@
SHA512 (pydata-sphinx-theme-0.16.1.tar.gz) = a72d5be0dfdd11ffac8ed60521121053343869234b7fc1a5d2ac3b5a78cc3b00afdb7875608bd7cdb455d1bfa92dfdffcf541310aed211f6eb49a6ce29f2c045
SHA512 (pydata-sphinx-theme-0.16.1-vendor.tar.xz) = 60e59e3105d07273ddce5756a9699cf2e46e555666db5c915de385bc59f65ca6778df6cba877a3b0e319b1f1fd3dee262d6e3bece43f0a0aabeae3d756567d58
SHA512 (pydata-sphinx-theme-0.16.1-vendor.tar.xz) = 601ccbd08a688fbc46635e72c05e4ce134286b0f4a6ab45e8cb8ccdc3bc1f407dc0e12508343c4eb240e9d0f8adb25b4734f2f472a4036fddc29eb63130bd4a7