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
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 <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
- Remove BuildRequires on python2-sphinx
See https://fedoraproject.org/wiki/Changes/Sphinx2