Drop py3dir, shebang sed

This commit is contained in:
Miro Hrončok 2018-05-17 12:34:56 +02:00
parent 4e3f5f6cff
commit b12e77defb

View File

@ -73,21 +73,13 @@ heavily inspired by should.js.
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%if 0%{?with_python3}
rm -rf %{py3dir}
cp -a . %{py3dir}
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!/bin/env python|#!%{__python3}|'
%endif # with_python3
%build
%{?scl:scl enable %{scl} "}
%py2_build
%{?scl:"}
%if 0%{with_python3}
pushd %{py3dir}
LANG=en_US.utf8 %py3_build
popd
%py3_build
%endif
%install
@ -96,9 +88,7 @@ popd
%{?scl:"}
%if 0%{?with_python3}
pushd %{py3dir}
LANG=en_US.utf8 %py3_install
popd
%py3_install
%endif # with_python3
%check
@ -107,9 +97,7 @@ popd
%{?scl:"}
%if 0%{?with_python3}
pushd %{py3dir}
%{__python3} -m nose --verbosity 2
popd
%endif # with_python3
%files -n python2-%{pypi_name}
@ -127,6 +115,8 @@ popd
%changelog
* Thu May 17 2018 Miro Hrončok <mhroncok@redhat.com> - 1.4.10-1
- Updated to 1.4.10 that supports Python 3.7 (#1578530)
- Stop py3dir pushd/popd, it is not needed
- Removed an unneeded shebeng sed
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild