forked from pool/lua-macros
Matej Cepl
7d02c2c64e
- Add lua_provides macro for default lua naming OBS-URL: https://build.opensuse.org/request/show/867226 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-macros?expand=0&rev=9
22 lines
530 B
Lua
22 lines
530 B
Lua
# RPM macros for Lua
|
|
|
|
# The major.minor version of Lua
|
|
%lua_version %(lua -e 'print(_VERSION)' | cut -d ' ' -f 2)
|
|
|
|
# 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 default version
|
|
%lua_provides \
|
|
%if "%{flavor}" == "lua54" \
|
|
Provides: lua-%{mod_name} = %{version}-%{release} \
|
|
Obsoletes: lua-%{mod_name} < %{version}-%{release} \
|
|
%endif \
|
|
%{nil}
|