forked from pool/lua-macros
Make %{lua_noarchdir} work even without lua-devel installed.
This commit is contained in:
@@ -8,7 +8,15 @@
|
||||
%lua_archdir %(pkgconf --variable=INSTALL_CMOD lua)
|
||||
|
||||
# pure Lua modules should go here
|
||||
local f = io.popen("pkgconf --variable=INSTALL_LMOD lua")
|
||||
local output = f:read("*a")
|
||||
f:close()
|
||||
|
||||
if output:len() == 0 then
|
||||
%lua_noarchdir %{_datadir}/lua/%{lua_version}/luacheck/
|
||||
else
|
||||
%lua_noarchdir %(pkgconf --variable=INSTALL_LMOD lua)
|
||||
end
|
||||
|
||||
# lua includes folder
|
||||
%lua_incdir %(pkgconf --variable=includedir lua)
|
||||
|
||||
Reference in New Issue
Block a user