Compare commits
3 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
|
0c58574e07
|
|||
|
7025bc35e1
|
|||
|
7e8b42a878
|
BIN
2.1.0.14.tar.gz
LFS
BIN
2.1.0.14.tar.gz
LFS
Binary file not shown.
@@ -2,4 +2,5 @@
|
||||
<package>luajit</package>
|
||||
<package>lua53</package>
|
||||
<package>lua54</package>
|
||||
<package>lua55</package>
|
||||
</multibuild>
|
||||
|
||||
BIN
lua-cjson-2.1.0.16.tar.gz
LFS
Normal file
BIN
lua-cjson-2.1.0.16.tar.gz
LFS
Normal file
Binary file not shown.
@@ -1,3 +1,17 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 28 14:03:05 UTC 2026 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
- Upgrade to 2.1.0.16:
|
||||
- bugfix: fix truncation of decoded numbers outside lua_Integer's range (#116)
|
||||
- Upgrade to 2.1.0.15:
|
||||
- gugfix: fixed Makefile.
|
||||
- Rewritten %check section
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 23 21:40:36 UTC 2026 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
- Enable lua55 build.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 24 14:47:18 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
|
||||
@@ -18,12 +18,12 @@
|
||||
|
||||
%define flavor @BUILD_FLAVOR@
|
||||
%define mod_name cjson
|
||||
Version: 2.1.0.14
|
||||
Version: 2.1.0.16
|
||||
Release: 0
|
||||
Summary: Lua JSON Encoding/Decoding
|
||||
License: MIT
|
||||
URL: https://github.com/openresty/lua-cjson
|
||||
Source: https://github.com/openresty/lua-cjson/archive/refs/tags/%{version}.tar.gz
|
||||
Source: https://github.com/openresty/lua-%{mod_name}/archive/refs/tags/%{version}.tar.gz#/lua-%{mod_name}-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM test_environment.patch gh#mpx/lua-cjson#75 mcepl@suse.com
|
||||
# Make it possible for tests to be influenced by the variables
|
||||
Patch0: test_environment.patch
|
||||
@@ -34,6 +34,7 @@ BuildRequires: %{flavor}-luarocks
|
||||
BuildRequires: cmake
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: perl
|
||||
%lua_provides
|
||||
%if "%{flavor}" == ""
|
||||
Name: lua-%{mod_name}
|
||||
@@ -59,10 +60,7 @@ export CFLAGS="%{optflags}"
|
||||
-DLUA_INCLUDE_DIR:PATH="%{lua_incdir}"
|
||||
find ..
|
||||
|
||||
make %{?_make_output_sync} %{?_smp_mflags} \
|
||||
CC="gcc" \
|
||||
PREFIX="%{_prefix}" \
|
||||
LUA_INCLUDE_DIR=%{lua_incdir}
|
||||
%cmake_build
|
||||
|
||||
%install
|
||||
mkdir -p -m 755 \
|
||||
@@ -73,9 +71,17 @@ install -m644 lua/cjson/util.lua %{buildroot}%{lua_noarchdir}/cjson/
|
||||
|
||||
%check
|
||||
rm -rf build
|
||||
export CFLAGS="%{optflags}" PREFIX="%{_prefix}" SKIP_CMAKE=1 \
|
||||
LUA_INCLUDE_DIR="%{lua_incdir}" LUA_CMODULE_DIR="%{lua_archdir}" LUA_MODULE_DIR="%{lua_noarchdir}"
|
||||
./runtests.sh
|
||||
export LUA_CPATH="%{buildroot}%{lua_archdir}/?.so;;"
|
||||
export LUA_PATH="%{buildroot}%{lua_noarchdir}/?.lua;%{buildroot}%{lua_noarchdir}/?/init.lua;;"
|
||||
# gh#openresty/lua-cjson#120
|
||||
export SKIP_TESTS="encode_keep_buffer"
|
||||
( cd tests
|
||||
perl ./genutf8.pl
|
||||
lua -e 'print("Testing Lua CJSON version " .. require("cjson")._VERSION)'
|
||||
# We have GNU/grep, so we don’t have to work around Solaris/grep limitations
|
||||
./test.lua 2>/dev/null | grep -Ev "$SKIP_TESTS" \
|
||||
| grep -E -A 3 'FAIL|Summary' | grep -v 'PASS' | cut -c -150
|
||||
)
|
||||
|
||||
%files
|
||||
%{lua_archdir}/cjson.so
|
||||
|
||||
Reference in New Issue
Block a user