The package rpms/python-jupyter-cache.git has added or updated architecture specific content in its spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s): https://src.fedoraproject.org/cgit/rpms/python-jupyter-cache.git/commit/?id=....
Change: +%ifarch x86_64 aarch64
Thanks.
Full change: ============
commit d72d1fecf4d346b24d11d09fa978f489c6d02759 Author: Jerry James loganjerry@gmail.com Date: Thu Jun 20 15:56:26 2024 -0600
Initial RPM
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dceecf5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/jupyter-cache-*.tar.gz diff --git a/python-jupyter-cache.spec b/python-jupyter-cache.spec new file mode 100644 index 0000000..02e4175 --- /dev/null +++ b/python-jupyter-cache.spec @@ -0,0 +1,113 @@ +# We cannot build the documentation due to missing dependencies: +# myst-nb, sphinx-book-theme +%bcond doc 0 + +# python-jupytext cannot be built for s390x at present +# python-nbdime can only be built for x86_64 and aarch64 at present +%ifarch x86_64 aarch64 +%bcond test 1 +%else +%bcond test 0 +%endif + +Name: python-jupyter-cache +Version: 1.0.0 +Release: %autorelease +Summary: Manage a cache of Jupyter notebooks + +License: MIT +BuildArch: noarch +URL: https://jupyter-cache.readthedocs.io/ +VCS: https://github.com/executablebooks/jupyter-cache +Source0: %{vcs}/archive/v%{version}/jupyter-cache-%{version}.tar.gz + +BuildRequires: help2man +BuildRequires: python3-devel + +%if %{with doc} +BuildRequires: make +BuildRequires: python3-docs +%endif + +%global _desc %{expand: +This package provides a defined interface for working with a cache of +Jupyter notebooks. It is useful if you have a number of notebooks whose +execution outputs you want to ensure are kept up to date, without having +to re-execute them every time (particularly for long running code, or +text-based formats that do not store the outputs). + +The notebooks must have deterministic execution outputs: + +- You use the same environment to run them (e.g. the same installed + packages) +- They run no nondeterministic code (e.g. random numbers) +- They do not depend on external resources (e.g. files or network + connections) that change over time} + +%description %_desc + +%package -n python3-jupyter-cache +Summary: %{summary} +Recommends: %{py3_dist jupytext} +Recommends: %{py3_dist nbdime} + +%description -n python3-jupyter-cache %_desc + +%if %{with doc} +%package doc +Summary: Documentation for %{name} + +%description doc +Documentation for %{name}. +%endif + +%pyproject_extras_subpkg -n python3-jupyter-cache cli + +%prep +%autosetup -n jupyter-cache-%{version} + +# Use local objects.inv for intersphinx +sed -e 's|("https://docs%5C.python%5C.org/%5B.%5B:digit:%5D%5D*", )None|\1"%{_docdir}/python3-docs/html/objects.inv"|' \ + -i docs/conf.py + +%generate_buildrequires +%pyproject_buildrequires -x cli%{?with_doc:,rtd}%{?with_test:,testing -t} + +%build +%pyproject_wheel + +%if %{with doc} +# Build the documentation +PYTHONPATH=$PWD make -C docs html +rm docs/_build/html/.buildinfo +%endif + +%install +%pyproject_install +%pyproject_save_files -L jupyter_cache + +export PYTHONPATH=%{buildroot}%{python3_sitelib} +mkdir -p %{buildroot}%{_mandir}/man1 +help2man -N --version-string=%{version} \ + -n 'Manage a cache of Jupyter notebooks' \ + -o %{buildroot}%{_mandir}/man1/jcache.1 %{buildroot}%{_bindir}/jcache + +%if %{with test} +%check +%tox +%endif + +%files -n python3-jupyter-cache -f %{pyproject_files} +%doc CHANGELOG.md README.md +%license LICENSE +%{_bindir}/jcache +%{_mandir}/man1/jcache.1* + +%if %{with doc} +%files doc +%doc doc/_build/html +%license LICENSE +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..db49828 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (jupyter-cache-1.0.0.tar.gz) = e563774e171896f3167baf39905650b83aa630837cf3446eb4507eb90453f1f5d497a5b81b70ee9eabdfab0830ec0ca31aa8e0dc1d342ce8658cbb11126c54ea