|
 |
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 |
|
|
 |
a057bd5 |
%global srcname jupyter-polymake
|
|
 |
a057bd5 |
|
|
 |
a057bd5 |
Name: python-%{srcname}
|
|
 |
a057bd5 |
Version: 0.16
|
|
 |
2cb7d77 |
Release: 12.%{gitdate}.%{shortcommit}%{?dist}
|
|
 |
a057bd5 |
Summary: Jupyter kernel for polymake
|
|
 |
a057bd5 |
|
|
 |
a057bd5 |
License: WTFPL
|
|
 |
a057bd5 |
URL: https://github.com/polymake/%{srcname}
|
|
 |
a057bd5 |
Source0: %{url}/archive/%{commit}/%{srcname}-%{shortcommit}.tar.gz
|
|
 |
a057bd5 |
|
|
 |
a057bd5 |
BuildArch: noarch
|
|
 |
a057bd5 |
|
|
 |
a057bd5 |
BuildRequires: python3-devel
|
|
 |
a057bd5 |
BuildRequires: python3dist(ipykernel)
|
|
 |
a057bd5 |
BuildRequires: python3dist(ipython)
|
|
 |
a057bd5 |
BuildRequires: python3dist(jupymake)
|
|
 |
a057bd5 |
BuildRequires: python3dist(jupyter-client)
|
|
 |
a057bd5 |
BuildRequires: python3dist(pexpect)
|
|
 |
a057bd5 |
|
|
 |
a057bd5 |
%global _description %{expand:
|
|
 |
a057bd5 |
This package contains a Jupyter kernel for polymake.}
|
|
 |
a057bd5 |
|
|
 |
a057bd5 |
%description %_description
|
|
 |
a057bd5 |
|
|
 |
a057bd5 |
%package -n python3-%{srcname}
|
|
 |
a057bd5 |
Summary: Jupyter kernel for polymake
|
|
 |
a057bd5 |
Requires: python-jupyter-filesystem
|
|
 |
a057bd5 |
Requires: python3dist(ipykernel)
|
|
 |
a057bd5 |
Requires: python3dist(ipython)
|
|
 |
a057bd5 |
Requires: python3dist(jupymake)
|
|
 |
a057bd5 |
Requires: python3dist(jupyter-client)
|
|
 |
a057bd5 |
Requires: python3dist(pexpect)
|
|
 |
a057bd5 |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
 |
a057bd5 |
|
|
 |
a057bd5 |
# This can be removed when Fedora 31 reaches EOL
|
|
 |
a057bd5 |
Obsoletes: polymake-jupyter < 0.16-11
|
|
 |
a057bd5 |
Provides: polymake-jupyter = %{version}-%{release}
|
|
 |
a057bd5 |
|
|
 |
a057bd5 |
%description -n python3-%{srcname} %_description
|
|
 |
a057bd5 |
|
|
 |
a057bd5 |
%prep
|
|
 |
a057bd5 |
%autosetup -n %{srcname}-%{commit}
|
|
 |
a057bd5 |
|
|
 |
a057bd5 |
%build
|
|
 |
a057bd5 |
%py3_build
|
|
 |
a057bd5 |
|
|
 |
a057bd5 |
%install
|
|
 |
a057bd5 |
%py3_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 |
|
|
 |
a057bd5 |
%files -n python3-%{srcname}
|
|
 |
a057bd5 |
%doc README.md
|
|
 |
a057bd5 |
%license LICENSE
|
|
 |
a057bd5 |
%{_datadir}/jupyter/kernels/polymake/
|
|
 |
a057bd5 |
%{python3_sitelib}/jupyter_kernel_polymake*
|
|
 |
a057bd5 |
|
|
 |
a057bd5 |
%changelog
|
|
 |
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
|