Accepting request 884658 from devel:languages:lua
OBS-URL: https://build.opensuse.org/request/show/884658 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lua-macros?expand=0&rev=5
This commit is contained in:
commit
d2a3ce197a
@ -1,7 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 9 10:03:41 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
|
||||
|
||||
- Add %lua_version_nodots to equal package naming
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 26 15:54:56 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
|
||||
|
||||
- Add -e (exclude) option
|
||||
- Add -e (exclude) option to %lua_provides
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 27 15:51:37 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
|
||||
|
@ -15,7 +15,9 @@
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%if %{undefined _rpmmacrodir}
|
||||
%define _rpmmacrodir %{_rpmconfigdir}/macros.d
|
||||
%endif
|
||||
Name: lua-macros
|
||||
Version: 20170611
|
||||
Release: 0
|
||||
@ -40,9 +42,9 @@ sed -i -e '/includedir/s!/lua!&-!' macros.lua
|
||||
:
|
||||
|
||||
%install
|
||||
install -D -m 644 macros.lua %{buildroot}%{_usr}/lib/rpm/macros.d/macros.lua
|
||||
install -Dm644 macros.lua %{buildroot}%{_rpmmacrodir}/macros.lua
|
||||
|
||||
%files
|
||||
%{_usr}/lib/rpm/macros.d/macros.lua
|
||||
%{_rpmmacrodir}/macros.lua
|
||||
|
||||
%changelog
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
# The major.minor version of Lua
|
||||
%lua_version %(lua -e 'print(_VERSION)' | cut -d ' ' -f 2)
|
||||
%lua_version_nodots %(perl -e "print %{lua_version}*10")
|
||||
|
||||
# compiled modules should go here
|
||||
%lua_archdir %{_libdir}/lua/%{lua_version}
|
||||
|
Loading…
Reference in New Issue
Block a user