forked from pool/lua-luarocks
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
|
6d65bf66b3
|
|||
|
eb968dbc5a
|
|||
|
fcc374e219
|
|||
| 08895be6ae |
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -21,3 +21,4 @@
|
|||||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.changes merge=merge-changes
|
||||||
|
|||||||
5
.gitignore
vendored
5
.gitignore
vendored
@@ -1 +1,4 @@
|
|||||||
.osc
|
*.obscpio
|
||||||
|
*.osc
|
||||||
|
_build*
|
||||||
|
.pbuild
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
12
lib64.patch
12
lib64.patch
@@ -9,14 +9,14 @@ should use `lib64` rather than `lib`.
|
|||||||
|
|
||||||
Signed-off-by: Michel Alexandre Salim <michel@michel-slm.name>
|
Signed-off-by: Michel Alexandre Salim <michel@michel-slm.name>
|
||||||
---
|
---
|
||||||
src/luarocks/core/cfg.lua | 12 ++++++++++++
|
src/luarocks/core/cfg.lua | 12 ++++++++++++
|
||||||
1 file changed, 12 insertions(+)
|
1 file changed, 12 insertions(+)
|
||||||
|
|
||||||
diff --git a/src/luarocks/core/cfg.lua b/src/luarocks/core/cfg.lua
|
Index: luarocks-3.13.0/src/luarocks/core/cfg.lua
|
||||||
index 4ac5ee281..c7d2cb2cb 100644
|
===================================================================
|
||||||
--- a/src/luarocks/core/cfg.lua
|
--- luarocks-3.13.0.orig/src/luarocks/core/cfg.lua 2025-12-29 00:01:55.000000000 +0100
|
||||||
+++ b/src/luarocks/core/cfg.lua
|
+++ luarocks-3.13.0/src/luarocks/core/cfg.lua 2026-01-06 07:56:43.952247974 +0100
|
||||||
@@ -397,6 +397,18 @@ local function make_defaults(lua_version, target_cpu, platforms, home)
|
@@ -410,6 +410,18 @@
|
||||||
local xdg_cache_home = os.getenv("XDG_CACHE_HOME") or home.."/.cache"
|
local xdg_cache_home = os.getenv("XDG_CACHE_HOME") or home.."/.cache"
|
||||||
defaults.local_cache = xdg_cache_home.."/luarocks"
|
defaults.local_cache = xdg_cache_home.."/luarocks"
|
||||||
defaults.web_browser = "xdg-open"
|
defaults.web_browser = "xdg-open"
|
||||||
|
|||||||
@@ -1,3 +1,73 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 6 06:55:21 UTC 2026 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- Update to 3.13.0:
|
||||||
|
- Supports Lua 5.5!
|
||||||
|
- documentation fixes
|
||||||
|
- fix: check_lua_libdir reads liblua in binary mode
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Oct 24 14:49:36 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- Switch off building lua51 build of the package.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Oct 16 08:22:49 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- Update to LuaRocks 3.12.2:
|
||||||
|
- fix syntax error
|
||||||
|
- Update to LuaRocks 3.12.1:
|
||||||
|
- rockspec: re-add deprecated function type(). Removing this
|
||||||
|
broke the behavior of some luarocks.build plugins. LuaRocks
|
||||||
|
does not have a stable public API, but since this function
|
||||||
|
was returned as part of the function signature, we'll revert
|
||||||
|
this as a deprecated function, to be removed in LuaRocks 4.0.
|
||||||
|
No other reverts are planned for the sake of restoring
|
||||||
|
private APIs.
|
||||||
|
- Update to LuaRocks 3.12.0 (required for gh#luarocks/luarocks#1797):
|
||||||
|
- LuaRocks 3.12.0 marks the transition of the implementation of
|
||||||
|
the tool from Lua to Teal! This was implemented by Victor
|
||||||
|
Ilchev as his Google Summer of Code project.
|
||||||
|
- Transition entire implementation from Lua to Teal!
|
||||||
|
- luarocks upload: include .src.rock file when given.
|
||||||
|
- Various Windows fixes
|
||||||
|
- Only create binary wrapper for Lua scripts. (#1738)
|
||||||
|
- Project dir initialized via luarocks init has higher
|
||||||
|
precedence than local_by_default configuration. (#1682)
|
||||||
|
- add LUA_VERSION build variable for rockspecs.
|
||||||
|
- Rockspec format addition, feature-gated with rockspec_format
|
||||||
|
= "3.1:
|
||||||
|
- Avoid overwriting CMake variables from rockspec.
|
||||||
|
- Allow loading JSON-formatted manifest, to circumvent a LuaJIT
|
||||||
|
bug when loading Lua files.
|
||||||
|
- Various other minor fixes.
|
||||||
|
- Update to LuaRocks 3.11.1:
|
||||||
|
- Fixes:
|
||||||
|
- normalize namespace names to lowercase when performing
|
||||||
|
dependency resolution, to match CLI behavior
|
||||||
|
- luarocks build: ensure --force works
|
||||||
|
- luarocks init: check if we can create .gitignore
|
||||||
|
- Unix: honor umask correctly
|
||||||
|
- Fix error when failing to open cached files
|
||||||
|
- Fix behavior of luarocks.lock file when dealing with
|
||||||
|
dependencies
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Oct 11 20:57:00 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- Add %%check section just to run --version.
|
||||||
|
- Filter out file dependency on the interpreter.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Oct 11 19:53:51 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- Remove file dependency on the interpreter.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Oct 10 13:57:26 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- Allow building with LuaJIT.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Apr 22 12:03:25 UTC 2024 - Joshua Smith <smolsheep@opensuse.org>
|
Mon Apr 22 12:03:25 UTC 2024 - Joshua Smith <smolsheep@opensuse.org>
|
||||||
|
|
||||||
|
|||||||
@@ -17,10 +17,16 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define flavor @BUILD_FLAVOR@%{nil}
|
%define flavor @BUILD_FLAVOR@
|
||||||
%define mod_name luarocks
|
%define mod_name luarocks
|
||||||
|
# Remove file dependency on the interpreter
|
||||||
|
%global __requires_exclude ^/usr/bin/lua(5\\.[1-9]|jit)?$
|
||||||
|
%if "%{flavor}" == "luajit"
|
||||||
|
%define lua_value 52
|
||||||
|
%else
|
||||||
%define lua_value %(echo "%{flavor}" |sed -e 's:lua::')
|
%define lua_value %(echo "%{flavor}" |sed -e 's:lua::')
|
||||||
Version: 3.11.0
|
%endif
|
||||||
|
Version: 3.13.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A deployment and management system for Lua modules
|
Summary: A deployment and management system for Lua modules
|
||||||
License: MIT
|
License: MIT
|
||||||
@@ -29,11 +35,14 @@ URL: https://luarocks.org
|
|||||||
Source0: https://luarocks.org/releases/%{mod_name}-%{version}.tar.gz
|
Source0: https://luarocks.org/releases/%{mod_name}-%{version}.tar.gz
|
||||||
Patch0: lib64.patch
|
Patch0: lib64.patch
|
||||||
BuildRequires: %{flavor}-devel
|
BuildRequires: %{flavor}-devel
|
||||||
|
BuildRequires: %{flavor}-compat-5.3
|
||||||
BuildRequires: curl
|
BuildRequires: curl
|
||||||
BuildRequires: lua-macros
|
BuildRequires: lua-macros
|
||||||
BuildRequires: openssl
|
BuildRequires: openssl
|
||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
|
BuildRequires: fdupes
|
||||||
Requires: %{flavor}
|
Requires: %{flavor}
|
||||||
|
Requires: %{flavor}-compat-5.3
|
||||||
Requires: curl
|
Requires: curl
|
||||||
Requires: openssl
|
Requires: openssl
|
||||||
Requires: unzip
|
Requires: unzip
|
||||||
@@ -67,6 +76,7 @@ repositories, and multiple local rocks trees.
|
|||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
--lua-version=%{lua_version}
|
--lua-version=%{lua_version}
|
||||||
make %{?_smp_mflags} build
|
make %{?_smp_mflags} build
|
||||||
|
sed -i '1s,#!/usr/bin/luajit,#!/usr/bin/lua,' build/luarocks build/luarocks-admin
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
@@ -83,6 +93,21 @@ ln -sf %{_sysconfdir}/alternatives/luarocks %{buildroot}%{_bindir}/luarocks-admi
|
|||||||
# rockstree
|
# rockstree
|
||||||
mkdir -p %{buildroot}%{luarocks_treedir}
|
mkdir -p %{buildroot}%{luarocks_treedir}
|
||||||
|
|
||||||
|
# remove vendored compat-5.3 module
|
||||||
|
rm -rf %{buildroot}%{lua_noarchdir}/compat53
|
||||||
|
|
||||||
|
# remove duplicates
|
||||||
|
%fdupes %{buildroot}%{lua_noarchdir}
|
||||||
|
|
||||||
|
%check
|
||||||
|
export PATH="%{buildroot}%{_bindir}"
|
||||||
|
export LUA_PATH="%{buildroot}%{lua_noarchdir}/?.lua;"
|
||||||
|
CLIENT='luarocks-admin-%{lua_version}'
|
||||||
|
|
||||||
|
echo "Testing client $CLIENT: "
|
||||||
|
$CLIENT --version
|
||||||
|
echo "OK"
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%{_sbindir}/update-alternatives --install %{_bindir}/luarocks luarocks %{_bindir}/luarocks-%{lua_version} %{lua_value} \
|
%{_sbindir}/update-alternatives --install %{_bindir}/luarocks luarocks %{_bindir}/luarocks-%{lua_version} %{lua_value} \
|
||||||
--slave %{_bindir}/luarocks-admin luarocks-admin %{_bindir}/luarocks-admin-%{lua_version}
|
--slave %{_bindir}/luarocks-admin luarocks-admin %{_bindir}/luarocks-admin-%{lua_version}
|
||||||
|
|||||||
BIN
luarocks-3.11.0.tar.gz
LFS
BIN
luarocks-3.11.0.tar.gz
LFS
Binary file not shown.
BIN
luarocks-3.13.0.tar.gz
LFS
Normal file
BIN
luarocks-3.13.0.tar.gz
LFS
Normal file
Binary file not shown.
Reference in New Issue
Block a user