distro-packages/python-rpm-macros: even more robust macro for distro test
+ local mpi_family = rpm.expand("%mpi_family")
+ local ohpc_suffix = rpm.expand("%PROJ_DELIM")
+ local function is_centos()
-+ local s = rpm.expand("%centos")
-+ return s ~= ''
++ local s = rpm.expand("%_host_vendor")
++ return s == 'redhat'
+ end
+
+ if string.match(rpm.expand("%name"), mpi_family) then
