Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:perl:CPAN-O
perl-OptArgs2
perl-OptArgs2.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-OptArgs2.spec of Package perl-OptArgs2
# # spec file for package perl-OptArgs2 # # Copyright (c) 2022 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 cpan_name OptArgs2 Name: perl-OptArgs2 Version: 2.0.0 Release: 0 License: GPL-1.0-or-later Summary: CLI argument and option processing URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/M/ML/MLAWREN/%{cpan_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Encode) >= 2.24 BuildRequires: perl(Exporter::Tidy) BuildRequires: perl(ExtUtils::MakeMaker::CPANfile) >= 0.09 BuildRequires: perl(File::Which) BuildRequires: perl(Getopt::Long) >= 2.37 BuildRequires: perl(Term::Size::Perl) BuildRequires: perl(Test2::V0) BuildRequires: perl(Test::Output) Requires: perl(Encode) >= 2.24 Requires: perl(Exporter::Tidy) Requires: perl(File::Which) Requires: perl(Getopt::Long) >= 2.37 Requires: perl(Term::Size::Perl) %{perl_requires} %description *OptArgs2* processes command line arguments, options, and subcommands according to the following definitions: * Command A program run from the command line to perform a task. * Arguments Arguments are positional parameters that pass information to a command. Arguments can be optional, but they should not be confused with Options below. * Options Options are non-positional parameters that pass information to a command. They are generally not required to be present (hence the name Option) but that is configurable. All options have a long form prefixed by '--', and may have a single letter alias prefixed by '-'. * Subcommands From the users point of view a subcommand is a special argument with its own set of arguments and options. However from a code authoring perspective subcommands are often implemented as stand-alone programs, called from the main script when the appropriate command arguments are given. %prep %autosetup -n %{cpan_name}-%{version} find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644 %build perl Makefile.PL INSTALLDIRS=vendor %make_build %check make test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %doc Changes example README TODO %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor