From 40ae8c61ba477f71d27af5f618bcea23204833b6 Mon Sep 17 00:00:00 2001 From: John Eckersberg Date: Mon, 22 Jul 2019 10:48:07 -0400 Subject: [PATCH] Move /usr/bin/netaddr to python3 and remove python2 version See https://fedoraproject.org/wiki/Changes/Python_means_Python3 --- python-netaddr.spec | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/python-netaddr.spec b/python-netaddr.spec index e7a48c3..64c1956 100644 --- a/python-netaddr.spec +++ b/python-netaddr.spec @@ -4,7 +4,7 @@ Name: python-netaddr Version: 0.7.19 -Release: 15%{?dist} +Release: 16%{?dist} Summary: A pure Python network address representation and manipulation library License: BSD @@ -106,13 +106,12 @@ popd %install +%py2_install + %if 0%{?with_python3} %py3_install -mv %{buildroot}%{_bindir}/netaddr %{buildroot}%{_bindir}/netaddr3 %endif -%py2_install - %check py.test-%{python2_version} @@ -125,7 +124,6 @@ py.test-%{python3_version} %doc AUTHORS CHANGELOG %doc README.md docs/html %{python2_sitelib}/* -%{_bindir}/netaddr %if 0%{?with_python3} %files -n python3-netaddr @@ -133,10 +131,14 @@ py.test-%{python3_version} %doc AUTHORS CHANGELOG %doc README.md docs/python3/html %{python3_sitelib}/* -%{_bindir}/netaddr3 +%{_bindir}/netaddr %endif %changelog +* Mon Jul 22 2019 John Eckersberg - 0.7.19-16 +- Move /usr/bin/netaddr to python3 and remove python2 version + See https://fedoraproject.org/wiki/Changes/Python_means_Python3 + * Mon Mar 11 2019 John Eckersberg - 0.7.19-15 - Remove BuildRequires on python2-sphinx See https://fedoraproject.org/wiki/Changes/Sphinx2