SHA256
12
0
forked from pool/lua-argparse
Matej Cepl 2020-04-01 23:48:45 +00:00 committed by Git OBS Bridge
parent d8b8b9a4b4
commit 8afdda4bdb

View File

@ -1,7 +1,7 @@
#
# spec file for package lua-argparse
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# 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
@ -12,7 +12,7 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@ -30,11 +30,11 @@ Release: 0
Summary: A feature-rich command-line argument parser
License: MIT
Group: Development/Libraries/Other
Url: http://argparse.org/
URL: http://argparse.org/
Source: https://github.com/luarocks/%{mod_name}/archive/%{upversion}.tar.gz#/%{mod_name}-%{upversion}.tar.gz
BuildRequires: %{flavor}-devel
BuildArch: noarch
Requires: %{flavor}
BuildArch: noarch
%if "%{flavor}" == "lua53"
Provides: lua-argparse = %{version}
Obsoletes: lua-argparse < %{version}
@ -43,10 +43,15 @@ Obsoletes: lua-argparse < %{version}
Name: lua-argparse
ExclusiveArch: do_not_build
%else
%if %{with test}
Name: %{flavor}-argparse-test
%else
Name: %{flavor}-argparse
%endif
%endif
%if %{with test}
BuildRequires: %{flavor}-Penlight
BuildRequires: %{flavor}-argparse
BuildRequires: %{flavor}-busted
%endif
@ -55,7 +60,6 @@ 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}-%{upversion}