%global modname axolotl-curve25519 #git release 0.4.1-2 = commit 293f9cd5a42459f7e68748764de8387f37147db2 %global commit 293f9cd5a42459f7e68748764de8387f37147db2 %global shortcommit 293f9cd %global extraver 2 %global desc This is python wrapper for curve25519 library with ed25519 signatures. The C \ code was pulled from lib-axolotl-android. At the moment this wrapper is \ meant for use by python-axolotl Name: python-%{modname} Version: 0.4.1 Release: 1.%{extraver}%{?dist} Summary: Python wrapper for curve25519 with ed25519 signatures License: GPLv3 URL: https://github.com/tgalal/%{name} Source0: https://github.com/tgalal/%{name}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz BuildRequires: python2-devel BuildRequires: python3-devel %description %{desc}. %package -n python2-%{modname} Summary: %{summary} %{?python_provide:%python_provide python2-%{modname}} %description -n python2-%{modname} %{desc}. %package -n python3-%{modname} Summary: %{summary} %{?python_provide:%python_provide python3-%{modname}} %description -n python3-%{modname} %{desc}. %prep %setup -q -n %{name}-%{commit} %build %py2_build %py3_build %install %py2_install %py3_install %files -n python2-%{modname} %license LICENSE %doc README.md %{python2_sitearch}/* %files -n python3-%{modname} %license LICENSE %doc README.md %{python3_sitearch}/* %changelog * Thu Jun 21 2018 Philip Brown - 0.4.1_2-1 - Updated to github release 0.4.1-2 - Changed url/source to github - Macros: added or changed description, documentation, gitrelease, license, summary * Thu May 11 2017 Christian Dersch - 0.1-2 - rebuilt * Thu Oct 06 2016 Christian Dersch - 0.1-1 - Initial packaging effort