Compare commits
6 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6ef74b9780 | ||
|
|
5e0964fdbd | ||
|
|
4560c41e9f | ||
|
|
4a9be6de5b | ||
|
|
7ff1f01f11 | ||
|
|
37e1dd7dc1 |
1 changed files with 18 additions and 17 deletions
|
|
@ -6,7 +6,6 @@ Release: %autorelease
|
||||||
Summary: Diff and merge of Jupyter notebooks
|
Summary: Diff and merge of Jupyter notebooks
|
||||||
|
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
BuildArch: noarch
|
|
||||||
URL: https://nbdime.readthedocs.io/
|
URL: https://nbdime.readthedocs.io/
|
||||||
VCS: git:%{giturl}.git
|
VCS: git:%{giturl}.git
|
||||||
Source0: %{giturl}/archive/v%{version}/nbdime-%{version}.tar.gz
|
Source0: %{giturl}/archive/v%{version}/nbdime-%{version}.tar.gz
|
||||||
|
|
@ -22,7 +21,12 @@ Patch: %{name}-unbundle-fontawesome.patch
|
||||||
# components for x86_64 and aarch64 only. Check later releases to see if
|
# components for x86_64 and aarch64 only. Check later releases to see if
|
||||||
# the nx version has rolled forward to a version that supports more
|
# the nx version has rolled forward to a version that supports more
|
||||||
# architectures
|
# architectures
|
||||||
ExclusiveArch: x86_64 aarch64
|
ExclusiveArch: %{x86_64} %{arm64} noarch
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildSystem: pyproject
|
||||||
|
BuildOption(generate_buildrequires): -x docs,test
|
||||||
|
BuildOption(install): -l nbdime
|
||||||
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: fontawesome-fonts-web
|
BuildRequires: fontawesome-fonts-web
|
||||||
|
|
@ -32,12 +36,10 @@ BuildRequires: help2man
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: nodejs-devel
|
BuildRequires: nodejs-devel
|
||||||
BuildRequires: nodejs-npm
|
BuildRequires: nodejs-npm
|
||||||
BuildRequires: python3-devel
|
|
||||||
BuildRequires: python3-docs
|
BuildRequires: python3-docs
|
||||||
BuildRequires: yarnpkg
|
BuildRequires: yarnpkg
|
||||||
|
|
||||||
%global _desc %{expand:
|
%global _desc %{expand:Nbdime provides tools for diffing and merging of Jupyter notebooks.
|
||||||
Nbdime provides tools for diffing and merging of Jupyter notebooks.
|
|
||||||
|
|
||||||
- nbdiff: compare notebooks in a terminal-friendly way
|
- nbdiff: compare notebooks in a terminal-friendly way
|
||||||
- nbmerge: three-way merge of notebooks with automatic conflict resolution
|
- nbmerge: three-way merge of notebooks with automatic conflict resolution
|
||||||
|
|
@ -45,7 +47,8 @@ Nbdime provides tools for diffing and merging of Jupyter notebooks.
|
||||||
- nbmerge-web: gives you a web-based three-way merge tool for notebooks
|
- nbmerge-web: gives you a web-based three-way merge tool for notebooks
|
||||||
- nbshow: present a single notebook in a terminal-friendly way}
|
- nbshow: present a single notebook in a terminal-friendly way}
|
||||||
|
|
||||||
%description %_desc
|
%description
|
||||||
|
%_desc
|
||||||
|
|
||||||
%package -n python3-nbdime
|
%package -n python3-nbdime
|
||||||
# The nbdime project is released under the BSD-3-Clause license.
|
# The nbdime project is released under the BSD-3-Clause license.
|
||||||
|
|
@ -191,7 +194,8 @@ Provides: bundled(npm(w3c-keyname)) = 2.2.8
|
||||||
Provides: bundled(npm(y-protocols)) = 1.0.6
|
Provides: bundled(npm(y-protocols)) = 1.0.6
|
||||||
Provides: bundled(npm(yjs)) = 13.6.18
|
Provides: bundled(npm(yjs)) = 13.6.18
|
||||||
|
|
||||||
%description -n python3-nbdime %_desc
|
%description -n python3-nbdime
|
||||||
|
%_desc
|
||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
# The content is BSD-3-Clause. Other licenses are due to Sphinx files.
|
# The content is BSD-3-Clause. Other licenses are due to Sphinx files.
|
||||||
|
|
@ -222,6 +226,7 @@ Documentation for %{name}.
|
||||||
%autosetup -n nbdime-%{version} -a1 -p1
|
%autosetup -n nbdime-%{version} -a1 -p1
|
||||||
cp -p %{SOURCE2} .
|
cp -p %{SOURCE2} .
|
||||||
|
|
||||||
|
%conf
|
||||||
# Remove useless shebangs
|
# Remove useless shebangs
|
||||||
sed -i '\,#!/usr/bin/env,d' \
|
sed -i '\,#!/usr/bin/env,d' \
|
||||||
nbdime/diffing/directorydiff.py \
|
nbdime/diffing/directorydiff.py \
|
||||||
|
|
@ -236,30 +241,26 @@ sed -i '\,#!/usr/bin/env,d' \
|
||||||
sed -e "s|\('https://docs\.python\.org/3\.5', \)None|\1'%{_docdir}/python3-docs/html/objects.inv'|" \
|
sed -e "s|\('https://docs\.python\.org/3\.5', \)None|\1'%{_docdir}/python3-docs/html/objects.inv'|" \
|
||||||
-i docs/source/conf.py
|
-i docs/source/conf.py
|
||||||
|
|
||||||
|
%generate_buildrequires -p
|
||||||
# Do not depend on jupyter_server_mathjax; it doesn't work in jupyterlab 4.10+
|
# Do not depend on jupyter_server_mathjax; it doesn't work in jupyterlab 4.10+
|
||||||
# https://github.com/jupyter-server/jupyter_server_mathjax/issues/20
|
# https://github.com/jupyter-server/jupyter_server_mathjax/issues/20
|
||||||
sed -i '/jupyter_server_mathjax/d' pyproject.toml
|
sed -i '/jupyter_server_mathjax/d' pyproject.toml
|
||||||
|
# Do not run code coverage tools
|
||||||
|
sed -i '/pytest-cov/d' pyproject.toml
|
||||||
|
|
||||||
%generate_buildrequires
|
%build -p
|
||||||
%pyproject_buildrequires -x docs,test
|
|
||||||
|
|
||||||
%build
|
|
||||||
export YARN_CACHE_FOLDER="$PWD/.package-cache"
|
export YARN_CACHE_FOLDER="$PWD/.package-cache"
|
||||||
export npm_config_nodedir=%{_includedir}/node
|
export npm_config_nodedir=%{_includedir}/node
|
||||||
export CFLAGS='%{build_cflags} -I%{_includedir}/node'
|
export CFLAGS='%{build_cflags} -I%{_includedir}/node'
|
||||||
export CXXFLAGS='%{build_cxxflags} -I%{_includedir}/node'
|
export CXXFLAGS='%{build_cxxflags} -I%{_includedir}/node'
|
||||||
yarn install --offline
|
yarn install --offline
|
||||||
|
|
||||||
%pyproject_wheel
|
%build -a
|
||||||
|
|
||||||
# Build the documentation
|
# Build the documentation
|
||||||
PYTHONPATH=$PWD make -C docs html
|
PYTHONPATH=$PWD make -C docs html
|
||||||
rm docs/build/html/.buildinfo
|
rm docs/build/html/.buildinfo
|
||||||
|
|
||||||
%install
|
%install -a
|
||||||
%pyproject_install
|
|
||||||
%pyproject_save_files -l nbdime
|
|
||||||
|
|
||||||
# Move the configuration files to the standard Jupyter directories
|
# Move the configuration files to the standard Jupyter directories
|
||||||
mv %{buildroot}%{_prefix}%{_sysconfdir} %{buildroot}%{_sysconfdir}
|
mv %{buildroot}%{_prefix}%{_sysconfdir} %{buildroot}%{_sysconfdir}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue