From eab7b78e0dd02860ffca718d89aa72d6177f4736 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Oct 07 2018 23:16:27 +0000 Subject: Drop Python 2 package for Fedora 30+ (bugz #1631326) --- diff --git a/python-ecdsa.spec b/python-ecdsa.spec index 5d4904b..f055593 100644 --- a/python-ecdsa.spec +++ b/python-ecdsa.spec @@ -2,7 +2,7 @@ Name: python-%{srcname} Version: 0.13 -Release: 13%{?dist} +Release: 14%{?dist} Summary: ECDSA cryptographic signature library License: MIT @@ -23,6 +23,7 @@ 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. +%if 0%{?fedora} < 30 %package -n python2-%{srcname} Summary: ECDSA cryptographic signature library BuildRequires: python2-devel @@ -38,6 +39,7 @@ 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. +%endif %package -n python%{python3_pkgversion}-%{srcname} Summary: ECDSA cryptographic signature library @@ -68,24 +70,32 @@ rm ecdsa/six.py %build +%if 0%{?fedora} < 30 %py2_build +%endif %py3_build %install %py3_install +%if 0%{?fedora} < 30 %py2_install +%endif %check +%if 0%{?fedora} < 30 %{__python2} setup.py test +%endif %{__python3} setup.py test +%if 0%{?fedora} < 30 %files -n python2-%{srcname} %license LICENSE %doc NEWS README.md %{python2_sitelib}/* +%endif %files -n python%{python3_pkgversion}-%{srcname} %license LICENSE @@ -94,6 +104,9 @@ rm ecdsa/six.py %changelog +* Sun Oct 07 2018 Orion Poplawski - 0.13-14 +- Drop Python 2 package for Fedora 30+ (bugz #1631326) + * Sat Jul 14 2018 Fedora Release Engineering - 0.13-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild