From 9c506b7125802cb19cc1cd18b56572a00f02d5a1 Mon Sep 17 00:00:00 2001 From: s17723959267 Date: Thu, 29 Oct 2020 11:12:59 +0800 Subject: [PATCH] use python3 replace python2 --- python-ecdsa.spec | 37 ++++--------------------------------- 1 file changed, 4 insertions(+), 33 deletions(-) diff --git a/python-ecdsa.spec b/python-ecdsa.spec index 9b2d175..7c1ebd9 100644 --- a/python-ecdsa.spec +++ b/python-ecdsa.spec @@ -1,9 +1,8 @@ -%bcond_without python2 %bcond_without python3 Name: python-ecdsa Version: 0.14.1 -Release: 2 +Release: 3 Summary: ECDSA cryptographic signature library License: MIT URL: https://pypi.python.org/pypi/ecdsa @@ -20,21 +19,6 @@ the MIT license. With this library, you can quickly create keypairs (signing and signatures are very short, making them easy to handle and incorporate into other protocols. -%if %{with python2} -%package -n python2-ecdsa -Summary: ECDSA cryptographic signature library -BuildRequires: python2-devel python2-setuptools python2-six -Requires: python2-six -%{?python_provide:%python_provide python2-ecdsa} - -%description -n python2-ecdsa -This is an easy-to-use implementation of ECDSA cryptography (Elliptic Curve -Digital Signature Algorithm), implemented purely in Python, released under -the MIT license. With this library, you can quickly create keypairs (signing key and verifying key), sign messages, and verify the signatures. The keys -and signatures are very short, making them easy to handle and incorporate -into other protocols. -%endif - %package -n python3-ecdsa Summary: ECDSA cryptographic signature library BuildRequires: python3-devel @@ -57,30 +41,14 @@ rm -rf ecdsa.egg-info find src/ecdsa -name \*.py | xargs sed -ie '/\/usr\/bin\/env/d' %build -%if %{with python2} -%_bindir/python2 setup.py build '--executable=%_bindir/python2 -s' -%endif %_bindir/python3 setup.py build '--executable=%_bindir/python3 -s' %install -%if %{with python2} -%_bindir/python2 setup.py install -O1 --skip-build --root %buildroot -%endif %_bindir/python3 setup.py install -O1 --skip-build --root %buildroot %check -%if %{with python2} -%_bindir/python2 setup.py test -%endif %_bindir/python3 setup.py test -%if %{with python2} -%files -n python2-ecdsa -%defattr(-,root,root) -%license LICENSE -%_prefix/lib/python2.7/site-packages/* -%endif - %files -n python3-ecdsa %defattr(-,root,root) %license LICENSE @@ -91,6 +59,9 @@ find src/ecdsa -name \*.py | xargs sed -ie '/\/usr\/bin\/env/d' %doc NEWS README.md %changelog +* Thu Oct 29 2020 wangye - 0.14.1-3 +- use python3 replace python2 for build + * Tue Jun 16 2020 hanhui - 0.14.1-2 - fix python3.8 can not find path