lua-rpm-macros/macros.lua-srpm
DistroBaker baa172aa3c Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/lua-rpm-macros.git#89a57c128aaae84832c06c3615971666c062b9b0
2021-01-24 23:46:32 +00:00

11 lines
283 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: os.setlocale('C'); print(string.sub(_VERSION, 5) + 0.1)} \
%endif \
%{nil}