SHA256
1
0
forked from pool/lua-dkjson

Actually download tarball directly from URL

OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-dkjson?expand=0&rev=2
This commit is contained in:
Matej Cepl 2020-04-01 22:56:50 +00:00 committed by Git OBS Bridge
parent 5b0aa1f2df
commit 3c770ac02d
2 changed files with 5 additions and 8 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:10e20443c3035284def68425170f42fdd30d4db52704138e18014ba2466a6d20 oid sha256:dd7f3eb7120df085c205451a3e7faa7de8e61ff8dcb432322583d9133a8af118
size 15883 size 15891

View File

@ -17,7 +17,6 @@
%define flavor @BUILD_FLAVOR@ %define flavor @BUILD_FLAVOR@
# %%define flavor lua51
%define mod_name dkjson %define mod_name dkjson
%define uptag release_2_5 %define uptag release_2_5
Version: 2.5.2 Version: 2.5.2
@ -26,8 +25,7 @@ Summary: A feature-rich command-line argument parser
License: MIT License: MIT
Group: Development/Libraries/Other Group: Development/Libraries/Other
Url: http://dkjson.org/ Url: http://dkjson.org/
# Source: http://dkolf.de/src/dkjson-lua.fsl/tarball/dkjson.tar.gz?r=%%{uptag} Source: http://dkolf.de/src/dkjson-lua.fsl/tarball/%{uptag}/dkjson.tar.gz
Source: dkjson.tar.gz
BuildRequires: %{flavor}-devel BuildRequires: %{flavor}-devel
BuildArch: noarch BuildArch: noarch
Requires: %{flavor} Requires: %{flavor}
@ -44,15 +42,14 @@ Argparse supports positional arguments, options, flags, optional
arguments, subcommands and more. Argparse automatically generates usage, arguments, subcommands and more. Argparse automatically generates usage,
help, and error messages, and can generate shell completion scripts. help, and error messages, and can generate shell completion scripts.
%prep %prep
%setup -q -n %{mod_name} %setup -q -n %{uptag}/%{mod_name}
%build %build
/bin/true /bin/true
%install %install
install -v -D -m 0644 -t %{buildroot}%{lua_noarchdir} -p dkjson.lua install -D -m 0644 -t %{buildroot}%{lua_noarchdir} -p dkjson.lua
%check %check
lua%{lua_version} speedtest.lua dkjson lua%{lua_version} speedtest.lua dkjson