Compare commits
No commits in common. "196d2019668feead993854b54a0fe3dc5c7ac45d" and "3ee500d27d4ee7d5462135fea56ee5daac7be586" have entirely different histories.
196d201966
...
3ee500d27d
BIN
ecdsa-0.14.1.tar.gz
Normal file
BIN
ecdsa-0.14.1.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1,8 +1,9 @@
|
|||||||
|
%bcond_without python2
|
||||||
%bcond_without python3
|
%bcond_without python3
|
||||||
|
|
||||||
Name: python-ecdsa
|
Name: python-ecdsa
|
||||||
Version: 0.17.0
|
Version: 0.14.1
|
||||||
Release: 3
|
Release: 2
|
||||||
Summary: ECDSA cryptographic signature library
|
Summary: ECDSA cryptographic signature library
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://pypi.python.org/pypi/ecdsa
|
URL: https://pypi.python.org/pypi/ecdsa
|
||||||
@ -19,14 +20,27 @@ the MIT license. With this library, you can quickly create keypairs (signing
|
|||||||
and signatures are very short, making them easy to handle and incorporate
|
and signatures are very short, making them easy to handle and incorporate
|
||||||
into other protocols.
|
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
|
%package -n python3-ecdsa
|
||||||
Summary: ECDSA cryptographic signature library
|
Summary: ECDSA cryptographic signature library
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
BuildRequires: python3-six
|
BuildRequires: python3-six
|
||||||
Requires: python3-six
|
Requires: python3-six
|
||||||
BuildRequires: python3-pytest
|
|
||||||
BuildRequires: python3-hypothesis
|
|
||||||
%{?python_provide:%python_provide python3-ecdsa}
|
%{?python_provide:%python_provide python3-ecdsa}
|
||||||
|
|
||||||
%description -n python3-ecdsa
|
%description -n python3-ecdsa
|
||||||
@ -43,42 +57,41 @@ rm -rf ecdsa.egg-info
|
|||||||
find src/ecdsa -name \*.py | xargs sed -ie '/\/usr\/bin\/env/d'
|
find src/ecdsa -name \*.py | xargs sed -ie '/\/usr\/bin\/env/d'
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with python2}
|
||||||
|
%_bindir/python2 setup.py build '--executable=%_bindir/python2 -s'
|
||||||
|
%endif
|
||||||
%_bindir/python3 setup.py build '--executable=%_bindir/python3 -s'
|
%_bindir/python3 setup.py build '--executable=%_bindir/python3 -s'
|
||||||
|
|
||||||
%install
|
%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
|
%_bindir/python3 setup.py install -O1 --skip-build --root %buildroot
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__python3} -m pytest -v
|
%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
|
%files -n python3-ecdsa
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%_prefix/lib/python%{python3_version}/site-packages/*
|
%_prefix/lib/python%{python3_version}/site-packages/*
|
||||||
%exclude %_prefix/lib/python%{python3_version}/site-packages/ecdsa/test_*
|
|
||||||
%exclude %_prefix/lib/python%{python3_version}/site-packages/ecdsa/__pycache__/test_*
|
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc NEWS README.md
|
%doc NEWS README.md
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Dec 21 2022 zhuofeng <zhuofeng2@huawei.com> - 0.17.0-3
|
* Tue Jun 16 2020 hanhui<hanhui@huawei.com> - 0.14.1-2
|
||||||
- Type:bugfix
|
|
||||||
- CVE:NA
|
|
||||||
- SUG:NA
|
|
||||||
- DESC:make the test check
|
|
||||||
|
|
||||||
* Mon Oct 24 2022 zhangruifang <zhangruifang1@h-partners.com> - 0.17.0-2
|
|
||||||
- Do not pack open-source test case files
|
|
||||||
|
|
||||||
* Sat Nov 13 2021 liudabo <liudabo1@huawei.com> - 0.17.0-1
|
|
||||||
- update version to 0.17.0
|
|
||||||
|
|
||||||
* Thu Oct 29 2020 wangye <wangye70@huawei.com> - 0.14.1-3
|
|
||||||
- use python3 replace python2 for build
|
|
||||||
|
|
||||||
* Tue Jun 16 2020 hanhui <hanhui@huawei.com> - 0.14.1-2
|
|
||||||
- fix python3.8 can not find path
|
- fix python3.8 can not find path
|
||||||
|
|
||||||
* Tue Feb 11 2020 huzunhao<huzunhao2@huawei.com> - 0.14.1-1
|
* Tue Feb 11 2020 huzunhao<huzunhao2@huawei.com> - 0.14.1-1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user