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