Enable build on EL7
This is minor change, do not require any rebuild
This commit is contained in:
parent
ae8b21b961
commit
8edd872dfe
@ -94,6 +94,13 @@ sed -i 's/\r//g' README.rst
|
|||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
%py3_install
|
%py3_install
|
||||||
mv %{buildroot}/%{_bindir}/coverage %{buildroot}/%{_bindir}/python3-coverage
|
mv %{buildroot}/%{_bindir}/coverage %{buildroot}/%{_bindir}/python3-coverage
|
||||||
|
|
||||||
|
rm -rf coverage-3* coverage3
|
||||||
|
|
||||||
|
for i in coverage3 coverage-%{?python3_shortver}; do
|
||||||
|
ln -s python3-coverage $i
|
||||||
|
done
|
||||||
|
popd
|
||||||
%endif # if with_python3
|
%endif # if with_python3
|
||||||
|
|
||||||
%py2_install
|
%py2_install
|
||||||
@ -108,12 +115,6 @@ for i in python2-coverage coverage coverage2 coverage-%{?python2_shortver}; do
|
|||||||
ln -s python-coverage $i
|
ln -s python-coverage $i
|
||||||
done
|
done
|
||||||
|
|
||||||
rm -rf coverage-3* coverage3
|
|
||||||
|
|
||||||
for i in coverage3 coverage-%{?python3_shortver}; do
|
|
||||||
ln -s python3-coverage $i
|
|
||||||
done
|
|
||||||
popd
|
|
||||||
|
|
||||||
%files -n python2-coverage
|
%files -n python2-coverage
|
||||||
%license LICENSE.txt NOTICE.txt
|
%license LICENSE.txt NOTICE.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user