SHA256
10
0
forked from pool/lua-argparse
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 # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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 Summary: A feature-rich command-line argument parser
License: MIT License: MIT
Group: Development/Libraries/Other 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 Source: https://github.com/luarocks/%{mod_name}/archive/%{upversion}.tar.gz#/%{mod_name}-%{upversion}.tar.gz
BuildRequires: %{flavor}-devel BuildRequires: %{flavor}-devel
BuildArch: noarch
Requires: %{flavor} Requires: %{flavor}
BuildArch: noarch
%if "%{flavor}" == "lua53" %if "%{flavor}" == "lua53"
Provides: lua-argparse = %{version} Provides: lua-argparse = %{version}
Obsoletes: lua-argparse < %{version} Obsoletes: lua-argparse < %{version}
@@ -43,10 +43,15 @@ Obsoletes: lua-argparse < %{version}
Name: lua-argparse Name: lua-argparse
ExclusiveArch: do_not_build ExclusiveArch: do_not_build
%else %else
%if %{with test}
Name: %{flavor}-argparse-test
%else
Name: %{flavor}-argparse Name: %{flavor}-argparse
%endif %endif
%endif
%if %{with test} %if %{with test}
BuildRequires: %{flavor}-Penlight BuildRequires: %{flavor}-Penlight
BuildRequires: %{flavor}-argparse
BuildRequires: %{flavor}-busted BuildRequires: %{flavor}-busted
%endif %endif
@@ -55,7 +60,6 @@ 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}-%{upversion} %setup -q -n %{mod_name}-%{upversion}