8 Commits

Author SHA256 Message Date
6d65bf66b3 Update to 3.13.0
- Supports Lua 5.5!
- documentation fixes
- fix: check_lua_libdir reads liblua in binary mode
2026-01-06 07:57:48 +01:00
eb968dbc5a Switch off building lua51 build of the package. 2025-10-29 17:38:59 +01:00
fcc374e219 Add luajit version to _multibuild 2025-10-29 17:38:39 +01:00
08895be6ae Accepting request 1313557 from devel:languages:lua
- Switch off building lua51 build of the package.

- 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:

OBS-URL: https://build.opensuse.org/request/show/1313557
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lua-luarocks?expand=0&rev=16
2025-10-27 13:37:13 +00:00
bd104a5222 Accepting request 1169898 from devel:languages:lua
OBS-URL: https://build.opensuse.org/request/show/1169898
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lua-luarocks?expand=0&rev=15
2024-04-24 13:13:50 +00:00
35775fdd39 Accepting request 1169656 from home:smolsheep:upgrades
- Update to version 3.11.0:
  Features:
  * luarocks build and luarocks install no longer rebuild or
    reinstall if the version is already installed (--force
    overrides).
  * More aggressive caching of the manifest file (does not hit
    luarocks.org again if the cached manifest is younger than 10
    seconds).
  * Drops stale lock files (older than 1 hour).
  * More informative error reports on bad configurations of Lua
    paths (LUA_INCDIR, LUA_LIBDIR).
  * Better error messages when lacking permissions.
  * Bumps vendored dkjson dependency to 2.7.
  * --verbose output now prints the LuaRocks configuration, for
    more informative bug reports.
  Fixes:
  * Passing --global always LuaRocks target the system tree.
  * Does not crash if root_dir is a table.
  * Does not try to lock rocks trees when using --pack-binary-rock
    or --no-install.
  * Checks permissions ahead of trying to lock trees, to provide
    better error messages.
  * Avoids LuaSec version mismatch by refusing to use LuaSec
    versions below 1.1.
  * Does not set up a "project environment" when running make on
    the LuaRocks sources.
- Updates from version 3.10.0
  Features:
  * Introduce file-based locking for concurrent access control.
    Previously, LuaRocks would produce undefined behavior when
    running two instances at the same time.
  * Rockspec quality-of-life improvements:
  * Using an unknown build.type now automatically implies a build
    dependency for luarocks-build-<build.type>.
  * Improve rockspec.source.dir autodetection.
  * builtin build mode now automatically inherits include and
    libdirs from external_dependencies if not set explicitly.
  * improved and simplified Lua interpreter search.
  * lua_interpreter config value is deprecated in favor of
    variables.LUA which contains the full interpreter path.
  * luarocks-admin remove now supports the file:// protocol for
    managing local rocks servers.
  * Bundled dkjson library, so that luarocks upload does not
    require an external JSON library.
  * New flags for luarocks init: --no-gitignore,
    --no-wrapper-scripts, --wrapper-dir.
  * luarocks config now attempts updating the system config by
    default when local_by_default is false.
  * New flag for luarocks path: --full, for use with --lr-path and
    --lr-cpath.
  Fixes:
  * luarocks build no longer looks for Lua headers when installing
    pure-Lua rocks.
  * luarocks build table in rockspecs now gets some additional
    validation to prevent crashes on malformed rockspecs.
  * build.builtin now compiles C modules in a temporary directory,
    avoiding name clashes
  * build_dependencies now correctly installs dependencies for the
    Lua version that LuaRocks is running on, and not the one it is
    building for with --lua-version.
  * build_dependencies can now use a dependency available in any
    rocks tree (system, user, project).
  * luarocks config now prints boolean values correctly on Lua 5.1.
  * luarocks config now ensures the target directory exists when
    saving a configuration.
  * luarocks init now injects the project's package.(c)path in the
    Lua wrapper.
  * luarocks lint no longer crashes if a rockspec misses a
    description field.
  * luarocks test now handles malformed command entries gracefully.
  * if --lua-* flags are given in the CLI, the hardcoded values are
    never used.
  * the "no downloader" error is now shown only once, and not once
    per failed mirror.
  * project dir is always presented normalized
  * catch the failure to setup LUA_BINDIR early.
  * when using --pack-binary-rock and a zip program is unavailable,
    report that instead of failing cryptically.
  * More graceful handling when failing to create a local cache.
  * Avoid confusion with macOS multiarch binaries on system
    detection.
  * Add --tree to the rocks trees list.
  * Better support for LuaJIT versions with extra suffixes in their
    version numbers.
  * Don't use floats to parse Lua version number.
  * Various fixes related to path normalization.
