diff --git a/nbformat-5.4.0.tar.gz b/nbformat-5.4.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..d62eb5bdc67b2173b303fbb91080b043630f31aa Binary files /dev/null and b/nbformat-5.4.0.tar.gz differ diff --git a/python-nbformat.spec b/python-nbformat.spec new file mode 100644 index 0000000000000000000000000000000000000000..216a4976ea7e9285018561f9e306c6fd9f42eede --- /dev/null +++ b/python-nbformat.spec @@ -0,0 +1,85 @@ +%global _empty_manifest_terminate_build 0 +Name: python-nbformat +Version: 5.4.0 +Release: 1 +Summary: The Jupyter Notebook format +License: BSD +URL: http://jupyter.org +Source0: https://files.pythonhosted.org/packages/2c/ed/ce3e63f5e757442cbb01ac45683fb0338d48f7e824606957d933bc831a58/nbformat-5.4.0.tar.gz +BuildArch: noarch +%description + This package contains the base implementation of the Jupyter Notebook format, +and Python APIs for working with notebooks. + +%package -n python3-nbformat +Summary: The Jupyter Notebook format +Provides: python-nbformat +# Base build requires +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +# General requires +BuildRequires: python3-traitlets +BuildRequires: python3-jsonschema +BuildRequires: python3-jupyter-core +Requires: python3-jsonschema +Requires: python3-fastjsonschema + +%description -n python3-nbformat +This package contains the base implementation of the Jupyter Notebook format, +and Python APIs for working with notebooks. + +%package help +Summary: The Jupyter Notebook format +Provides: python3-nbformat-doc +%description help +This package contains the base implementation of the Jupyter Notebook format, +and Python APIs for working with notebooks. + +%prep +%autosetup -n nbformat-%{version} + +%build +%py3_build + +%install +%py3_install + +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} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +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}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-nbformat -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Jul 18 2022 OpenStack_SIG - 5.4.0-1 +- Init package python3-nbformat of version 5.4.0 +