# 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 031cc3a0a7c125060951d9e8b0ca67a5091cc5ac %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global gitdate 20190509 %global srcname JuPyMake Name: python-jupymake Version: 0.9 Release: 1.%{gitdate}.%{shortcommit}%{?dist} Summary: Python wrapper for the polymake shell License: GPLv2+ URL: https://github.com/sebasguts/JuPyMake Source0: %{url}/archive/%{commit}/%{srcname}-%{shortcommit}.tar.gz BuildRequires: gcc-c++ BuildRequires: libnormaliz-devel BuildRequires: python3-devel BuildRequires: polymake %global _description %{expand: This package provides a basic interface to call polymake from python. It is meant to be used in the Jupyter interface for polymake.} %description %_description %package -n python3-jupymake Summary: Python wrapper for the polymake shell Requires: polymake%{?_isa} %{?python_provide:%python_provide python3-%{srcname}} # This can be removed when Fedora 31 reaches EOL Obsoletes: python3-%{srcname} < 0.9 Provides: pytnon3-%{srcname} = %{version}-%{release} %description -n python3-jupymake %_description %prep %autosetup -n %{srcname}-%{commit} %build %py3_build %install %py3_install %files -n python3-jupymake %doc README README.md example.py %license COPYING GPLv2 LICENSE %{python3_sitearch}/%{srcname}* %changelog * Mon Nov 25 2019 Jerry James - 0.9-1.20190509.031cc3a - Initial RPM