86 lines
2.9 KiB
RPMSpec
86 lines
2.9 KiB
RPMSpec
%global _empty_manifest_terminate_build 0
|
|
Name: python-jupytext
|
|
Version: 1.15.2
|
|
Release: 1
|
|
Summary: Jupyter notebooks as Markdown documents, Julia, Python or R scripts.
|
|
License: MIT
|
|
URL: https://github.com/mwouts/jupytext
|
|
Source0: https://files.pythonhosted.org/packages/c2/fe/48eaa55a525a6827989a2ce7d85c3131eb2c4a8eac6a133591ebb4ee5085/jupytext-1.15.2.tar.gz
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
BuildRequires: python3-pbr
|
|
BuildRequires: python3-pip
|
|
BuildRequires: python3-wheel
|
|
BuildRequires: python3-hatchling
|
|
BuildRequires: python3-jupyter-packaging
|
|
BuildRequires: python3-jupyterlab
|
|
|
|
%description
|
|
Jupyter notebooks as Markdown documents, Julia, Python or R scripts.
|
|
|
|
%package -n python3-jupytext
|
|
Summary: Jupyter notebooks as Markdown documents, Julia, Python or R scripts.
|
|
Provides: python-jupytext
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
BuildRequires: python3-hatchling
|
|
%description -n python3-jupytext
|
|
Jupyter notebooks as Markdown documents, Julia, Python or R scripts.
|
|
|
|
%package help
|
|
Summary: Development documents and examples for jupytext
|
|
Provides: python3-jupytext-doc
|
|
|
|
%description help
|
|
Development documents and examples for jupytext.
|
|
|
|
%prep
|
|
%autosetup -n jupytext-%{version}
|
|
sed -i 's/\~=/\>=/g' pyproject.toml
|
|
|
|
%build
|
|
%pyproject_build
|
|
|
|
%install
|
|
%pyproject_install
|
|
install -m 0755 -p -d %{buildroot}%{_sysconfdir}/jupyter/jupyter_notebook_config.d
|
|
install -m 0755 -p -d %{buildroot}%{_sysconfdir}/jupyter/jupyter_server_config.d
|
|
install -m 0755 -p -d %{buildroot}%{_sysconfdir}/jupyter/nbconfig/notebook.d
|
|
mv -v %{buildroot}{%{_prefix},}%{_sysconfdir}/jupyter/jupyter_notebook_config.d/jupytext.json
|
|
mv -v %{buildroot}{%{_prefix},}%{_sysconfdir}/jupyter/jupyter_server_config.d/jupytext.json
|
|
mv -v %{buildroot}{%{_prefix},}%{_sysconfdir}/jupyter/nbconfig/notebook.d/jupytext.json
|
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
|
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
|
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
|
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
|
pushd %{buildroot}
|
|
touch doclist.lst
|
|
if [ -d usr/share/man ]; then
|
|
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
|
fi
|
|
popd
|
|
mv %{buildroot}/doclist.lst .
|
|
|
|
%files -n python3-jupytext
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{_bindir}/jupytext
|
|
%{_bindir}/jupytext-config
|
|
%config(noreplace) %{_sysconfdir}/jupyter/jupyter_notebook_config.d/jupytext.json
|
|
%config(noreplace) %{_sysconfdir}/jupyter/jupyter_server_config.d/jupytext.json
|
|
%config(noreplace) %{_sysconfdir}/jupyter/nbconfig/notebook.d/jupytext.json
|
|
%{_datadir}/jupyter/nbextensions/jupytext/
|
|
%{python3_sitelib}/jupytext
|
|
%{python3_sitelib}/jupytext*.dist-info/
|
|
|
|
|
|
%files help -f doclist.lst
|
|
%{_docdir}/*
|
|
|
|
%changelog
|
|
* Wed Nov 29 2023 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 1.15.2-1
|
|
- Init package
|