ad3cafe2f3
- move rpm macros back, but install it in /etc/rpm/macros.lua51 and call lua5.1 in %lua_version definition - move the lua rpm macros to the devel package to avoid conflict with lua 5.2 - Added url as source. Please see http://en.opensuse.org/SourceUrls OBS-URL: https://build.opensuse.org/request/show/175827 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lua51?expand=0&rev=8
11 lines
276 B
Lua
11 lines
276 B
Lua
# RPM macros for Lua
|
|
|
|
# The major.minor version of Lua
|
|
%lua_version %(lua5.1 -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}
|