## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 5; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: python-pari-jupyter Version: 1.4.3 Release: %autorelease Summary: Jupyter kernel for PARI/GP License: GPL-3.0-or-later URL: https://github.com/sagemath/pari-jupyter VCS: git:%{url}.git Source: %{url}/archive/%{version}/pari-jupyter-%{version}.tar.gz # Adapt to recent versions of pari Patch: %{name}-pari.patch # See https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} BuildRequires: gcc BuildRequires: pari-devel BuildRequires: pari-gp BuildRequires: pkgconfig(readline) BuildRequires: python3-devel BuildRequires: %{py3_dist cython} BuildRequires: %{py3_dist docutils} BuildRequires: %{py3_dist jupyter_kernel_test} %description This package contains a Jupyter kernel for PARI/GP. %package -n python3-pari-jupyter Summary: Jupyter kernel for PARI/GP Requires: pari-gp Requires: python-jupyter-filesystem %py_provides python3-PARIKernel %description -n python3-pari-jupyter This package contains a Jupyter kernel for PARI/GP. %prep %autosetup -n pari-jupyter-%{version} -p1 %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel rst2html --no-datestamp README.rst README.html %install %pyproject_install # Move the config file to the right place mkdir -p %{buildroot}%{_sysconfdir}/jupyter/nbconfig mv %{buildroot}%{_prefix}%{_sysconfdir}/jupyter/nbconfig/notebook.d \ %{buildroot}%{_sysconfdir}/jupyter/nbconfig rm -fr %{buildroot}%{_prefix}%{_sysconfdir} %check export IPYTHONDIR=$PWD/.ipython mkdir .ipython ln -s %{buildroot}%{_datadir}/jupyter/kernels .ipython ln -s %{buildroot}%{_datadir}/jupyter/nbextensions .ipython cd test %{py3_test_envvars} %{python3} test_pari_jupyter_kernel.py cd - rm -fr .ipython %files -n python3-pari-jupyter %doc README.html %config(noreplace) %{_sysconfdir}/jupyter/nbconfig/notebook.d/gp-mode.json %{_datadir}/jupyter/kernels/pari_jupyter/ %{_datadir}/jupyter/nbextensions/gp-mode/ %{python3_sitearch}/PARIKernel/ %{python3_sitearch}/pari_jupyter* %changelog ## START: Generated by rpmautospec * Sat Oct 05 2024 Jerry James - 1.4.3-5 - Rebuild for pari 2.17.0 * Fri Jul 19 2024 Fedora Release Engineering - 1.4.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jul 17 2024 Jerry James - 1.4.3-3 - Add VCS field * Sun Jun 09 2024 Python Maint - 1.4.3-2 - Rebuilt for Python 3.13 * Sat Mar 23 2024 Jerry James - 1.4.3-1 - Version 1.4.3 - Drop upstreamed Cython 3 patch * Fri Jan 26 2024 Fedora Release Engineering - 1.4.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.4.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Tue Jan 16 2024 Jerry James - 1.4.2-3 - Stop building for 32-bit x86 * Fri Jul 21 2023 Jerry James - 1.4.2-3 - Add patch to fix build with Cython 3 * Fri Jul 21 2023 Fedora Release Engineering - 1.4.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jul 07 2023 Python Maint - 1.4.2-2 - Rebuilt for Python 3.12 * Fri Jun 9 2023 Jerry James - 1.4.2-1 - Version 1.4.2 * Thu Feb 23 2023 Jerry James - 1.4.1-5 - Dynamically generate BuildRequires - Add %%check script * Fri Jan 20 2023 Fedora Release Engineering - 1.4.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Sep 27 2022 Jerry James - 1.4.1-4 - Rebuild for pari 2.15.0 - Convert License tag to SPDX * Fri Jul 22 2022 Fedora Release Engineering - 1.4.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 15 2022 Python Maint - 1.4.1-2 - Rebuilt for Python 3.11 * Tue Jan 25 2022 Jerry James - 1.4.1-1 - Version 1.4.1 - Drop upstreamed -cython patch * Fri Jan 21 2022 Fedora Release Engineering - 1.3.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Aug 13 2021 Jerry James - 1.3.2-2 - Provide python3-PARIKernel - Trim the -pari patch down to the essentials - Provide URLs for upstream pull requests * Wed Aug 11 2021 Jerry James - 1.3.2-1 - Initial RPM ## END: Generated by rpmautospec