diff --git a/pydata-sphinx-theme-0.16.1-vendor-licenses.txt b/pydata-sphinx-theme-0.16.1-vendor-licenses.txt index fa65162..9b6c01c 100644 --- a/pydata-sphinx-theme-0.16.1-vendor-licenses.txt +++ b/pydata-sphinx-theme-0.16.1-vendor-licenses.txt @@ -4,7 +4,7 @@ $ /tmp/node_modules/.bin/license-checker --summary ├─ ISC: 32 ├─ BSD-2-Clause: 15 ├─ BSD-3-Clause: 7 -├─ Apache-2.0: 6 +├─ Apache-2.0: 5 ├─ CC0-1.0: 2 ├─ (CC-BY-4.0 AND OFL-1.1 AND MIT): 1 ├─ MPL-2.0: 1 diff --git a/python-pydata-sphinx-theme.spec b/python-pydata-sphinx-theme.spec index 163a622..15dd904 100644 --- a/python-pydata-sphinx-theme.spec +++ b/python-pydata-sphinx-theme.spec @@ -13,6 +13,7 @@ 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 @@ -32,11 +33,6 @@ 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 @@ -44,22 +40,25 @@ 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.8 +Provides: bundled(js-bootstrap) = 5.3.3 %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 5 grid system, and cards layout. +- The panels directive creates panels of content in a grid layout, + utilizing both the Bootstrap 4 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. @@ -69,21 +68,14 @@ 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 -%if %{without docs} -Obsoletes: %{name}-doc < 0.13.0-1 -%endif - -%description -n python3-pydata-sphinx-theme -%_description +%description -n python3-pydata-sphinx-theme %_description %if %{with docs} %package doc @@ -95,8 +87,6 @@ Documentation for pydata-sphinx-theme. %prep %autosetup -n pydata-sphinx-theme-%{version} -p1 -a1 - -%conf cp -p %{SOURCE2} . %if %{with docs} @@ -107,23 +97,26 @@ 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 -%build -p +%generate_buildrequires +%pyproject_buildrequires -x test%{?with_docs:,doc} + +%build export YARN_CACHE_FOLDER="$PWD/.package-cache" yarn install --offline nodeenv --node=system --prebuilt --clean-src $PWD/.nodeenv -%install -a +%pyproject_wheel + +%install %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 diff --git a/sources b/sources index 9561b12..fa6f89a 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (pydata-sphinx-theme-0.16.1.tar.gz) = a72d5be0dfdd11ffac8ed60521121053343869234b7fc1a5d2ac3b5a78cc3b00afdb7875608bd7cdb455d1bfa92dfdffcf541310aed211f6eb49a6ce29f2c045 -SHA512 (pydata-sphinx-theme-0.16.1-vendor.tar.xz) = 601ccbd08a688fbc46635e72c05e4ce134286b0f4a6ab45e8cb8ccdc3bc1f407dc0e12508343c4eb240e9d0f8adb25b4734f2f472a4036fddc29eb63130bd4a7 +SHA512 (pydata-sphinx-theme-0.16.1-vendor.tar.xz) = 60e59e3105d07273ddce5756a9699cf2e46e555666db5c915de385bc59f65ca6778df6cba877a3b0e319b1f1fd3dee262d6e3bece43f0a0aabeae3d756567d58