commit 6b3b3bf2a69cc2821f12bd0adad4e22d14482e5de230920649387af4536e49bf Author: Matej Cepl Date: Sun Sep 11 11:17:58 2022 +0000 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 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..d04160f --- /dev/null +++ b/_service @@ -0,0 +1,17 @@ + + + https://github.com/siffiejoe/lua-luaepnf + @PARENT_TAG@+git@TAG_OFFSET@ + git + 0f7e644f0af988cf986797a76fe2f1c5f3f9dd5b + v(\d+.\d+) + \1 + + + + *.tar + xz + + + + diff --git a/lua-luaepnf-0.3+git19.tar.xz b/lua-luaepnf-0.3+git19.tar.xz new file mode 100644 index 0000000..643d13c --- /dev/null +++ b/lua-luaepnf-0.3+git19.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e3bedb95885cce86dd02fa15f6c3859550bb9b38374a5ca6f1d499fc699aa0d8 +size 8300 diff --git a/lua-luaepnf.changes b/lua-luaepnf.changes new file mode 100644 index 0000000..f5e3857 --- /dev/null +++ b/lua-luaepnf.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Aug 25 03:09:46 UTC 2022 - Gordon Leung + +- initial commit diff --git a/lua-luaepnf.spec b/lua-luaepnf.spec new file mode 100644 index 0000000..b7600b5 --- /dev/null +++ b/lua-luaepnf.spec @@ -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