From ca8baf7e79ac9aef5e8c6e75d076ca18efb7ac3b Mon Sep 17 00:00:00 2001 From: Michael Goodwin Date: Jan 09 2017 17:36:56 +0000 Subject: Initial import (#1411036) --- diff --git a/.gitignore b/.gitignore index e69de29..5bff6f7 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/ECPy-0.8.1.tar.gz diff --git a/python-ECPy.spec b/python-ECPy.spec new file mode 100644 index 0000000..df7db5e --- /dev/null +++ b/python-ECPy.spec @@ -0,0 +1,78 @@ +%global srcname ECPy +%global owner ubinity +%global desc ECPy (pronounced ekpy), is a pure python Elliptic Curve library \ +providing ECDSA, EDDSA, ECSchnorr, Borromean signatures as well as Point \ +operations. + +Name: python-%{srcname} +Version: 0.8.1 +Release: 1%{?dist} +Summary: Python Elliptic Curve Library + +License: ASL 2.0 +URL: https://github.com/%{owner}/%{srcname} +Source0: https://github.com/%{owner}/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python2-devel python3-devel python3-sphinx + +%description +%{desc} + + +%package -n python2-%{srcname} +Summary: %{summary} +Requires: python2-future +%{?python_provide:%python_provide python2-%{srcname}} + +%description -n python2-%{srcname} +%{desc} + +%package -n python3-%{srcname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} +%{desc} + +%package doc +Summary: Documentation for python-%{srcname} + +%description doc +This package contains the documentation for python-%{srcname} + + +%prep +%autosetup -n %{srcname}-%{version} + + +%build +%py2_build +%py3_build +%make_build -C doc singlehtml +rm -f doc/build/singlehtml/{.buildinfo,.nojekyll} + + +%install +%py2_install +%py3_install + + +%files -n python2-%{srcname} +%license LICENSE +%doc README.rst +%{python2_sitelib}/* + +%files -n python3-%{srcname} +%license LICENSE +%doc README.rst +%{python3_sitelib}/* + +%files doc +%license LICENSE +%doc doc/build/singlehtml/* + + +%changelog +* Mon Jan 9 2017 Michael Goodwin - 0.8.1-1 +- Initial packaging for Fedora diff --git a/sources b/sources index e69de29..a747bdd 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (ECPy-0.8.1.tar.gz) = 18287dcedacc75776b275c4c528a335668ae8bd0070d089901ab082cf5f5d056bc799ae57aa3a428f5d8cd580e7bf230bd0b0097b873feccb9d6a4f65d879225