no longer run 2to3 on the python3 sources

This commit is contained in:
Tom Callaway 2015-04-06 09:14:25 -04:00
parent 6d5eb7692f
commit 4217e27e98

View File

@ -17,7 +17,7 @@
Name: python-coverage Name: python-coverage
Summary: Code coverage testing module for Python Summary: Code coverage testing module for Python
Version: 4.0 Version: 4.0
Release: 0.5.%{?prever}%{?dist} Release: 0.6.%{?prever}%{?dist}
License: BSD and (MIT or GPLv2) License: BSD and (MIT or GPLv2)
Group: System Environment/Libraries Group: System Environment/Libraries
URL: http://nedbatchelder.com/code/modules/coverage.html URL: http://nedbatchelder.com/code/modules/coverage.html
@ -27,7 +27,6 @@ Patch0: python-coverage-4.0a5-unicodefix.patch
BuildRequires: python-setuptools, python2-devel BuildRequires: python-setuptools, python2-devel
Requires: python-setuptools Requires: python-setuptools
%if 0%{?with_python3} %if 0%{?with_python3}
BuildRequires: /usr/bin/2to3
BuildRequires: python3-setuptools, python3-devel BuildRequires: python3-setuptools, python3-devel
%endif # with_python3 %endif # with_python3
@ -62,9 +61,6 @@ sed -i 's/\r//g' README.txt
%if 0%{?with_python3} %if 0%{?with_python3}
rm -rf %{py3dir} rm -rf %{py3dir}
cp -a . %{py3dir} cp -a . %{py3dir}
pushd %{py3dir}
2to3 --nobackups --write .
popd
%endif # if with_python3 %endif # if with_python3
%build %build
@ -124,6 +120,9 @@ popd
%changelog %changelog
* Sat Apr 04 2015 Ralph Bean <rbean@redhat.com> 4.0-0.6.a5
- No longer run 2to3 on the python3 sources.
* Wed Mar 25 2015 Tom Callaway <spot@fedoraproject.org> 4.0-0.5.a5 * Wed Mar 25 2015 Tom Callaway <spot@fedoraproject.org> 4.0-0.5.a5
- unicode fixup - unicode fixup