python-ecdsa/python-ecdsa.spec

104 lines
3.4 KiB
RPMSpec
Raw Normal View History

2022-08-04 11:06:38 +08:00
%global _empty_manifest_terminate_build 0
2020-02-18 16:54:35 +08:00
Name: python-ecdsa
2022-08-04 11:06:38 +08:00
Version: 0.18.0
Release: 1
2020-02-18 16:54:35 +08:00
Summary: ECDSA cryptographic signature library
License: MIT
2022-08-04 11:06:38 +08:00
URL: http://github.com/tlsfuzzer/python-ecdsa
Source0: https://files.pythonhosted.org/packages/ff/7b/ba6547a76c468a0d22de93e89ae60d9561ec911f59532907e72b0d8bc0f1/ecdsa-0.18.0.tar.gz
BuildArch: noarch
2020-02-18 16:54:35 +08:00
2022-08-04 11:06:38 +08:00
Requires: python3-six
Requires: python3-gmpy
Requires: python3-gmpy2
2020-02-18 16:54:35 +08:00
%description
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.
%package -n python3-ecdsa
2022-08-04 11:06:38 +08:00
Summary: ECDSA cryptographic signature library (pure python)
Provides: python-ecdsa
BuildRequires: python3-devel
BuildRequires: python3-setuptools
2020-02-18 16:54:35 +08:00
%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
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.
2022-08-04 11:06:38 +08:00
%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.
2020-02-18 16:54:35 +08:00
%prep
2022-08-04 11:06:38 +08:00
%autosetup -n ecdsa-0.18.0
2020-02-18 16:54:35 +08:00
%build
2022-08-04 11:06:38 +08:00
%py3_build
2020-02-18 16:54:35 +08:00
%install
2022-08-04 11:06:38 +08:00
%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 .
2020-02-18 16:54:35 +08:00
2022-08-04 11:06:38 +08:00
%files -n python3-ecdsa -f filelist.lst
%dir %{python3_sitelib}/*
2020-02-18 16:54:35 +08:00
2022-08-04 11:06:38 +08:00
%files help -f doclist.lst
%{_docdir}/*
2020-02-18 16:54:35 +08:00
%changelog
2022-08-04 11:06:38 +08:00
* Thu Aug 04 2022 liqiuyu <liqiuyu@kylinos.cn> - 0.18.0-1
- update version to 0.18.0
2021-11-13 15:07:57 +08:00
* Sat Nov 13 2021 liudabo <liudabo1@huawei.com> - 0.17.0-1
- update version to 0.17.0
2020-10-29 11:12:59 +08:00
* Thu Oct 29 2020 wangye <wangye70@huawei.com> - 0.14.1-3
- use python3 replace python2 for build
2020-06-16 17:24:33 +08:00
* Tue Jun 16 2020 hanhui <hanhui@huawei.com> - 0.14.1-2
2020-06-16 16:36:26 +08:00
- fix python3.8 can not find path
* Tue Feb 11 2020 huzunhao<huzunhao2@huawei.com> - 0.14.1-1
2020-02-18 16:54:35 +08:00
- Package init