Move /usr/bin/netaddr to python3 and remove python2 version

See https://fedoraproject.org/wiki/Changes/Python_means_Python3
This commit is contained in:
John Eckersberg 2019-07-22 10:48:07 -04:00
parent 7ba6c13f48
commit 40ae8c61ba

View File

@ -4,7 +4,7 @@
Name: python-netaddr Name: python-netaddr
Version: 0.7.19 Version: 0.7.19
Release: 15%{?dist} Release: 16%{?dist}
Summary: A pure Python network address representation and manipulation library Summary: A pure Python network address representation and manipulation library
License: BSD License: BSD
@ -106,13 +106,12 @@ popd
%install %install
%py2_install
%if 0%{?with_python3} %if 0%{?with_python3}
%py3_install %py3_install
mv %{buildroot}%{_bindir}/netaddr %{buildroot}%{_bindir}/netaddr3
%endif %endif
%py2_install
%check %check
py.test-%{python2_version} py.test-%{python2_version}
@ -125,7 +124,6 @@ py.test-%{python3_version}
%doc AUTHORS CHANGELOG %doc AUTHORS CHANGELOG
%doc README.md docs/html %doc README.md docs/html
%{python2_sitelib}/* %{python2_sitelib}/*
%{_bindir}/netaddr
%if 0%{?with_python3} %if 0%{?with_python3}
%files -n python3-netaddr %files -n python3-netaddr
@ -133,10 +131,14 @@ py.test-%{python3_version}
%doc AUTHORS CHANGELOG %doc AUTHORS CHANGELOG
%doc README.md docs/python3/html %doc README.md docs/python3/html
%{python3_sitelib}/* %{python3_sitelib}/*
%{_bindir}/netaddr3 %{_bindir}/netaddr
%endif %endif
%changelog %changelog
* Mon Jul 22 2019 John Eckersberg <eck@redhat.com> - 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 <eck@redhat.com> - 0.7.19-15 * Mon Mar 11 2019 John Eckersberg <eck@redhat.com> - 0.7.19-15
- Remove BuildRequires on python2-sphinx - Remove BuildRequires on python2-sphinx
See https://fedoraproject.org/wiki/Changes/Sphinx2 See https://fedoraproject.org/wiki/Changes/Sphinx2