Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP4:FactoryCandidates
lua-macros
macros.lua
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File macros.lua of Package lua-macros
# RPM macros for Lua # The major.minor version of Lua %lua_version %(lua -e 'print(_VERSION)' | cut -d ' ' -f 2) %lua_version_nodots %(lua -e 'print((string.gsub("%{lua_version}", "%.", "")))') # compiled modules should go here %lua_archdir %{_libdir}/lua/%{lua_version} # pure Lua modules should go here %lua_noarchdir %{_datadir}/lua/%{lua_version} # lua includes folder %lua_incdir %{_includedir}/lua%{lua_version} %lua_version_default %{lua: local result = 5.4 local ver = rpm.expand("%{?suse_version}") if #ver > 0 then ver = tonumber(ver) if ver < 1500 then result = 5.1 elseif ver == 1500 then result = 5.3 end end print(result) } %lua_version_default_nodots %(lua -e 'print((string.gsub("%{lua_version_default}", "%.", "")))') %ifluadefault \ %if %{lua_version_nodots} == %{lua_version_default_nodots} \ %{nil} # Lua default version # -e: Exclude lua prefix # -n: Specify name %lua_provides(en:) \ %ifluadefault \ %if 0%{?-n:1} \ Provides: %{-n*} = %{version}-%{release} \ Obsoletes: %{-n*} < %{version}-%{release} \ %else \ %if 0%{?-e:1} \ Provides: %{mod_name} = %{version}-%{release} \ Obsoletes: %{mod_name} < %{version}-%{release} \ %else \ Provides: lua-%{mod_name} = %{version}-%{release} \ Obsoletes: lua-%{mod_name} < %{version}-%{release} \ %endif \ %endif \ %endif \ %{nil} # LuaRocks %luarocks_build \ luarocks --lua-version "%{lua_version}" \\\ make --pack-binary-rock --deps-mode none %luarocks_install \ luarocks --lua-version="%{lua_version}" --tree="%{buildroot}%{_prefix}" \\\ install --deps-mode=none --no-manifest %luarocks_treedir %{_prefix}/lib/luarocks/rocks-%{lua_version}
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor