Accepting request 884023 from home:gmbr3:lua

- Add %lua_version_nodots to equal package naming

OBS-URL: https://build.opensuse.org/request/show/884023
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-macros?expand=0&rev=14
This commit is contained in:
Matej Cepl 2021-04-12 12:40:20 +00:00 committed by Git OBS Bridge
parent e4cbbabe9b
commit 1fd01ca772
3 changed files with 12 additions and 4 deletions

View File

@ -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> 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> Wed Jan 27 15:51:37 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>

View File

@ -15,7 +15,9 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
%if %{undefined _rpmmacrodir}
%define _rpmmacrodir %{_rpmconfigdir}/macros.d
%endif
Name: lua-macros Name: lua-macros
Version: 20170611 Version: 20170611
Release: 0 Release: 0
@ -40,9 +42,9 @@ sed -i -e '/includedir/s!/lua!&-!' macros.lua
: :
%install %install
install -D -m 644 macros.lua %{buildroot}%{_usr}/lib/rpm/macros.d/macros.lua install -Dm644 macros.lua %{buildroot}%{_rpmmacrodir}/macros.lua
%files %files
%{_usr}/lib/rpm/macros.d/macros.lua %{_rpmmacrodir}/macros.lua
%changelog %changelog

View File

@ -2,6 +2,7 @@
# The major.minor version of Lua # The major.minor version of Lua
%lua_version %(lua -e 'print(_VERSION)' | cut -d ' ' -f 2) %lua_version %(lua -e 'print(_VERSION)' | cut -d ' ' -f 2)
%lua_version_nodots %(perl -e "print %{lua_version}*10")
# compiled modules should go here # compiled modules should go here
%lua_archdir %{_libdir}/lua/%{lua_version} %lua_archdir %{_libdir}/lua/%{lua_version}