lua-rpm-macros/macros.lua-srpm
Nils Philippsen 8ba1010b91 Don’t set locate permanently in %lua_requires
Resolves: #2263837

Signed-off-by: Nils Philippsen <nils@redhat.com>
2024-02-12 12:31:45 +01:00

11 lines
336 B
Plaintext

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