with_cython_hack is not dependant on with_docs

This commit is contained in:
pcpa 2016-08-22 05:55:30 -04:00
parent 379c28fb7d
commit f68ede38b1

View file

@ -1184,10 +1184,6 @@ sed -i 's|%{buildroot}||g' $SAGE_DOC/test.log
rm -fr %{buildroot}%{python_sitearch}/sphinx
%endif
%if %{with cython_hack}
rm -fr %{buildroot}%{python_sitearch}/Cython
%endif
# More wrong buildroot references
perl -pi -e 's|%{buildroot}||g;' \
-e "s|$PWD/src/doc|%{SAGE_DOC}|g;" \
@ -1195,6 +1191,10 @@ perl -pi -e 's|%{buildroot}||g;' \
# with docs
%endif
%if %{with cython_hack}
rm -fr %{buildroot}%{python_sitearch}/Cython
%endif
# Script was used to build documentation
perl -pi -e 's|%{buildroot}||g;s|^##||g;' %{buildroot}%{_bindir}/sage