SHA256
10
0
forked from pool/lua-luaepnf

Accepting request 1001325 from home:Pi-Cla

New lua package

OBS-URL: https://build.opensuse.org/request/show/1001325
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-luaepnf?expand=0&rev=1
This commit is contained in:
2022-09-11 11:17:58 +00:00
committed by Git OBS Bridge
commit 6b3b3bf2a6
7 changed files with 125 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>

17
_service Normal file
View File

@@ -0,0 +1,17 @@
<services>
<service mode="manual" name="obs_scm">
<param name="url">https://github.com/siffiejoe/lua-luaepnf</param>
<param name="versionformat">@PARENT_TAG@+git@TAG_OFFSET@</param>
<param name="scm">git</param>
<param name="revision">0f7e644f0af988cf986797a76fe2f1c5f3f9dd5b</param>
<param name="versionrewrite-pattern">v(\d+.\d+)</param>
<param name="versionrewrite-replacement">\1</param>
</service>
<service mode="manual" name="tar" />
<service mode="manual" name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service mode="manual" name="set_version"/>
</services>

View File

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

4
lua-luaepnf.changes Normal file
View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Thu Aug 25 03:09:46 UTC 2022 - Gordon Leung <pirateclip@protonmail.com>
- initial commit

72
lua-luaepnf.spec Normal file
View File

@@ -0,0 +1,72 @@
#
# spec file
#
# Copyright (c) 2022 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 luaepnf
%define rock_version scm-0
Version: 0.3+git19
Release: 0
Summary: Extended PEG Notation Format (easy grammars for LPeg)
License: MIT
Group: Development/Languages/Other
URL: https://github.com/siffiejoe/lua-luaepnf
Source: lua-%{mod_name}-%{version}.tar.xz
BuildRequires: %{flavor}-luarocks
BuildRequires: %{flavor}-devel
BuildRequires: %{flavor}-lpeg
%lua_provides
Requires: %{flavor}
Requires: %{flavor}-lpeg
%if "%{flavor}" == ""
Name: lua-%{mod_name}
ExclusiveArch: do_not_build
%else
Name: %{flavor}-%{mod_name}
%endif
BuildArch: noarch
%description
The LPeg library is a powerful tool to parse text and extract parts of
it using captures. It even provides grammars, which can be used to
parse non-regular languages, but the complexer the language gets, the
more difficult error handling and keeping track of captured information
becomes. luaepnf enhances usage of LPeg grammars by building an abstract
syntax tree (AST) for the input and providing tools for error reporting,
as well as offering syntax sugar and shortcuts for accessing LPeg's features.
%prep
%autosetup -n lua-%{mod_name}-%{version}
%build
%luarocks_build "%{mod_name}-%{rock_version}.rockspec"
%install
%luarocks_install *.rock
%check
cd tests
for t in *.lua; do lua $t; done
%files
%license %{luarocks_treedir}/%{mod_name}/%{rock_version}/doc/readme.txt
%docdir %{luarocks_treedir}/%{mod_name}/%{rock_version}/doc
%{lua_noarchdir}/epnf.lua
%{luarocks_treedir}/%{mod_name}
%changelog