SHA256
1
0
forked from pool/lua-dkjson

5 Commits

Author SHA256 Message Date
e4b13f8b84 Switch off building lua51 build of the package. 2025-10-24 16:47:53 +02:00
34ea1b9907 Don't depend on lua5.1 2025-10-11 17:12:07 +02:00
a5d9a23c66 Add luajit version to _multibuild 2025-10-06 10:47:00 +02:00
4141f17cb0 Accepting request 1233621 from devel:languages:lua
- Update to 2.8:
  - Fix handling of decoding errors when Lua is compiled with
    LUA_NOCVTN2S.
- Update to 2.7:
  - Enable working with newer versions of LPeg where the
    "version" field is no longer a function.
  - Fix error messages when an encoding error happens in an
    ordered dictionary.
- Update to 2.6:
  - The decode function is no longer automatically replaced by
    the version implemented using LPeg, but an LPeg-enabled
    copy of the module has to be requested explicitly with
    the function use_lpeg. This was changed to improve the
    predictability of the code and make audits more reliable.
  - The LPeg-version of the decode function now reports
    unterminated strings, arrays and objects with the position
    where they started rather than where parsing failed which was
    usually at the end of the input string. This was already the
    behavior of the pure-Lua-implementation.
  - Fixed a bug where entries in a dictionary were not put in the
    desired order when their value was the boolean false.

OBS-URL: https://build.opensuse.org/request/show/1233621
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lua-dkjson?expand=0&rev=6
2024-12-30 11:51:25 +00:00
e07cb36eea - Update to 2.8:
- Fix handling of decoding errors when Lua is compiled with
    LUA_NOCVTN2S.
- Update to 2.7:
  - Enable working with newer versions of LPeg where the
    "version" field is no longer a function.
  - Fix error messages when an encoding error happens in an
    ordered dictionary.
- Update to 2.6:
  - The decode function is no longer automatically replaced by
    the version implemented using LPeg, but an LPeg-enabled
    copy of the module has to be requested explicitly with
    the function use_lpeg. This was changed to improve the
    predictability of the code and make audits more reliable.
  - The LPeg-version of the decode function now reports
    unterminated strings, arrays and objects with the position
    where they started rather than where parsing failed which was
    usually at the end of the input string. This was already the
    behavior of the pure-Lua-implementation.
  - Fixed a bug where entries in a dictionary were not put in the
    desired order when their value was the boolean false.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-dkjson?expand=0&rev=13
2024-12-28 00:29:24 +00:00
5 changed files with 47 additions and 12 deletions

View File

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

BIN
dkjson-2.8.tar.gz LFS Normal file

Binary file not shown.

BIN
dkjson.tar.gz LFS

Binary file not shown.

View File

@@ -1,3 +1,38 @@
-------------------------------------------------------------------
Fri Oct 24 14:47:53 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Switch off building lua51 build of the package.
-------------------------------------------------------------------
Sat Oct 11 15:12:03 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Don't depend on lua5.1
-------------------------------------------------------------------
Sat Dec 28 00:26:59 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Update to 2.8:
- Fix handling of decoding errors when Lua is compiled with
LUA_NOCVTN2S.
- Update to 2.7:
- Enable working with newer versions of LPeg where the
"version" field is no longer a function.
- Fix error messages when an encoding error happens in an
ordered dictionary.
- Update to 2.6:
- The decode function is no longer automatically replaced by
the version implemented using LPeg, but an LPeg-enabled
copy of the module has to be requested explicitly with
the function use_lpeg. This was changed to improve the
predictability of the code and make audits more reliable.
- The LPeg-version of the decode function now reports
unterminated strings, arrays and objects with the position
where they started rather than where parsing failed which was
usually at the end of the input string. This was already the
behavior of the pure-Lua-implementation.
- Fixed a bug where entries in a dictionary were not put in the
desired order when their value was the boolean false.
-------------------------------------------------------------------
Wed Nov 23 10:17:15 UTC 2022 - Michal Suchanek <msuchanek@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package lua-dkjson
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,14 +18,14 @@
%define flavor @BUILD_FLAVOR@
%define mod_name dkjson
%define uptag release_2_5
Version: 2.5.2
%define uptag 2.8
Version: 2.8.0
Release: 0
Summary: David Kolf's JSON module for Lua
License: MIT
Group: Development/Libraries/Other
URL: http://dkjson.org/
Source: http://dkolf.de/src/dkjson-lua.fsl/tarball/%{uptag}/dkjson.tar.gz
Source: http://dkolf.de/dkjson-lua/dkjson-%{uptag}.tar.gz
BuildRequires: %{flavor}-devel
BuildRequires: lua-macros
Requires: %{flavor}
@@ -50,17 +50,17 @@ dkjson is written in Lua without any dependencies, but
when LPeg is available dkjson can use it to speed up decoding.
%prep
%setup -q -n %{uptag}/%{mod_name}
%autosetup -p1 -n dkjson-%{uptag}
%build
/bin/true
:
%install
install -D -m 0644 -t %{buildroot}%{lua_noarchdir} -p dkjson.lua
%check
lua%{lua_version} speedtest.lua dkjson
lua%{lua_version} jsontest.lua
lua speedtest.lua dkjson
lua jsontest.lua
%files
# license is included in readme.txt file