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