CPackRPM: %pretrans scriptlet violates guidelines
according to, say, Fedora guidelines (https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/)
Note that the
%pretrans
scriptlet will, in the particular case of system installation, run before anything at all has been installed. This implies that it cannot have any dependencies at all. For this reason,%pretrans
is best avoided, but if used it MUST (by necessity) be written in Lua
The syntax for that is %pretrans -p <lua>