forked from pool/lua-alt-getopt
- Initial packaging effort to package version 0.8.0.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-alt-getopt?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
5
_multibuild
Normal file
5
_multibuild
Normal file
@@ -0,0 +1,5 @@
|
||||
<multibuild>
|
||||
<package>lua51</package>
|
||||
<package>lua53</package>
|
||||
<package>test</package>
|
||||
</multibuild>
|
BIN
lua-alt-getopt-0.8.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
lua-alt-getopt-0.8.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
4
lua-alt-getopt.changes
Normal file
4
lua-alt-getopt.changes
Normal file
@@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 2 10:06:12 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Initial packaging effort to package version 0.8.0.
|
71
lua-alt-getopt.spec
Normal file
71
lua-alt-getopt.spec
Normal file
@@ -0,0 +1,71 @@
|
||||
#
|
||||
# spec file for package lua-alt-getopt
|
||||
#
|
||||
# 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@
|
||||
%if "%{flavor}" == "test"
|
||||
%define flavor lua51
|
||||
%bcond_without test
|
||||
%else
|
||||
%bcond_with test
|
||||
%endif
|
||||
%define mod_name lua-alt-getopt
|
||||
%define upversion 0.8.0
|
||||
Version: 0.8.1
|
||||
Release: 0
|
||||
Summary: Process application arguments the same way as getopt_long
|
||||
License: MIT
|
||||
Group: Development/Libraries/Other
|
||||
URL: https://github.com/cheusov/lua-alt-getopt
|
||||
Source: https://github.com/cheusov/%{mod_name}/archive/%{upversion}.tar.gz#/%{mod_name}-%{upversion}.tar.gz
|
||||
BuildRequires: %{flavor}-devel
|
||||
Requires: %{flavor}
|
||||
BuildArch: noarch
|
||||
%if "%{flavor}" == ""
|
||||
Name: lua-alt-getopt
|
||||
ExclusiveArch: do_not_build
|
||||
%else
|
||||
Name: %{flavor}-alt-getopt
|
||||
%endif
|
||||
|
||||
%description
|
||||
alt-getopt is a module for Lua programming language for
|
||||
processing application's arguments the same way BSD/GNU
|
||||
getopt_long(3) functions do. The main goal is compatibility
|
||||
with SUS "Utility Syntax Guidelines" guidelines 3-13.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{mod_name}-%{upversion}
|
||||
|
||||
%build
|
||||
/bin/true
|
||||
|
||||
%install
|
||||
%if ! %{with test}
|
||||
install -v -D -m 0644 -t %{buildroot}%{lua_noarchdir} -p alt_getopt.lua
|
||||
%endif
|
||||
|
||||
%check
|
||||
ln -srf ./alt_getopt.lua ./tests
|
||||
cd ./tests && ./test.sh
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc README NEWS
|
||||
%{lua_noarchdir}/alt_getopt.lua
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user