python-ecdsa-vl.spec 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
  2. Name: python-ecdsa
  3. Version: 0.13
  4. Release: 1%{?_dist_release}
  5. Summary: ECDSA cryptographic signature library
  6. Group: Development/Libraries
  7. # No version specified.
  8. License: MIT
  9. URL: http://github.com/warner/python-ecdsa
  10. Source0: https://pypi.python.org/pypi/ecdsa/ecdsa-%{version}.tar.gz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildArch: noarch
  13. BuildRequires: python-setuptools
  14. BuildRequires: python-devel
  15. %description
  16. This is an easy-to-use implementation of ECDSA cryptography (Elliptic Curve
  17. Digital Signature Algorithm), implemented purely in Python, released under
  18. the MIT license. With this library, you can quickly create keypairs (signing
  19. key and verifying key), sign messages, and verify the signatures. The keys
  20. and signatures are very short, making them easy to handle and incorporate
  21. into other protocols.
  22. %prep
  23. %setup -q -n ecdsa-%{version}
  24. %build
  25. %{__python} setup.py build
  26. %install
  27. rm -rf $RPM_BUILD_ROOT
  28. %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
  29. %clean
  30. rm -rf $RPM_BUILD_ROOT
  31. %files
  32. %defattr(-,root,root,-)
  33. %doc LICENSE README.md
  34. %{python_sitelib}/*
  35. %changelog
  36. * Sat May 09 2015 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.13-1
  37. - new upstream release
  38. * Mon Jan 13 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.10-1
  39. - initial build for Vine Linux