Sync from SUSE:SLFO:Main lua-dkjson revision 0df259e6cf32b5d7f9319c55b68665e6
This commit is contained in:
commit
c22bb636e4
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
5
_multibuild
Normal file
5
_multibuild
Normal file
@ -0,0 +1,5 @@
|
||||
<multibuild>
|
||||
<package>lua51</package>
|
||||
<package>lua53</package>
|
||||
<package>lua54</package>
|
||||
</multibuild>
|
BIN
dkjson-2.8.tar.gz
(Stored with Git LFS)
Normal file
BIN
dkjson-2.8.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
50
lua-dkjson.changes
Normal file
50
lua-dkjson.changes
Normal file
@ -0,0 +1,50 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
- Fix missing dependency on lua-macros (boo#1205612)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 27 08:42:20 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- What was I thinking? Description and Summary had nothing to di
|
||||
with this package.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 18 15:50:02 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
|
||||
|
||||
- Use %lua_provides macro for default lua versioning
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 6 19:03:08 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Add lua54 as new build target
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 1 22:50:23 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Initial packaging effort to package version 2.5
|
70
lua-dkjson.spec
Normal file
70
lua-dkjson.spec
Normal file
@ -0,0 +1,70 @@
|
||||
#
|
||||
# spec file for package lua-dkjson
|
||||
#
|
||||
# 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
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define flavor @BUILD_FLAVOR@
|
||||
%define mod_name dkjson
|
||||
%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/dkjson-lua/dkjson-%{uptag}.tar.gz
|
||||
BuildRequires: %{flavor}-devel
|
||||
BuildRequires: lua-macros
|
||||
Requires: %{flavor}
|
||||
Requires: %{flavor}-lpeg
|
||||
BuildArch: noarch
|
||||
%lua_provides
|
||||
%if "%{flavor}" == ""
|
||||
Name: lua-dkjson
|
||||
ExclusiveArch: do_not_build
|
||||
%else
|
||||
Name: %{flavor}-dkjson
|
||||
%endif
|
||||
|
||||
%description
|
||||
dkjson is a module for encoding and decoding JSON data. It
|
||||
supports UTF-8.
|
||||
|
||||
JSON (JavaScript Object Notation) is a format for serializing
|
||||
data based on the syntax for JavaScript data structures.
|
||||
|
||||
dkjson is written in Lua without any dependencies, but
|
||||
when LPeg is available dkjson can use it to speed up decoding.
|
||||
|
||||
%prep
|
||||
%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
|
||||
|
||||
%files
|
||||
# license is included in readme.txt file
|
||||
%doc versions.txt readme.txt
|
||||
%{lua_noarchdir}/%{mod_name}*
|
||||
|
||||
%changelog
|
Loading…
x
Reference in New Issue
Block a user