# Upstream does not release tarballs. Instead the code is copied directly # into the polymake distribution. Therefore, we check out the code from git. %global commit 704994092647daca93ad18d6853a5540fceb3794 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global gitdate 20180129 Name: python-jupyter-polymake Version: 0.16 Release: 29.%{gitdate}.%{shortcommit}%{?dist} Summary: Jupyter kernel for polymake # The code is WTFPL. The JavaScript and image files are MIT. License: WTFPL AND MIT URL: https://github.com/polymake/jupyter-polymake VCS: git:%{url}.git Source: %{url}/archive/%{commit}/jupyter-polymake-%{shortcommit}.tar.gz # Polymake is no longer available on 32-bit platforms # See https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval BuildArch: noarch ExcludeArch: %{ix86} BuildRequires: python3-devel BuildRequires: %{py3_dist ipykernel} BuildRequires: %{py3_dist ipython} BuildRequires: %{py3_dist jupymake} BuildRequires: %{py3_dist jupyter-client} BuildRequires: %{py3_dist pexpect} %global _description %{expand: This package contains a Jupyter kernel for polymake.} %description %_description %package -n python3-jupyter-polymake Summary: Jupyter kernel for polymake Requires: python-jupyter-filesystem Requires: %{py3_dist ipykernel} Requires: %{py3_dist jupymake} Requires: %{py3_dist pexpect} Recommends: %{py3_dist ipython} %description -n python3-jupyter-polymake %_description %prep %autosetup -n jupyter-polymake-%{commit} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install # Move the jupyter kernel files to where we want them in Fedora mkdir -p %{buildroot}%{_datadir}/jupyter/kernels/polymake mv %{buildroot}%{python3_sitelib}/jupyter_kernel_polymake/resources/* \ %{buildroot}%{_datadir}/jupyter/kernels/polymake rmdir %{buildroot}%{python3_sitelib}/jupyter_kernel_polymake/resources %check %py3_check_import jupyter_kernel_polymake %files -n python3-jupyter-polymake %doc README.md %{_datadir}/jupyter/kernels/polymake/ %{python3_sitelib}/jupyter_kernel_polymake* %changelog * Fri Jul 19 2024 Fedora Release Engineering - 0.16-29.20180129.7049940 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Jun 09 2024 Python Maint - 0.16-28.20180129.7049940 - Rebuilt for Python 3.13 * Thu Feb 22 2024 Zhengyu He - 0.16-27.20180129.7049940 - Add support for riscv64 * Fri Jan 26 2024 Fedora Release Engineering - 0.16-26.20180129.7049940 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.16-25.20180129.7049940 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 0.16-24.20180129.7049940 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sun Jul 02 2023 Python Maint - 0.16-23.20180129.7049940 - Rebuilt for Python 3.12 * Thu Feb 23 2023 Jerry James - 0.16-22.20180129.7049940 - Dynamically generate BuildRequires * Fri Jan 20 2023 Fedora Release Engineering - 0.16-22.20180129.7049940 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Oct 13 2022 Jerry James - 0.16-21.20180129.7049940 - Add MIT to the license tag * Thu Oct 13 2022 Karolina Surma - 0.16-21.20180129.7049940 - Explicitly BuildRequire python-setuptools * Fri Jul 22 2022 Fedora Release Engineering - 0.16-20.20180129.7049940 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jul 19 2022 Jerry James - 0.16-19.20180129.7049940 - Do not build on i386 due to unavailability of polymake * Wed Jun 15 2022 Python Maint - 0.16-19.20180129.7049940 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 0.16-18.20180129.7049940 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.16-17.20180129.7049940 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.16-16.20180129.7049940 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.16-15.20180129.7049940 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.16-14.20180129.7049940 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro HronĨok - 0.16-13.20180129.7049940 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.16-12.20180129.7049940 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Nov 21 2019 Jerry James - 0.16-11.20180129.7049940 - Extracted from the polymake SRPM into its own package