Compare commits

...

6 Commits

3 changed files with 29 additions and 3 deletions

16
lua-interpreter.changes Normal file
View File

@@ -0,0 +1,16 @@
-------------------------------------------------------------------
Thu Aug 14 07:33:57 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Simplify Suggests:, rely on the project configured %{lua_pref},
if theres any.
-------------------------------------------------------------------
Tue Aug 5 10:19:45 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Require lua symbol to close the loop.
-------------------------------------------------------------------
Mon Jul 14 13:53:43 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Initial infrastructure for using alts with Lua interpreters.
- We have to mention lua-interpreter.rpmlintrc at least as a Source99.

View File

@@ -0,0 +1,3 @@
# Yes, there is nothing to test here
addFilter("W: no-%check-section")
addFilter("E: empty-libalternatives-directory /usr/share/libalternatives/")

View File

@@ -21,7 +21,12 @@ Release: 0
Summary: Shared superstructure for Lua interpreters
License: MIT
URL: https://www.lua.org/
Source99: lua-interpreter.rpmlintrc
BuildRequires: alts
Requires: alts
Requires: lua
BuildArch: noarch
%{?lua_pref:Suggests: %{lua_pref}}
%description
Shared package owning resources shared among Lua interpreters.
@@ -33,16 +38,18 @@ true
:
%install
mkdir -p %{buildroot}%{_bindir}
ln -s -f %{_bindir}/alts %{buildroot}%{_bindir}/lua
ln -s -f %{_bindir}/alts %{buildroot}%{_bindir}/luac
# alternatives - create libalternatives configuration directory
mkdir -p %{buildroot}%{_datadir}/libalternatives/lua
mkdir -p %{buildroot}%{_datadir}/libalternatives/luac
%files
%license LICENSE
%{_bindir}/lua
%dir %{_datadir}/libalternatives/lua
%dir %{_datadir}/libalternatives/luac
%{_bindir}/luac
%{_datadir}/libalternatives/lua
%{_datadir}/libalternatives/luac
%changelog