Wrap the %pretrans script in %if %{with docs} ... %{endif}.

This commit is contained in:
Jerry James 2020-12-07 16:40:58 -07:00
parent ebdd427a2d
commit ddc344c347

View file

@ -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+