commit e73b9a5dcb13e1dae3aaa9398bcf599dc3b426afcf2e0453f9af6989f0eac4fb Author: Matej Cepl Date: Tue Jan 19 14:40:04 2021 +0000 Accepting request 864332 from home:mcepl:work Initial packaging effort. OBS-URL: https://build.opensuse.org/request/show/864332 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-slaxml?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..72d2b45 --- /dev/null +++ b/_multibuild @@ -0,0 +1,5 @@ + +lua51 +lua53 +lua54 + diff --git a/_service b/_service new file mode 100644 index 0000000..ead4b0b --- /dev/null +++ b/_service @@ -0,0 +1,14 @@ + + + https://github.com/Phrogz/SLAXML.git + lua-slaxml + 0.7+git%cd.%h + git + enable + + + xz + *.tar + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..ffb62fc --- /dev/null +++ b/_servicedata @@ -0,0 +1,6 @@ + + + https://github.com/antlarr/lua-mpris + 2b12542d29f8f5f366a1dc047a82ee65bd735b41 + https://github.com/Phrogz/SLAXML.git + 938dd5d5b9bb2a45663a5f310ab373c7f4461fbc \ No newline at end of file diff --git a/lua-slaxml-0.7+git20191225.108970c.tar.xz b/lua-slaxml-0.7+git20191225.108970c.tar.xz new file mode 100644 index 0000000..10a91a6 --- /dev/null +++ b/lua-slaxml-0.7+git20191225.108970c.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e37c689a77a9ed4ecd565b7d7719c4f39112f0f156cd5779f4f457901460b332 +size 15528 diff --git a/lua-slaxml.changes b/lua-slaxml.changes new file mode 100644 index 0000000..339a78f --- /dev/null +++ b/lua-slaxml.changes @@ -0,0 +1,18 @@ +------------------------------------------------------------------- +Tue Jan 19 11:18:48 UTC 2021 - mcepl@suse.com + +- Update to version 0.7+git20191225.108970c: + * Add test case for CDATA serialization + * Fix superfluous '[' when serializing CDATA + * Update README + * Add serialization via SLAXML:xml() + * Added basic rockspec + * Fix mistakenly added global key + * Fix a few README grammar mistakes + * Simplify UTF-8 entity decoding slightly + * Fix code formatting (messed up whitespace) + +------------------------------------------------------------------- +Tue Jan 19 11:17:20 UTC 2021 - Matej Cepl + +- Initial packaging effort for the latest commit on master of SLAXML. diff --git a/lua-slaxml.spec b/lua-slaxml.spec new file mode 100644 index 0000000..46a5995 --- /dev/null +++ b/lua-slaxml.spec @@ -0,0 +1,71 @@ +# +# spec file for package lua-lua-slaxml +# +# Copyright (c) 2020 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 slaxml +Version: 0.7+git20191225.108970c +Release: 0 +Summary: SAX-like streaming XML parser for Lua +License: MIT +Group: Development/Libraries/Other +URL: https://github.com/Phrogz/SLAXML +Source: lua-slaxml-%{version}.tar.xz +BuildRequires: %{flavor}-devel +BuildArch: noarch +Requires: %{flavor} +%if "%{flavor}" == "lua51" +Provides: lua-%{mod_name} = %{version} +Obsoletes: lua-%{mod_name} < %{version} +%endif +%if "%{flavor}" == "" +Name: lua-%{mod_name} +ExclusiveArch: do_not_build +%else +Name: %{flavor}-%{mod_name} +%endif + +%description +SLAXML is a pure-Lua SAX-like streaming XML parser. It is more +robust than many (simpler) pattern-based parsers that exist +(such as mine), properly supporting code like +, CDATA nodes, comments, namespaces, and +processing instructions. + +It is currently not a truly valid XML parser, however, as +it allows certain XML that is syntactically-invalid (not +well-formed) to be parsed without reporting an error. + +%prep +%autosetup -p1 -n lua-slaxml-%{version} + +%build + +%install +install -D -m 0644 -t %{buildroot}%{lua_noarchdir} slaxml.lua slaxdom.lua + +%check +%if "%{flavor}" != "lua51" +cd test +lua test.lua +%endif + +%files +%license LICENSE.txt +%{lua_noarchdir}/* + +%changelog