forked from pool/lua-dkjson
- Initial packaging effort to package version 2.5
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-dkjson?expand=0&rev=1
This commit is contained in:
commit
5b0aa1f2df
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
|
4
_multibuild
Normal file
4
_multibuild
Normal file
@ -0,0 +1,4 @@
|
||||
<multibuild>
|
||||
<package>lua51</package>
|
||||
<package>lua53</package>
|
||||
</multibuild>
|
3
dkjson.tar.gz
Normal file
3
dkjson.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:10e20443c3035284def68425170f42fdd30d4db52704138e18014ba2466a6d20
|
||||
size 15883
|
4
lua-dkjson.changes
Normal file
4
lua-dkjson.changes
Normal file
@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 1 22:50:23 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Initial packaging effort to package version 2.5
|
66
lua-dkjson.spec
Normal file
66
lua-dkjson.spec
Normal file
@ -0,0 +1,66 @@
|
||||
#
|
||||
# spec file for package lua-dkjson
|
||||
#
|
||||
# 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 flavor lua51
|
||||
%define mod_name dkjson
|
||||
%define uptag release_2_5
|
||||
Version: 2.5.2
|
||||
Release: 0
|
||||
Summary: A feature-rich command-line argument parser
|
||||
License: MIT
|
||||
Group: Development/Libraries/Other
|
||||
Url: http://dkjson.org/
|
||||
# Source: http://dkolf.de/src/dkjson-lua.fsl/tarball/dkjson.tar.gz?r=%%{uptag}
|
||||
Source: dkjson.tar.gz
|
||||
BuildRequires: %{flavor}-devel
|
||||
BuildArch: noarch
|
||||
Requires: %{flavor}
|
||||
Requires: %{flavor}-lpeg
|
||||
%if "%{flavor}" == ""
|
||||
Name: lua-dkjson
|
||||
ExclusiveArch: do_not_build
|
||||
%else
|
||||
Name: %{flavor}-dkjson
|
||||
%endif
|
||||
|
||||
%description
|
||||
Argparse supports positional arguments, options, flags, optional
|
||||
arguments, subcommands and more. Argparse automatically generates usage,
|
||||
help, and error messages, and can generate shell completion scripts.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{mod_name}
|
||||
|
||||
%build
|
||||
/bin/true
|
||||
|
||||
%install
|
||||
install -v -D -m 0644 -t %{buildroot}%{lua_noarchdir} -p dkjson.lua
|
||||
|
||||
%check
|
||||
lua%{lua_version} speedtest.lua dkjson
|
||||
lua%{lua_version} jsontest.lua
|
||||
|
||||
%files
|
||||
# license is included in readme.txt file
|
||||
%doc versions.txt readme.txt
|
||||
%{lua_noarchdir}/%{mod_name}*
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user