diff --git a/python-ecdsa.spec b/python-ecdsa.spec index f01125c..c2703a4 100644 --- a/python-ecdsa.spec +++ b/python-ecdsa.spec @@ -2,16 +2,19 @@ Name: python-%{srcname} Version: 0.17.0 -Release: 7%{?dist} +Release: 8%{?dist} Summary: ECDSA cryptographic signature library License: MIT URL: https://pypi.python.org/pypi/ecdsa -Source0: https://pypi.python.org/packages/source/e/%{srcname}/%{srcname}-%{version}.tar.gz +Source0: %{pypi_source ecdsa} BuildArch: noarch # For tests BuildRequires: openssl +BuildRequires: python3-devel +BuildRequires: python3-pytest +BuildRequires: python3-hypothesis %description This is an easy-to-use implementation of ECDSA cryptography (Elliptic Curve @@ -21,15 +24,10 @@ 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 python%{python3_pkgversion}-%{srcname} +%package -n python3-%{srcname} Summary: ECDSA cryptographic signature library -BuildRequires: python%{python3_pkgversion}-devel -BuildRequires: python%{python3_pkgversion}-setuptools -BuildRequires: python%{python3_pkgversion}-six -Requires: python%{python3_pkgversion}-six -%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} -%description -n python%{python3_pkgversion}-%{srcname} +%description -n python3-%{srcname} 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 @@ -40,31 +38,36 @@ into other protocols. %prep %setup -q -n %{srcname}-%{version} -rm -rf %{srcname}.egg-info # Remove extraneous #! find src/ecdsa -name \*.py | xargs sed -ie '/\/usr\/bin\/env/d' +%generate_buildrequires +%pyproject_buildrequires + %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files %{srcname} %check -%{__python3} setup.py test +%pytest -%files -n python%{python3_pkgversion}-%{srcname} +%files -n python3-%{srcname} -f %{pyproject_files} %license LICENSE %doc NEWS README.md -%{python3_sitelib}/* %changelog -* Fri Jul 22 2022 Jonathan Wright - 0.17.0-7 +* Fri Aug 26 2022 Jonathan Wright - 0.17.0-8 +- modernize spec file + +* Fri Aug 26 2022 Jonathan Wright - 0.17.0-7 - remove python2-related code from spec * Fri Jul 22 2022 Fedora Release Engineering - 0.17.0-6