- Updates from version 3.9.2:
  * Configuration now honors typical compiler environment variables
    for all build backends such as MAKE, CC, AR, RANLIB
  * luarocks test now checks/installs all dependency kinds (build,
    runtime, test), so you don't need to run luarocks make
    --only-deps in CI environments to get all dependencies needed
    to run a test
  * Fixed crash if variables.LUA* are unset in configuration
  * Fix luarocks test --prepare behavior for non-Busted tests
  * Internal API fixes
  * path.path_to_module: accept custom file extensions in package
    path variables
  * persist.save_from_table: ensure directory exists when saving a
    file

OBS-URL: https://build.opensuse.org/request/show/1169656
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-luarocks?expand=0&rev=34
2024-04-23 14:15:08 +00:00
8636bbc67c Accepting request 1120604 from devel:languages:lua
OBS-URL: https://build.opensuse.org/request/show/1120604
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lua-luarocks?expand=0&rev=14
2023-10-27 20:27:37 +00:00
853e3d1f10 Accepting request 1120584 from home:mbjoerkelund:branches:devel:languages:lua
This revision fix the luarocks-admin link, as it was previously pointing to luarocks instead of luarocks-admin, and thus not working properly.
The luarocks-admin CLI has only a few commands such as "make-manifest", and these are not available in the default luarocks CLI. These commands may be required when building a new package and since "luarocks make-manifest" errors, it would not work.

OBS-URL: https://build.opensuse.org/request/show/1120584
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-luarocks?expand=0&rev=32
2023-10-26 14:59:24 +00:00
8 changed files with 223 additions and 15 deletions

1
.gitattributes vendored
View File

@@ -21,3 +21,4 @@
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text
*.changes merge=merge-changes

5
.gitignore vendored
View File

@@ -1 +1,4 @@
.osc
*.obscpio
*.osc
_build*
.pbuild

View File

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

View File

@@ -9,14 +9,14 @@ should use `lib64` rather than `lib`.
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(+)
diff --git a/src/luarocks/core/cfg.lua b/src/luarocks/core/cfg.lua
index 4ac5ee281..c7d2cb2cb 100644
--- a/src/luarocks/core/cfg.lua
+++ b/src/luarocks/core/cfg.lua
@@ -397,6 +397,18 @@ local function make_defaults(lua_version, target_cpu, platforms, home)
Index: luarocks-3.13.0/src/luarocks/core/cfg.lua
===================================================================
--- luarocks-3.13.0.orig/src/luarocks/core/cfg.lua 2025-12-29 00:01:55.000000000 +0100
+++ luarocks-3.13.0/src/luarocks/core/cfg.lua 2026-01-06 07:56:43.952247974 +0100
@@ -410,6 +410,18 @@
local xdg_cache_home = os.getenv("XDG_CACHE_HOME") or home.."/.cache"
defaults.local_cache = xdg_cache_home.."/luarocks"
defaults.web_browser = "xdg-open"

View File

