Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
5bcb0f2465
!17 Do not pack test case files
From: @tong_1001 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
2024-02-18 09:14:51 +00:00
shixuantong
b09651ba62 Do not pack test case files 2024-02-01 16:20:44 +08:00
openeuler-ci-bot
2dce028a50
!11 Update package
From: @liqiuyu123 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
2022-08-04 03:17:49 +00:00
liqiuyu123
f029595e86 update package 2022-08-04 11:06:38 +08:00
openeuler-ci-bot
f63d3e6f82 !8 upgrade version to 0.17.0
From: @run-is-pig
Reviewed-by: @shinwell_hu
Signed-off-by: @shinwell_hu
2021-11-16 01:40:34 +00:00
Anonymous_Z
689850de06 upgrade version to 0.17.0 2021-11-13 15:07:57 +08:00
openeuler-ci-bot
7d51f44676 !5 use python3 replace python2 for build
From: @yeah_wang
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2020-10-30 10:06:13 +08:00
s17723959267
9c506b7125 use python3 replace python2 2020-10-29 11:12:59 +08:00
openeuler-ci-bot
5429746d31 !3 python-ecdsa
Merge pull request !3 from shirely/master
2020-06-17 09:18:33 +08:00
shirely16
e980369403 . 2020-06-16 17:24:33 +08:00
3 changed files with 74 additions and 64 deletions

Binary file not shown.

BIN
ecdsa-0.18.0.tar.gz Normal file

Binary file not shown.

View File

@ -1,16 +1,16 @@
%bcond_without python2 %global _empty_manifest_terminate_build 0
%bcond_without python3
Name: python-ecdsa Name: python-ecdsa
Version: 0.14.1 Version: 0.18.0
Release: 2 Release: 2
Summary: ECDSA cryptographic signature library Summary: ECDSA cryptographic signature library
License: MIT License: MIT
URL: https://pypi.python.org/pypi/ecdsa URL: http://github.com/tlsfuzzer/python-ecdsa
Source0: https://pypi.python.org/packages/source/e/ecdsa/ecdsa-%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/ff/7b/ba6547a76c468a0d22de93e89ae60d9561ec911f59532907e72b0d8bc0f1/ecdsa-0.18.0.tar.gz
BuildArch: noarch
BuildArch: noarch Requires: python3-six
BuildRequires: openssl Requires: python3-gmpy
Requires: python3-gmpy2
%description %description
This is an easy-to-use implementation of ECDSA cryptography (Elliptic Curve This is an easy-to-use implementation of ECDSA cryptography (Elliptic Curve
@ -20,29 +20,11 @@ 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 (pure python)
BuildRequires: python3-devel Provides: python-ecdsa
BuildRequires: python3-setuptools BuildRequires: python3-devel
BuildRequires: python3-six BuildRequires: python3-setuptools
Requires: python3-six
%{?python_provide:%python_provide python3-ecdsa}
%description -n python3-ecdsa %description -n python3-ecdsa
This is an easy-to-use implementation of ECDSA cryptography (Elliptic Curve This is an easy-to-use implementation of ECDSA cryptography (Elliptic Curve
Digital Signature Algorithm), implemented purely in Python, released under Digital Signature Algorithm), implemented purely in Python, released under
@ -50,48 +32,76 @@ 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 and signatures are very short, making them easy to handle and incorporate
into other protocols. 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 %prep
%autosetup -n ecdsa-%{version} %autosetup -n ecdsa-0.18.0
rm -rf ecdsa.egg-info
find src/ecdsa -name \*.py | xargs sed -ie '/\/usr\/bin\/env/d'
%build %build
%if %{with python2} %py3_build
%_bindir/python2 setup.py build '--executable=%_bindir/python2 -s'
%endif
%_bindir/python3 setup.py build '--executable=%_bindir/python3 -s'
%install %install
%if %{with python2} %py3_install
%_bindir/python2 setup.py install -O1 --skip-build --root %buildroot install -d -m755 %{buildroot}/%{_pkgdocdir}
%endif if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
%_bindir/python3 setup.py install -O1 --skip-build --root %buildroot 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 .
%check %files -n python3-ecdsa -f filelist.lst
%if %{with python2} %dir %{python3_sitelib}/*
%_bindir/python2 setup.py test %exclude %{python3_sitelib}/ecdsa/test_*
%endif %exclude %{python3_sitelib}/ecdsa/__pycache__/test_*
%_bindir/python3 setup.py test
%if %{with python2} %files help -f doclist.lst
%files -n python2-ecdsa %{_docdir}/*
%defattr(-,root,root)
%license LICENSE
%_prefix/lib/python2.7/site-packages/*
%endif
%files -n python3-ecdsa
%defattr(-,root,root)
%license LICENSE
%_prefix/lib/python%{python3_version}/site-packages/*
%files help
%defattr(-,root,root)
%doc NEWS README.md
%changelog %changelog
* Tue Jun 16 2020 hanhui<hanhui@huawei.com> - 0.14.1-2 * Thu Feb 01 2024 shixuantong <shixuantong1@huawei.com> - 0.18.0-2
- Do not pack test case files
* Thu Aug 04 2022 liqiuyu <liqiuyu@kylinos.cn> - 0.18.0-1
- update version to 0.18.0
* 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