File python-ecdsa.spec of Package python-ecdsa

# Created by pyp2rpm-3.2.3
%global pypi_name ecdsa

Name:           python-%{pypi_name}
Version:        0.13
Release:        1%{?dist}
Summary:        ECDSA cryptographic signature library

License:        MIT
URL:            http://github.com/warner/python-ecdsa
Source0:		https://pypi.io/packages/source/e/ecdsa/ecdsa-%{version}.tar.gz
BuildArch:      noarch
 
BuildRequires:  python2-devel
BuildRequires:  python2-setuptools

%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     python2-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python2-%{pypi_name}}

Requires:       python2-six

%description -n python2-%{pypi_name}
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 %{pypi_name}-%{version}

%build
%py2_build

%install
%py2_install

%files -n python2-%{pypi_name}
%if (0%{?rhel} >= 7) || (0%{?suse_version} >= 1315)
%license LICENSE
%endif
%doc README.md
%{python2_sitelib}/%{pypi_name}
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info

%changelog
* Mon Dec 25 2017 Yunfei Shi <shiyf2@lenovo.com> - 0.13-1
- Initial package.
openSUSE Build Service is sponsored by