diff --git a/luarocks-3.12.2.tar.gz b/luarocks-3.12.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..a0fa50148fcc383dda60d0c20976d6853cd0fc84 Binary files /dev/null and b/luarocks-3.12.2.tar.gz differ diff --git a/luarocks-3.5.0-dynamic_libdir.patch b/luarocks-3.5.0-dynamic_libdir.patch new file mode 100644 index 0000000000000000000000000000000000000000..5846fa6cada0506357a0e6cf93b18eab6fbadbbf --- /dev/null +++ b/luarocks-3.5.0-dynamic_libdir.patch @@ -0,0 +1,23 @@ +Index: luarocks-3.9.2/src/luarocks/core/cfg.lua +=================================================================== +--- luarocks-3.9.2/src/luarocks/core/cfg.lua ++++ luarocks-3.9.2/src/luarocks/core/cfg.lua 2024-02-17 09:17:49.931732539 +0100 +@@ -398,6 +398,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" ++ if platforms.linux then ++ -- inline code from fs/linux.lua since ++ -- luarocks.fs can't be required here ++ -- (circular dependencies) ++ local fd, _, code = io.open("/usr/lib64", "r") ++ if code ~= 2 then ++ defaults.lib_modules_path = "/lib64/lua/"..lua_version ++ end ++ if fd then ++ fd:close() ++ end ++ end + end + + if platforms.cygwin then diff --git a/luarocks-3.9.2.tar.gz b/luarocks-3.9.2.tar.gz deleted file mode 100644 index cea55eef36d4ae0027f757803a3eb3f9645c76f2..0000000000000000000000000000000000000000 Binary files a/luarocks-3.9.2.tar.gz and /dev/null differ diff --git a/luarocks.spec b/luarocks.spec index 574e9bf868fb6289ea29c04abae0fcc70d860cfe..4961cea585fae7cfe842ba6060ee31d0510cd68e 100644 --- a/luarocks.spec +++ b/luarocks.spec @@ -1,14 +1,12 @@ -%global lua_version 5.4 -%{!?lua_pkgdir: %global lua_pkgdir %{_datadir}/lua/%{lua_version}} - Name: luarocks -Version: 3.9.2 +Version: 3.12.2 Release: 1 Summary: A deployment and management system for Lua modules License: MIT -URL: http://luarocks.org -Source0: http://luarocks.org/releases/luarocks-%{version}.tar.gz +URL: https://luarocks.org/ +Source0: https://luarocks.github.io/luarocks/releases/%{name}-%{version}.tar.gz +Patch0: luarocks-3.5.0-dynamic_libdir.patch BuildArch: noarch @@ -17,7 +15,8 @@ BuildRequires: lua-devel Requires: unzip Requires: zip -Requires: lua +Requires: (/usr/bin/wget or /usr/bin/curl) +Requires: (/usr/bin/md5sum or /usr/bin/openssl or /usr/bin/md5) %description @@ -37,7 +36,8 @@ repositories, and multiple local rocks trees. %build ./configure \ --prefix=%{_prefix} \ - --lua-version=%{lua_version} + --lua-version=%{lua_version} \ + --with-lua=%{_prefix} %make_build %install @@ -45,11 +45,6 @@ repositories, and multiple local rocks trees. mkdir -p %{buildroot}%{_prefix}/lib/luarocks/rocks-%{lua_version} -%check -# Need a offline regression test -# ./smoke_test.sh - - %files %license COPYING %doc README.md @@ -60,8 +55,10 @@ mkdir -p %{buildroot}%{_prefix}/lib/luarocks/rocks-%{lua_version} %{_prefix}/lib/luarocks %{lua_pkgdir}/luarocks - %changelog +* Sun Aug 24 2025 Funda Wang - 3.12.2-1 +- update to 3.12.2 + * Tue Aug 1 2023 Xinwei Hu - 3.9.2-1 - Decouple luarocks from openresty - Upgrade to 3.9.2