From ddc344c347fd21af24c6680cbd5ec48b59a45066 Mon Sep 17 00:00:00 2001 From: Jerry James Date: Dec 07 2020 23:40:58 +0000 Subject: Wrap the %pretrans script in %if %{with docs} ... %{endif}. --- diff --git a/sagemath.spec b/sagemath.spec index 5d027be..a4eecd8 100644 --- a/sagemath.spec +++ b/sagemath.spec @@ -1566,6 +1566,7 @@ mkdir -p %{SAGE_LOCAL}/var/lib/sage/installed/database_cremona_ellcurve-%{cremon %triggerun -- %{name}-data-elliptic_curves_large rm -fr %{SAGE_LOCAL}/var/lib/sage/installed/database_cremona_ellcurve-%{cremona_ver} +%if %{with docs} ######################################################################## # Fix directory/symlink conflicts introduced by fix for bz 1875606. # This can be removed when Fedora 36 reaches EOL. @@ -1653,6 +1654,7 @@ for _, path in ipairs(paths) do end end end +%endif %files # GPLv2+