lua-rpm-macros/macros.lua-srpm
Michel Alexandre Salim 2165bb7a44 Initial import
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
2020-08-31 17:21:24 -07:00

11 lines
289 B
Plaintext

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