%global srcname shamir-mnemonic Name: python-%{srcname} Version: 0.1.0 Release: 1%{?dist} Summary: Reference implementation of SLIP-0039: Shamir’s Secret-Sharing for Mnemonic Codes License: MIT URL: https://github.com/trezor/python-shamir-mnemonic Source0: %{pypi_source} BuildArch: noarch %global _description %{expand: This SLIP describes a standard and interoperable implementation of Shamir’s secret sharing (SSS). SSS splits a secret into unique parts which can be distributed among participants, and requires a specified minimum number of parts to be supplied in order to reconstruct the original secret. Knowledge of fewer than the required number of parts does not leak information about the secret.} %description %_description %package -n python3-%{srcname} Summary: %{summary} BuildRequires: python3-devel BuildRequires: %{py3_dist colorama} BuildRequires: %{py3_dist click} %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} %_description %prep %autosetup -n %{srcname}-%{version} rm -rf *.egg-info/ %build %py3_build %install %py3_install %check %{__python3} setup.py test %files -n python3-%{srcname} %license LICENSE %doc README.rst %{python3_sitelib}/shamir_mnemonic-*.egg-info/ %{python3_sitelib}/shamir_mnemonic/ %{_bindir}/shamir %changelog * Mon Sep 23 2019 Jonny Heggheim - 0.1.0-1 - Inital packaging