Blame SOURCES/macros.lua-srpm

4fa1fe
%lua_version %{lua: print(string.sub(_VERSION, 5))}
4fa1fe
4fa1fe
%lua_requires \
4fa1fe
%if 0%{?fedora} || 0%{?rhel} >= 7 \
4fa1fe
Requires: lua(abi) = %{lua_version} \
4fa1fe
%else \
4fa1fe
Requires: lua >= %{lua_version} \
4fa1fe
Requires: lua < %{lua: os.setlocale('C'); print(string.sub(_VERSION, 5) + 0.1)} \
4fa1fe
%endif \
4fa1fe
%{nil}