Lua uses ~= instead of != for inequality. So the rpm documentation is not correct. I'll open an issue.