Update to 0.37
- New upstream release 0.37 - Cope with GLD output changes in version 0.100 (GH#10) - Switch to Module::Build::Tiny flow
This commit is contained in:
parent
6024c981c3
commit
cbffaa7b79
|
@ -1,47 +0,0 @@
|
||||||
--- t/104_override_usage.t
|
|
||||||
+++ t/104_override_usage.t
|
|
||||||
@@ -49,10 +49,16 @@ use Test::Exception;
|
|
||||||
\t--foo A foo
|
|
||||||
}
|
|
||||||
:
|
|
||||||
+ $Getopt::Long::Descriptive::VERSION == 0.099 ?
|
|
||||||
qq{usage: 104_override_usage.t [-?] [long options...]
|
|
||||||
\t-? --usage --help Prints this usage information.
|
|
||||||
\t--foo INT A foo
|
|
||||||
}
|
|
||||||
+ :
|
|
||||||
+ qq{usage: 104_override_usage.t [-?] [long options...]
|
|
||||||
+\t-? --usage --help Prints this usage information.
|
|
||||||
+\t--foo INT A foo
|
|
||||||
+}
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
||||||
--- t/110_sort_usage_by_attr_order.t
|
|
||||||
+++ t/110_sort_usage_by_attr_order.t
|
|
||||||
@@ -34,7 +34,7 @@ usage: 110_sort_usage_by_attr_order.t [-
|
|
||||||
--bar Documentation for "bar"
|
|
||||||
--baz Documentation for "baz"
|
|
||||||
USAGE
|
|
||||||
-if ( $Getopt::Long::Descriptive::VERSION >= 0.099 )
|
|
||||||
+if ( $Getopt::Long::Descriptive::VERSION == 0.099 )
|
|
||||||
{
|
|
||||||
$expected = <<'USAGE';
|
|
||||||
usage: 110_sort_usage_by_attr_order.t [-?] [long options...]
|
|
||||||
@@ -44,6 +44,16 @@ usage: 110_sort_usage_by_attr_order.t [-
|
|
||||||
--baz STR Documentation for "baz"
|
|
||||||
USAGE
|
|
||||||
}
|
|
||||||
+if ( $Getopt::Long::Descriptive::VERSION >= 0.100 )
|
|
||||||
+{
|
|
||||||
+$expected = <<'USAGE';
|
|
||||||
+usage: 110_sort_usage_by_attr_order.t [-?] [long options...]
|
|
||||||
+ -? --usage --help Prints this usage information.
|
|
||||||
+ --foo STR Documentation for "foo"
|
|
||||||
+ --bar STR Documentation for "bar"
|
|
||||||
+ --baz STR Documentation for "baz"
|
|
||||||
+USAGE
|
|
||||||
+}
|
|
||||||
$expected =~ s/^[ ]{4}/\t/xmsg;
|
|
||||||
is($obj->usage->text, $expected, 'Usage text has nicely sorted options');
|
|
||||||
|
|
|
@ -1,21 +1,16 @@
|
||||||
Name: perl-MouseX-Getopt
|
Name: perl-MouseX-Getopt
|
||||||
Summary: Mouse role for processing command line options
|
Summary: Mouse role for processing command line options
|
||||||
Version: 0.36
|
Version: 0.37
|
||||||
Release: 8%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
URL: http://search.cpan.org/dist/MouseX-Getopt/
|
URL: http://search.cpan.org/dist/MouseX-Getopt/
|
||||||
Source0: http://search.cpan.org/CPAN/authors/id/G/GF/GFUJI/MouseX-Getopt-%{version}.tar.gz
|
Source0: http://search.cpan.org/CPAN/authors/id/G/GF/GFUJI/MouseX-Getopt-%{version}.tar.gz
|
||||||
Patch0: MouseX-Getopt-0.36-GLD-spacing.patch
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# Module Build
|
# Module Build
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-generators
|
BuildRequires: perl-generators
|
||||||
BuildRequires: perl(File::Basename)
|
BuildRequires: perl(Module::Build::Tiny) >= 0.035
|
||||||
BuildRequires: perl(File::Copy)
|
|
||||||
BuildRequires: perl(File::Spec)
|
|
||||||
BuildRequires: perl(Module::Build) >= 0.38
|
|
||||||
BuildRequires: perl(strict)
|
BuildRequires: perl(strict)
|
||||||
BuildRequires: perl(utf8)
|
|
||||||
BuildRequires: perl(warnings)
|
BuildRequires: perl(warnings)
|
||||||
# Module Runtime
|
# Module Runtime
|
||||||
BuildRequires: perl(Carp)
|
BuildRequires: perl(Carp)
|
||||||
|
@ -26,6 +21,7 @@ BuildRequires: perl(Mouse::Meta::Attribute)
|
||||||
BuildRequires: perl(Mouse::Role)
|
BuildRequires: perl(Mouse::Role)
|
||||||
BuildRequires: perl(Mouse::Util::TypeConstraints)
|
BuildRequires: perl(Mouse::Util::TypeConstraints)
|
||||||
# Test Suite
|
# Test Suite
|
||||||
|
BuildRequires: perl(File::Spec)
|
||||||
BuildRequires: perl(Mouse::Meta::Class)
|
BuildRequires: perl(Mouse::Meta::Class)
|
||||||
BuildRequires: perl(Scalar::Util)
|
BuildRequires: perl(Scalar::Util)
|
||||||
BuildRequires: perl(Test::Exception) >= 0.21
|
BuildRequires: perl(Test::Exception) >= 0.21
|
||||||
|
@ -52,10 +48,6 @@ objects using parameters passed in from the command line.
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n MouseX-Getopt-%{version}
|
%setup -q -n MouseX-Getopt-%{version}
|
||||||
|
|
||||||
# Fix tests for GLD help output again
|
|
||||||
# https://github.com/gfx/mousex-getopt/pull/10
|
|
||||||
%patch0
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Build.PL --installdirs=vendor
|
perl Build.PL --installdirs=vendor
|
||||||
./Build
|
./Build
|
||||||
|
@ -83,6 +75,11 @@ perl Build.PL --installdirs=vendor
|
||||||
%{_mandir}/man3/MouseX::Getopt::Strict.3*
|
%{_mandir}/man3/MouseX::Getopt::Strict.3*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jul 13 2016 Paul Howarth <paul@city-fan.org> - 0.37-1
|
||||||
|
- Update to 0.37
|
||||||
|
- Cope with GLD output changes in version 0.100 (GH#10)
|
||||||
|
- Switch to Module::Build::Tiny flow
|
||||||
|
|
||||||
* Tue Jul 12 2016 Paul Howarth <paul@city-fan.org> - 0.36-8
|
* Tue Jul 12 2016 Paul Howarth <paul@city-fan.org> - 0.36-8
|
||||||
- Fix FTBFS with Geopt::Long::Descriptive 0.100
|
- Fix FTBFS with Geopt::Long::Descriptive 0.100
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue