This was failing with
osc build --noservice --clean --vm-type=kvm -M=lua51 standard
lua51-luarepl.noarch: I: package-supports-update-alternatives
lua51-luarepl.src: E: invalid-spec-name
The spec file name (without the .spec suffix) must match the package name
('Name:' tag).
lua51-luarepl.noarch: E: file-contains-buildroot (Badness: 10000) /usr/bin/rep.lua-5.1
Your file contains traces of %{buildroot}.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-luarepl?expand=0&rev=5