diff --git a/libsbml.spec b/libsbml.spec index 742ea37..c9b84ea 100644 --- a/libsbml.spec +++ b/libsbml.spec @@ -4,11 +4,11 @@ %bcond_without r %bcond_without python %bcond_without check -%if 0%{?python3_version_nodots} >= 310 + +# The build result of docs is different between architectures. +# Also, something is wrong with javascript, and the page is unusable anywa. +# Let's not build the subpackage until the issue is fixed upstream. %bcond_with doc -%else -%bcond_without doc -%endif # Exclude sharp binding (Error CS0246) Obsoletes: libsbml-sharp < 0:5.18.0-20 @@ -215,8 +215,10 @@ python3 -m lib2to3 -f next -w docs grep -e 'This file was automatically generated by SWIG' -r . -l|xargs rm +%if %{with doc} mkdir build-docs cp -a $(ls -1|grep -v build-docs) build-docs/ +%endif %build mkdir -p build