@@ -1,3 +1,182 @@
-------------------------------------------------------------------
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>
- Update to version 3.11.0:
Features:
* luarocks build and luarocks install no longer rebuild or
reinstall if the version is already installed (--force
overrides).
* More aggressive caching of the manifest file (does not hit
luarocks.org again if the cached manifest is younger than 10
seconds).
* Drops stale lock files (older than 1 hour).
* More informative error reports on bad configurations of Lua
paths (LUA_INCDIR, LUA_LIBDIR).
* Better error messages when lacking permissions.
* Bumps vendored dkjson dependency to 2.7.
* --verbose output now prints the LuaRocks configuration, for
more informative bug reports.
Fixes:
* Passing --global always LuaRocks target the system tree.
* Does not crash if root_dir is a table.
* Does not try to lock rocks trees when using --pack-binary-rock
or --no-install.
* Checks permissions ahead of trying to lock trees, to provide
better error messages.
* Avoids LuaSec version mismatch by refusing to use LuaSec
versions below 1.1.
* Does not set up a "project environment" when running make on
the LuaRocks sources.
- Updates from version 3.10.0
Features:
* Introduce file-based locking for concurrent access control.
Previously, LuaRocks would produce undefined behavior when
running two instances at the same time.
* Rockspec quality-of-life improvements:
* Using an unknown build.type now automatically implies a build
dependency for luarocks-build-<build.type>.
* Improve rockspec.source.dir autodetection.
* builtin build mode now automatically inherits include and
libdirs from external_dependencies if not set explicitly.
* improved and simplified Lua interpreter search.
* lua_interpreter config value is deprecated in favor of
variables.LUA which contains the full interpreter path.
* luarocks-admin remove now supports the file:// protocol for
managing local rocks servers.
* Bundled dkjson library, so that luarocks upload does not
require an external JSON library.
* New flags for luarocks init: --no-gitignore,
--no-wrapper-scripts, --wrapper-dir.
* luarocks config now attempts updating the system config by
default when local_by_default is false.
* New flag for luarocks path: --full, for use with --lr-path and
--lr-cpath.
Fixes:
* luarocks build no longer looks for Lua headers when installing
pure-Lua rocks.
* luarocks build table in rockspecs now gets some additional
validation to prevent crashes on malformed rockspecs.
* build.builtin now compiles C modules in a temporary directory,
avoiding name clashes
* build_dependencies now correctly installs dependencies for the
Lua version that LuaRocks is running on, and not the one it is
building for with --lua-version.
* build_dependencies can now use a dependency available in any
rocks tree (system, user, project).
* luarocks config now prints boolean values correctly on Lua 5.1.
* luarocks config now ensures the target directory exists when
saving a configuration.
* luarocks init now injects the project's package.(c)path in the
Lua wrapper.
* luarocks lint no longer crashes if a rockspec misses a
description field.
* luarocks test now handles malformed command entries gracefully.
* if --lua-* flags are given in the CLI, the hardcoded values are
never used.
* the "no downloader" error is now shown only once, and not once
per failed mirror.
* project dir is always presented normalized
* catch the failure to setup LUA_BINDIR early.
* when using --pack-binary-rock and a zip program is unavailable,
report that instead of failing cryptically.
* More graceful handling when failing to create a local cache.
* Avoid confusion with macOS multiarch binaries on system
detection.
* Add --tree to the rocks trees list.
* Better support for LuaJIT versions with extra suffixes in their
version numbers.
* Don't use floats to parse Lua version number.
* Various fixes related to path normalization.
- Updates from version 3.9.2:
* Configuration now honors typical compiler environment variables
for all build backends such as MAKE, CC, AR, RANLIB
* luarocks test now checks/installs all dependency kinds (build,
runtime, test), so you don't need to run luarocks make
--only-deps in CI environments to get all dependencies needed
to run a test
* Fixed crash if variables.LUA* are unset in configuration
* Fix luarocks test --prepare behavior for non-Busted tests
* Internal API fixes
* path.path_to_module: accept custom file extensions in package
path variables
* persist.save_from_table: ensure directory exists when saving a
file
-------------------------------------------------------------------
Thu Oct 26 12:56:30 UTC 2023 - Marcos Bjoerkelund <marcos.bjoerkelund@suse.com>
- Fix luarocks-admin link, previously pointing to luarocks
-------------------------------------------------------------------
Wed Nov 23 10:33:53 UTC 2022 - Michal Suchanek <msuchanek@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package lua-luarocks
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2012 Togan Muftuoglu toganm@opensuse.org
#
# All modifications and additions to the file contributed by third parties
@@ -17,10 +17,16 @@
#
%define flavor @BUILD_FLAVOR@%{nil}
%define flavor @BUILD_FLAVOR@
%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::')
Version: 3.9.1
%endif
Version: 3.13.0
Release: 0
Summary: A deployment and management system for Lua modules
License: MIT
@@ -29,11 +35,14 @@ URL: https://luarocks.org
Source0: https://luarocks.org/releases/%{mod_name}-%{version}.tar.gz
Patch0: lib64.patch
BuildRequires: %{flavor}-devel
BuildRequires: %{flavor}-compat-5.3
BuildRequires: curl
BuildRequires: lua-macros
BuildRequires: openssl
BuildRequires: unzip
BuildRequires: fdupes
Requires: %{flavor}
Requires: %{flavor}-compat-5.3
Requires: curl
Requires: openssl
Requires: unzip
@@ -67,6 +76,7 @@ repositories, and multiple local rocks trees.
--prefix=%{_prefix} \
--lua-version=%{lua_version}
make %{?_smp_mflags} build
sed -i '1s,#!/usr/bin/luajit,#!/usr/bin/lua,' build/luarocks build/luarocks-admin
%install
%make_install
@@ -83,9 +93,24 @@ ln -sf %{_sysconfdir}/alternatives/luarocks %{buildroot}%{_bindir}/luarocks-admi
# rockstree
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
%{_sbindir}/update-alternatives --install %{_bindir}/luarocks luarocks %{_bindir}/luarocks-%{lua_version} %{lua_value} \
--slave %{_bindir}/luarocks-admin luarocks-admin %{_bindir}/luarocks-%{lua_version}
--slave %{_bindir}/luarocks-admin luarocks-admin %{_bindir}/luarocks-admin-%{lua_version}
%postun
if [ "$1" = 0 ] ; then

BIN
luarocks-3.13.0.tar.gz LFS Normal file

Binary file not shown.

Binary file not shown.