diff --git a/sagemath.spec b/sagemath.spec index 6c0dd07..cc6f2da 100644 --- a/sagemath.spec +++ b/sagemath.spec @@ -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