diff --git a/ecdsa-0.17.0.tar.gz b/ecdsa-0.17.0.tar.gz deleted file mode 100644 index c5e2404001fc3bb802d58bad94133cf998378f8e..0000000000000000000000000000000000000000 Binary files a/ecdsa-0.17.0.tar.gz and /dev/null differ diff --git a/ecdsa-0.18.0.tar.gz b/ecdsa-0.18.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..340cdf02b3cd6908b2424e7dcf43a8040ef60fdb Binary files /dev/null and b/ecdsa-0.18.0.tar.gz differ diff --git a/python-ecdsa.spec b/python-ecdsa.spec index 1efa90d96bcdf994343620aff24d1be709ab9b7f..a9b2151d00dce596b16755a5afd7606446a24773 100644 --- a/python-ecdsa.spec +++ b/python-ecdsa.spec @@ -1,15 +1,16 @@ -%bcond_without python3 - +%global _empty_manifest_terminate_build 0 Name: python-ecdsa -Version: 0.17.0 -Release: 1 +Version: 0.18.0 +Release: 1 Summary: ECDSA cryptographic signature library License: MIT -URL: https://pypi.python.org/pypi/ecdsa -Source0: https://pypi.python.org/packages/source/e/ecdsa/ecdsa-%{version}.tar.gz +URL: http://github.com/tlsfuzzer/python-ecdsa +Source0: https://files.pythonhosted.org/packages/ff/7b/ba6547a76c468a0d22de93e89ae60d9561ec911f59532907e72b0d8bc0f1/ecdsa-0.18.0.tar.gz +BuildArch: noarch -BuildArch: noarch -BuildRequires: openssl +Requires: python3-six +Requires: python3-gmpy +Requires: python3-gmpy2 %description This is an easy-to-use implementation of ECDSA cryptography (Elliptic Curve @@ -20,13 +21,10 @@ and signatures are very short, making them easy to handle and incorporate into other protocols. %package -n python3-ecdsa -Summary: ECDSA cryptographic signature library -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-six -Requires: python3-six -%{?python_provide:%python_provide python3-ecdsa} - +Summary: ECDSA cryptographic signature library (pure python) +Provides: python-ecdsa +BuildRequires: python3-devel +BuildRequires: python3-setuptools %description -n python3-ecdsa This is an easy-to-use implementation of ECDSA cryptography (Elliptic Curve Digital Signature Algorithm), implemented purely in Python, released under @@ -34,31 +32,64 @@ the MIT license. With this library, you can quickly create keypairs (signing ke and signatures are very short, making them easy to handle and incorporate into other protocols. -%package_help + + + + +%package help +Summary: Development documents and examples for ecdsa +Provides: python3-ecdsa-doc +%description help +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. + %prep -%autosetup -n ecdsa-%{version} -rm -rf ecdsa.egg-info -find src/ecdsa -name \*.py | xargs sed -ie '/\/usr\/bin\/env/d' +%autosetup -n ecdsa-0.18.0 %build -%_bindir/python3 setup.py build '--executable=%_bindir/python3 -s' +%py3_build %install -%_bindir/python3 setup.py install -O1 --skip-build --root %buildroot - -%check -%_bindir/python3 setup.py test +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . -%files -n python3-ecdsa -%defattr(-,root,root) -%license LICENSE -%_prefix/lib/python%{python3_version}/site-packages/* +%files -n python3-ecdsa -f filelist.lst +%dir %{python3_sitelib}/* -%files help -%defattr(-,root,root) -%doc NEWS README.md +%files help -f doclist.lst +%{_docdir}/* %changelog +* Thu Aug 04 2022 liqiuyu - 0.18.0-1 +- update version to 0.18.0 + * Sat Nov 13 2021 liudabo - 0.17.0-1 - update version to 0.17.0