89a57c128a
- Modify several conditionals to support RHEL 9+ and drop ancient Fedora 17 - Add explicit conflict with older lua-devel - Require rpm, not redhat-rpm-config
11 lines
283 B
Plaintext
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}
|