SHA256
1
0
forked from pool/lua-penlight

Compare commits

4 Commits

3 changed files with 14 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
<multibuild> <multibuild>
<package>lua51</package> <package>luajit</package>
<package>lua53</package> <package>lua53</package>
<package>lua54</package> <package>lua54</package>
</multibuild> </multibuild>

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Fri Oct 24 14:50:46 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Switch off building lua51 build of the package.
-------------------------------------------------------------------
Sun Oct 12 00:08:17 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Make the package build with LuaJIT.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jun 13 16:05:42 UTC 2024 - Gordon Leung <pirateclip@protonmail.com> Thu Jun 13 16:05:42 UTC 2024 - Gordon Leung <pirateclip@protonmail.com>

View File

@@ -20,7 +20,7 @@
%define flavor @BUILD_FLAVOR@%{nil} %define flavor @BUILD_FLAVOR@%{nil}
%define mod_name penlight %define mod_name penlight
%define rname Penlight %define rname Penlight
%ifluadefault %if "%{lua_version_nodots}" == "%{lua_version_default_nodots}"
%define with_main 1 %define with_main 1
%endif %endif
Version: 1.14.0 Version: 1.14.0
@@ -75,18 +75,16 @@ cp -av lua/pl %{buildroot}%{lua_noarchdir}
chmod -x %{buildroot}%{lua_noarchdir}/pl/dir.lua chmod -x %{buildroot}%{lua_noarchdir}/pl/dir.lua
# build and install README etc. # build and install README etc.
lua%{lua_version} %{lua_noarchdir}/markdown.lua *.md lua %{lua_noarchdir}/markdown.lua *.md
%check %check
LUA_PATH="%{buildroot}%{lua_noarchdir}/?/init.lua;%{buildroot}%{lua_noarchdir}/?.lua;;" \ LUA_PATH="%{buildroot}%{lua_noarchdir}/?/init.lua;%{buildroot}%{lua_noarchdir}/?.lua;;" \
lua%{lua_version} run.lua tests lua run.lua tests
%files %files
%license LICENSE.md %license LICENSE.md
%doc README.md *.html %doc README.md *.html
%{lua_noarchdir}/pl %{lua_noarchdir}/pl
# Add bash/zsh-completion files
# from completions/bash/penlight.bash penlight
%if 0%{?with_main} %if 0%{?with_main}
%files -n lua-%{mod_name}-doc %files -n lua-%{mod_name}-doc