From a570f18c137c2355f09eb6bec6764cb45a506bea37cef80ae7d8ffd261293439 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 28 Oct 2019 16:55:13 +0000 Subject: [PATCH] Accepting request 743578 from home:mcepl:branches:devel:languages:lua ok OBS-URL: https://build.opensuse.org/request/show/743578 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-cliargs?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + _multibuild | 4 +++ lua_cliargs-3.0-2.tar.gz | 3 ++ lua_cliargs.changes | 4 +++ lua_cliargs.spec | 64 ++++++++++++++++++++++++++++++++++++++++ 6 files changed, 99 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _multibuild create mode 100644 lua_cliargs-3.0-2.tar.gz create mode 100644 lua_cliargs.changes create mode 100644 lua_cliargs.spec 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..a01285a --- /dev/null +++ b/_multibuild @@ -0,0 +1,4 @@ + +lua51 +lua53 + diff --git a/lua_cliargs-3.0-2.tar.gz b/lua_cliargs-3.0-2.tar.gz new file mode 100644 index 0000000..1a178f2 --- /dev/null +++ b/lua_cliargs-3.0-2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:971d6f1440a55bdf9db581d4b2bcbf472a301d76f696a0d0ed9423957c7d176e +size 30435 diff --git a/lua_cliargs.changes b/lua_cliargs.changes new file mode 100644 index 0000000..6341571 --- /dev/null +++ b/lua_cliargs.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sun May 19 19:08:01 CEST 2019 - Matej Cepl + +- Initial import of lua_cliargs version 3.0-2 diff --git a/lua_cliargs.spec b/lua_cliargs.spec new file mode 100644 index 0000000..954b942 --- /dev/null +++ b/lua_cliargs.spec @@ -0,0 +1,64 @@ +# +# spec file for package lua-luacliargs +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ +# + + +%define flavor @BUILD_FLAVOR@ +%define mod_name lua_cliargs +%define upversion 3.0-2 +Version: 3.02 +Release: 0 +Summary: Command-line argument parsing module for Lua +License: MIT +Group: Development/Libraries/Other +Url: https://github.com/amireh/lua_cliargs +Source: https://github.com/amireh/lua_cliargs/archive/v%{upversion}.tar.gz#/%{mod_name}-%{upversion}.tar.gz +BuildRequires: %{flavor}-devel +BuildArch: noarch +Requires: %{flavor} +%if "%{flavor}" == "lua53" +Provides: lua-luacliargs = %{version} +Obsoletes: lua-luacliargs < %{version} +%endif +%if "%{flavor}" == "" +Name: lua-cliargs +ExclusiveArch: do_not_build +%else +Name: %{flavor}-cliargs +%endif + +%description +This module adds support for accepting CLI arguments easily using multiple +notations and argument types. + +cliargs allows you to define required, optional, and flag arguments. + +%prep +%setup -q -n %{mod_name}-%{upversion} + +%build +/bin/true + +%install +install -v -D -m 0644 -p -t %{buildroot}%{lua_noarchdir} src/cliargs.lua +cp -v -r -p src/cliargs %{buildroot}%{lua_noarchdir} + + +%files +%dir %{lua_noarchdir}/cliargs +%{lua_noarchdir}/cliargs* + +%changelog