SHA256
1
0
forked from pool/lua-slaxml

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
This commit is contained in:
Matej Cepl 2021-01-19 14:40:04 +00:00 committed by Git OBS Bridge
commit e73b9a5dcb
8 changed files with 141 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

5
_multibuild Normal file
View File

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

14
_service Normal file
View File

@ -0,0 +1,14 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="url">https://github.com/Phrogz/SLAXML.git</param>
<param name="filename">lua-slaxml</param>
<param name="versionformat">0.7+git%cd.%h</param>
<param name="scm">git</param>
<param name="changesgenerate">enable</param>
</service>
<service name="recompress" mode="disabled">
<param name="compression">xz</param>
<param name="file">*.tar</param>
</service>
<service name="set_version" mode="disabled" />
</services>

6
_servicedata Normal file
View File

@ -0,0 +1,6 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/antlarr/lua-mpris</param>
<param name="changesrevision">2b12542d29f8f5f366a1dc047a82ee65bd735b41</param></service><service name="tar_scm">
<param name="url">https://github.com/Phrogz/SLAXML.git</param>
<param name="changesrevision">938dd5d5b9bb2a45663a5f310ab373c7f4461fbc</param></service></servicedata>

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e37c689a77a9ed4ecd565b7d7719c4f39112f0f156cd5779f4f457901460b332
size 15528

18
lua-slaxml.changes Normal file
View File

@ -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 <mcepl@suse.com>
- Initial packaging effort for the latest commit on master of SLAXML.

71
lua-slaxml.spec Normal file
View File

@ -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
<expr test="5 > 7" />, 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