That will be the problem of the s390x build: %ifarch %ix86 x86_64 %define build_gcore 1 %else %define build_gcore 0 %endif