2011-04-15 09:20:18 +00:00
|
|
|
#
|
2011-07-21 08:03:34 +00:00
|
|
|
# spec file for package perl-MooseX-Getopt
|
2011-04-15 09:20:18 +00:00
|
|
|
#
|
2025-01-13 21:45:37 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2011-04-15 09:20:18 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-09-19 12:18:58 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-04-15 09:20:18 +00:00
|
|
|
#
|
2010-08-26 12:31:58 +00:00
|
|
|
|
2011-07-21 08:03:34 +00:00
|
|
|
|
2021-03-17 16:22:00 +00:00
|
|
|
%define cpan_name MooseX-Getopt
|
2010-02-09 11:06:12 +00:00
|
|
|
Name: perl-MooseX-Getopt
|
2025-01-13 21:45:37 +00:00
|
|
|
Version: 0.780.0
|
2012-02-14 07:56:34 +00:00
|
|
|
Release: 0
|
2025-01-13 21:45:37 +00:00
|
|
|
# 0.78 -> normalize -> 0.780.0
|
|
|
|
%define cpan_version 0.78
|
2021-03-17 16:22:00 +00:00
|
|
|
#Upstream: Artistic-1.0 or GPL-1.0-or-later
|
2018-08-24 11:08:22 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2024-01-04 15:12:18 +00:00
|
|
|
Summary: Moose role for processing command line options
|
2021-03-17 16:22:00 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2024-01-04 15:12:18 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{cpan_version}.tar.gz
|
2015-04-16 08:28:29 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:15:42 +02:00
|
|
|
Source100: README.md
|
2011-04-15 09:20:18 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
2010-12-03 14:43:20 +00:00
|
|
|
BuildRequires: perl-macros
|
2010-02-09 11:06:12 +00:00
|
|
|
BuildRequires: perl(Getopt::Long) >= 2.37
|
2014-09-16 08:23:30 +00:00
|
|
|
BuildRequires: perl(Getopt::Long::Descriptive) >= 0.088
|
2024-01-04 15:12:18 +00:00
|
|
|
BuildRequires: perl(Module::Build)
|
2016-05-09 05:37:56 +00:00
|
|
|
BuildRequires: perl(Module::Build::Tiny) >= 0.034
|
|
|
|
BuildRequires: perl(Module::Metadata)
|
2013-11-25 09:17:04 +00:00
|
|
|
BuildRequires: perl(Module::Runtime)
|
2013-07-27 12:51:31 +00:00
|
|
|
BuildRequires: perl(Moose)
|
|
|
|
BuildRequires: perl(Moose::Meta::Attribute)
|
|
|
|
BuildRequires: perl(Moose::Meta::Class)
|
|
|
|
BuildRequires: perl(Moose::Role) >= 0.56
|
2013-11-25 09:17:04 +00:00
|
|
|
BuildRequires: perl(Moose::Util)
|
2013-07-27 12:51:31 +00:00
|
|
|
BuildRequires: perl(Moose::Util::TypeConstraints)
|
2016-05-09 05:37:56 +00:00
|
|
|
BuildRequires: perl(MooseX::Role::Parameterized) >= 1.01
|
2013-07-27 12:51:31 +00:00
|
|
|
BuildRequires: perl(Path::Tiny) >= 0.009
|
2025-01-13 21:45:37 +00:00
|
|
|
BuildRequires: perl(Test2::V0)
|
2013-07-27 12:51:31 +00:00
|
|
|
BuildRequires: perl(Test::Deep)
|
2011-04-15 09:20:18 +00:00
|
|
|
BuildRequires: perl(Test::Fatal) >= 0.003
|
2013-07-27 12:51:31 +00:00
|
|
|
BuildRequires: perl(Test::Moose)
|
2015-04-16 08:28:29 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
2018-08-24 11:08:22 +00:00
|
|
|
BuildRequires: perl(Test::Needs)
|
2012-05-28 13:58:50 +00:00
|
|
|
BuildRequires: perl(Test::Trap)
|
2014-09-16 08:23:30 +00:00
|
|
|
BuildRequires: perl(Test::Warnings) >= 0.009
|
2013-07-27 12:51:31 +00:00
|
|
|
BuildRequires: perl(Try::Tiny)
|
2014-02-24 06:34:08 +00:00
|
|
|
BuildRequires: perl(namespace::autoclean)
|
2010-02-09 11:06:12 +00:00
|
|
|
Requires: perl(Getopt::Long) >= 2.37
|
2014-09-16 08:23:30 +00:00
|
|
|
Requires: perl(Getopt::Long::Descriptive) >= 0.088
|
2013-07-27 12:51:31 +00:00
|
|
|
Requires: perl(Moose)
|
|
|
|
Requires: perl(Moose::Meta::Attribute)
|
|
|
|
Requires: perl(Moose::Role) >= 0.56
|
|
|
|
Requires: perl(Moose::Util::TypeConstraints)
|
2016-05-09 05:37:56 +00:00
|
|
|
Requires: perl(MooseX::Role::Parameterized) >= 1.01
|
2013-07-27 12:51:31 +00:00
|
|
|
Requires: perl(Try::Tiny)
|
2014-02-24 06:34:08 +00:00
|
|
|
Requires: perl(namespace::autoclean)
|
2024-01-04 15:12:18 +00:00
|
|
|
Provides: perl(MooseX::Getopt) = %{version}
|
|
|
|
Provides: perl(MooseX::Getopt::Basic) = %{version}
|
|
|
|
Provides: perl(MooseX::Getopt::Dashes) = %{version}
|
|
|
|
Provides: perl(MooseX::Getopt::GLD) = %{version}
|
|
|
|
Provides: perl(MooseX::Getopt::Meta::Attribute) = %{version}
|
|
|
|
Provides: perl(MooseX::Getopt::Meta::Attribute::NoGetopt) = %{version}
|
|
|
|
Provides: perl(MooseX::Getopt::Meta::Attribute::Trait) = %{version}
|
|
|
|
Provides: perl(MooseX::Getopt::Meta::Attribute::Trait::NoGetopt) = %{version}
|
|
|
|
Provides: perl(MooseX::Getopt::OptionTypeMap) = %{version}
|
|
|
|
Provides: perl(MooseX::Getopt::ProcessedArgv) = %{version}
|
|
|
|
Provides: perl(MooseX::Getopt::Strict) = %{version}
|
2024-03-08 22:44:14 +00:00
|
|
|
%undefine __perllib_provides
|
2011-04-15 09:20:18 +00:00
|
|
|
%{perl_requires}
|
2010-02-09 11:06:12 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This is a role which provides an alternate constructor for creating objects
|
|
|
|
using parameters passed in from the command line.
|
|
|
|
|
|
|
|
%prep
|
2024-01-04 15:12:18 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2010-02-09 11:06:12 +00:00
|
|
|
|
|
|
|
%build
|
2021-03-17 16:22:00 +00:00
|
|
|
perl Build.PL --installdirs=vendor
|
2013-11-25 09:17:04 +00:00
|
|
|
./Build build --flags=%{?_smp_mflags}
|
2011-04-15 09:20:18 +00:00
|
|
|
|
|
|
|
%check
|
2013-11-25 09:17:04 +00:00
|
|
|
./Build test
|
2011-04-15 09:20:18 +00:00
|
|
|
|
2010-02-09 11:06:12 +00:00
|
|
|
%install
|
2013-11-25 09:17:04 +00:00
|
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
2011-04-15 09:20:18 +00:00
|
|
|
%perl_gen_filelist
|
2010-02-09 11:06:12 +00:00
|
|
|
|
2011-04-15 09:20:18 +00:00
|
|
|
%files -f %{name}.files
|
2018-08-24 11:08:22 +00:00
|
|
|
%doc Changes CONTRIBUTING README
|
|
|
|
%license LICENSE
|
2010-02-09 11:06:12 +00:00
|
|
|
|
2011-04-15 09:20:18 +00:00
|
|
|
%changelog
|