Compare commits
7 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4d6a96274c | ||
|
|
5d9e552654 | ||
|
|
295e69321d | ||
|
|
ce90274552 | ||
|
|
31062250cc | ||
|
|
0fe2a8140a | ||
|
|
82e0d2bd04 |
3 changed files with 30 additions and 22 deletions
|
|
@ -4,7 +4,7 @@ $ /tmp/node_modules/.bin/license-checker --summary
|
||||||
├─ ISC: 32
|
├─ ISC: 32
|
||||||
├─ BSD-2-Clause: 15
|
├─ BSD-2-Clause: 15
|
||||||
├─ BSD-3-Clause: 7
|
├─ BSD-3-Clause: 7
|
||||||
├─ Apache-2.0: 5
|
├─ Apache-2.0: 6
|
||||||
├─ CC0-1.0: 2
|
├─ CC0-1.0: 2
|
||||||
├─ (CC-BY-4.0 AND OFL-1.1 AND MIT): 1
|
├─ (CC-BY-4.0 AND OFL-1.1 AND MIT): 1
|
||||||
├─ MPL-2.0: 1
|
├─ MPL-2.0: 1
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,6 @@ Summary: Bootstrap-based Sphinx theme from the PyData community
|
||||||
# This project is BSD-3-Clause.
|
# This project is BSD-3-Clause.
|
||||||
# The bundled bootstrap JavaScript library is MIT.
|
# The bundled bootstrap JavaScript library is MIT.
|
||||||
License: BSD-3-Clause AND MIT
|
License: BSD-3-Clause AND MIT
|
||||||
BuildArch: noarch
|
|
||||||
URL: https://pydata-sphinx-theme.readthedocs.io/
|
URL: https://pydata-sphinx-theme.readthedocs.io/
|
||||||
VCS: git:%{giturl}.git
|
VCS: git:%{giturl}.git
|
||||||
Source0: %{giturl}/archive/v%{version}/pydata-sphinx-theme-%{version}.tar.gz
|
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
|
# Fedora-only patch: unbundle the fontawesome fonts
|
||||||
Patch: %{name}-fontawesome.patch
|
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: babel
|
||||||
BuildRequires: fontawesome-fonts-all
|
BuildRequires: fontawesome-fonts-all
|
||||||
BuildRequires: fontawesome-fonts-web
|
BuildRequires: fontawesome-fonts-web
|
||||||
|
|
@ -40,24 +44,22 @@ BuildRequires: gcc-c++
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: nodejs-devel
|
BuildRequires: nodejs-devel
|
||||||
BuildRequires: nodejs-npm
|
BuildRequires: nodejs-npm
|
||||||
BuildRequires: python3-devel
|
|
||||||
BuildRequires: yarnpkg
|
BuildRequires: yarnpkg
|
||||||
|
|
||||||
Provides: bundled(js-bootstrap) = 5.3.3
|
Provides: bundled(js-bootstrap) = 5.3.8
|
||||||
|
|
||||||
%if %{without docs}
|
%if %{without docs}
|
||||||
Obsoletes: %{name}-doc < 0.13.0-1
|
Obsoletes: %{name}-doc < 0.13.0-1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%global _description %{expand:
|
%global _description %{expand:This package contains a Sphinx extension for creating document components
|
||||||
This package contains a Sphinx extension for creating document components
|
|
||||||
optimized for HTML+CSS.
|
optimized for HTML+CSS.
|
||||||
|
|
||||||
- The panels directive creates panels of content in a grid layout,
|
- The panels directive creates panels of content in a grid layout, utilizing
|
||||||
utilizing both the Bootstrap 4 grid system, and cards layout.
|
both the Bootstrap 5 grid system, and cards layout.
|
||||||
|
|
||||||
- The link-button directive creates a clickable button, linking to a URL
|
- The link-button directive creates a clickable button, linking to a URL or
|
||||||
or reference, and can also be used to make an entire panel clickable.
|
reference, and can also be used to make an entire panel clickable.
|
||||||
|
|
||||||
- The dropdown directive creates content that can be toggled.
|
- The dropdown directive creates content that can be toggled.
|
||||||
|
|
||||||
|
|
@ -67,14 +69,21 @@ optimized for HTML+CSS.
|
||||||
|
|
||||||
See https://pydata-sphinx-theme.readthedocs.io/ for documentation.}
|
See https://pydata-sphinx-theme.readthedocs.io/ for documentation.}
|
||||||
|
|
||||||
%description %_description
|
%description
|
||||||
|
%_description
|
||||||
|
|
||||||
%package -n python3-pydata-sphinx-theme
|
%package -n python3-pydata-sphinx-theme
|
||||||
Summary: Bootstrap-based Sphinx theme from the PyData community
|
Summary: Bootstrap-based Sphinx theme from the PyData community
|
||||||
Requires: fontawesome-fonts-all
|
Requires: fontawesome-fonts-all
|
||||||
Requires: fontawesome-fonts-web
|
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}
|
%if %{with docs}
|
||||||
%package doc
|
%package doc
|
||||||
|
|
@ -86,6 +95,8 @@ Documentation for pydata-sphinx-theme.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n pydata-sphinx-theme-%{version} -p1 -a1
|
%autosetup -n pydata-sphinx-theme-%{version} -p1 -a1
|
||||||
|
|
||||||
|
%conf
|
||||||
cp -p %{SOURCE2} .
|
cp -p %{SOURCE2} .
|
||||||
|
|
||||||
%if %{with docs}
|
%if %{with docs}
|
||||||
|
|
@ -96,26 +107,23 @@ sed -i 's,https://pydata-sphinx-theme\.readthedocs\.io/en/latest/,,' docs/conf.p
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Substitute the installed nodejs version for the requested version
|
# 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
|
sed -i 's,^\(node-version = \)".*",\1"%{nodejs_version}",' pyproject.toml
|
||||||
|
|
||||||
|
%generate_buildrequires -p
|
||||||
# The Fedora sphinx package does not provide sphinx[test]
|
# The Fedora sphinx package does not provide sphinx[test]
|
||||||
sed -i 's/\(sphinx\)\[test\]/\1/' pyproject.toml
|
sed -i 's/\(sphinx\)\[test\]/\1/' pyproject.toml
|
||||||
|
# Do not run code coverage tools
|
||||||
|
sed -i 's/, "pytest-cov"//' pyproject.toml
|
||||||
|
|
||||||
%generate_buildrequires
|
%build -p
|
||||||
%pyproject_buildrequires -x test%{?with_docs:,doc}
|
|
||||||
|
|
||||||
%build
|
|
||||||
export YARN_CACHE_FOLDER="$PWD/.package-cache"
|
export YARN_CACHE_FOLDER="$PWD/.package-cache"
|
||||||
yarn install --offline
|
yarn install --offline
|
||||||
nodeenv --node=system --prebuilt --clean-src $PWD/.nodeenv
|
nodeenv --node=system --prebuilt --clean-src $PWD/.nodeenv
|
||||||
|
|
||||||
%pyproject_wheel
|
%install -a
|
||||||
|
|
||||||
%install
|
|
||||||
%define instdir %{buildroot}%{python3_sitelib}/pydata_sphinx_theme
|
%define instdir %{buildroot}%{python3_sitelib}/pydata_sphinx_theme
|
||||||
%define themedir %{instdir}/theme/pydata_sphinx_theme/static
|
%define themedir %{instdir}/theme/pydata_sphinx_theme/static
|
||||||
%pyproject_install
|
|
||||||
%pyproject_save_files -L pydata_sphinx_theme
|
|
||||||
sed -i '/\.gitignore/d' %{pyproject_files}
|
sed -i '/\.gitignore/d' %{pyproject_files}
|
||||||
rm %{themedir}/.gitignore
|
rm %{themedir}/.gitignore
|
||||||
|
|
||||||
|
|
|
||||||
2
sources
2
sources
|
|
@ -1,2 +1,2 @@
|
||||||
SHA512 (pydata-sphinx-theme-0.16.1.tar.gz) = a72d5be0dfdd11ffac8ed60521121053343869234b7fc1a5d2ac3b5a78cc3b00afdb7875608bd7cdb455d1bfa92dfdffcf541310aed211f6eb49a6ce29f2c045
|
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue