[packages/lua-json] Initial
arekm
arekm at pld-linux.org
Tue Feb 11 10:29:03 CET 2025
commit a832d478edc1f273b28eb7b97086cf039615d88e
Author: Arkadiusz MiĆkiewicz <arekm at maven.pl>
Date: Tue Feb 11 09:20:07 2025 +0100
Initial
lua-json.spec | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
---
diff --git a/lua-json.spec b/lua-json.spec
new file mode 100644
index 0000000..f37adb9
--- /dev/null
+++ b/lua-json.spec
@@ -0,0 +1,43 @@
+# TODO
+# - noarch pkg?
+Summary: A lightweight JSON library for Lua
+Name: lua-json
+Version: 0.1.2
+Release: 1
+License: BSD-like
+Group: Development/Languages
+Source0: https://github.com/rxi/json.lua/archive/refs/tags/v%{version}.tar.gz
+# Source0-md5: 098b01952297cb33832fae428b65f23f
+URL: https://github.com/rxi/json.lua
+BuildRequires: lua53-devel
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A lightweight JSON library for Lua.
+
+Features:
+- Implemented in pure Lua
+- Fast: generally outperforms other pure Lua JSON implementations
+ (benchmark scripts)
+- Tiny: around 280sloc, 9kb
+- Proper error messages, eg: expected '}' or ',' at line 203 col 30
+
+%prep
+%setup -q -n json.lua-%{version}
+
+%build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_datadir}/lua/5.3
+
+cp -a json.lua $RPM_BUILD_ROOT%{_datadir}/lua/5.3
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%{_datadir}/lua/5.3/json.lua
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/lua-json.git/commitdiff/a832d478edc1f273b28eb7b97086cf039615d88e
More information about the pld-cvs-commit
mailing list