From f79cec93ea2792843a53563e2aded92ca6144a10 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Sat, 13 Mar 2021 16:04:37 +0000 Subject: [PATCH] Update to 0.106 - New upstream release 0.106 - Improved formatting of switches - When available, use Term::ReadKey to get terminal width - When an option name is defined twice, warn about it (this will become fatal in a future version) - Run the test suite using expect so as to make a pty available --- perl-Getopt-Long-Descriptive.spec | 22 +++++++++++++++++++--- sources | 2 +- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/perl-Getopt-Long-Descriptive.spec b/perl-Getopt-Long-Descriptive.spec index aa31ae7..5b48ad0 100644 --- a/perl-Getopt-Long-Descriptive.spec +++ b/perl-Getopt-Long-Descriptive.spec @@ -1,7 +1,7 @@ Name: perl-Getopt-Long-Descriptive Summary: Getopt::Long with usage text -Version: 0.105 -Release: 4%{?dist} +Version: 0.106 +Release: 1%{?dist} License: GPL+ or Artistic URL: https://metacpan.org/release/Getopt-Long-Descriptive Source0: https://cpan.metacpan.org/modules/by-module/Getopt/Getopt-Long-Descriptive-%{version}.tar.gz @@ -24,8 +24,10 @@ BuildRequires: perl(Scalar::Util) BuildRequires: perl(strict) BuildRequires: perl(Sub::Exporter) >= 0.972 BuildRequires: perl(Sub::Exporter::Util) +BuildRequires: perl(Term::ReadKey) BuildRequires: perl(warnings) # Tests: +BuildRequires: expect BuildRequires: perl(CPAN::Meta::Check) >= 0.011 BuildRequires: perl(CPAN::Meta::Requirements) BuildRequires: perl(File::Spec) @@ -37,6 +39,7 @@ BuildRequires: perl(CPAN::Meta) >= 2.120900 BuildRequires: perl(Moose::Conflicts) # Dependencies Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(Term::ReadKey) %description Convenient wrapper for Getopt::Long and program usage output. @@ -54,7 +57,12 @@ find %{buildroot} -type f -name .packlist -delete %{_fixperms} -c %{buildroot} %check -make test +# Expect is used so that we get a PTY, as if we were in a real terminal +expect -c ' + spawn make test + expect eof + exit [lindex [wait] 3] +' %files %license LICENSE @@ -65,6 +73,14 @@ make test %{_mandir}/man3/Getopt::Long::Descriptive::Usage.3* %changelog +* Sat Mar 13 2021 Paul Howarth - 0.106-1 +- Update to 0.106 + - Improved formatting of switches + - When available, use Term::ReadKey to get terminal width + - When an option name is defined twice, warn about it (this will become fatal + in a future version) +- Run the test suite using expect so as to make a pty available + * Wed Jan 27 2021 Fedora Release Engineering - 0.105-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild diff --git a/sources b/sources index 3172536..cbe7b30 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (Getopt-Long-Descriptive-0.105.tar.gz) = e7528ac509bc7fb49ee59a8ed8dec0c9a619a8f34c207e7a9185829666248797211a56576721b7fc8cdd44ae55d2d45f048958b79a6228ee76d91c3a52685236 +SHA512 (Getopt-Long-Descriptive-0.106.tar.gz) = 991e801189f38cd567c637f0a521093b6b6dbeaaeaa5fe7ee9676a9285f672d19274f3d358dabea1bc020d5f6c66a3c94d77e8abdd8cde0ef4e25baad4a82240