noarch+ExcludeArch doesn't work on subpackages

This commit is contained in:
Josh Stone 2021-07-15 13:52:24 -07:00
parent e9feea05d7
commit bb1cdb7330

View File

@ -282,7 +282,7 @@ written in Rust.
for triple in string.gmatch(rpm.expand("%{cross_targets}"), "%S+") do for triple in string.gmatch(rpm.expand("%{cross_targets}"), "%S+") do
local requires = rpm.expand("Requires: rust = %{version}-%{release}") local requires = rpm.expand("Requires: rust = %{version}-%{release}")
if string.sub(triple, 1, 4) == "wasm" then if string.sub(triple, 1, 4) == "wasm" then
requires = requires .. "\nRequires: lld >= 8.0\nExcludeArch: s390x" requires = requires .. "\nRequires: lld >= 8.0"
end end
local subs = { local subs = {
triple = triple, triple = triple,