From c20a6508e33bffec511908fdb25cdd0554cff1be Mon Sep 17 00:00:00 2001 From: pcpa Date: Thu, 22 Dec 2016 04:26:51 -0500 Subject: [PATCH] Correct build on non x86 arches --- sagemath.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sagemath.spec b/sagemath.spec index 8f8fd8e..88e8b17 100644 --- a/sagemath.spec +++ b/sagemath.spec @@ -1313,8 +1313,10 @@ EOF chmod +x %{buildroot}%{SAGE_LOCAL}/bin/sage-list-packages #------------------------------------------------------------------------ -# do not install symlink to '.' -rm %{buildroot}%{SAGE_DOC}/output +%if %{with docs} + # do not install symlink to '.' + rm %{buildroot}%{SAGE_DOC}/output +%endif # last install command rm -fr $DOT_SAGE