3 %bcond_without python2 # Python 2.x module
4 %bcond_without python3 # Python 3.x module
7 Summary: ECDSA cryptographic signature library
12 Group: Development/Languages/Python
13 Source0: http://pypi.python.org/packages/source/e/ecdsa/%{module}-%{version}.tar.gz
14 # Source0-md5: 8ef586fe4dbb156697d756900cb41d7c
15 URL: https://pypi.python.org/pypi/ecdsa
16 BuildRequires: rpm-pythonprov
18 BuildRequires: python-devel
19 BuildRequires: python-modules
22 BuildRequires: python3-2to3
23 BuildRequires: python3-devel
24 BuildRequires: python3-modules
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 This is an easy-to-use implementation of ECDSA cryptography (Elliptic
32 Curve Digital Signature Algorithm), implemented purely in Python,
33 released under the MIT license. With this library, you can quickly
34 create keypairs (signing key and verifying key), sign messages, and
35 verify the signatures. The keys and signatures are very short, making
36 them easy to handle and incorporate into other protocols.
38 %package -n python3-%{module}
39 Summary: ECDSA cryptographic signature library
40 Group: Libraries/Python
43 %description -n python3-%{module}
44 This is an easy-to-use implementation of ECDSA cryptography (Elliptic
45 Curve Digital Signature Algorithm), implemented purely in Python,
46 released under the MIT license. With this library, you can quickly
47 create keypairs (signing key and verifying key), sign messages, and
48 verify the signatures. The keys and signatures are very short, making
49 them easy to handle and incorporate into other protocols.
52 %setup -q -n ecdsa-%{version}
56 %py_build --build-base py2
59 %py3_build --build-base py3
63 rm -rf $RPM_BUILD_ROOT
65 install -d $RPM_BUILD_ROOT%{_examplesdir}/python-%{module}-%{version}
70 --root=$RPM_BUILD_ROOT
74 install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
79 --root=$RPM_BUILD_ROOT
83 rm -rf $RPM_BUILD_ROOT
87 %defattr(644,root,root,755)
88 %doc LICENSE NEWS README.md
89 %{py_sitescriptdir}/%{module}
90 %{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
91 %{_examplesdir}/python-%{module}-%{version}
95 %files -n python3-%{module}
96 %defattr(644,root,root,755)
97 %doc LICENSE NEWS README.md
98 %{py3_sitescriptdir}/%{module}
99 %{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
100 %{_examplesdir}/python3-%{module}-%{version}