From e24cb897f4a1e344c8315f6affd2d966cf050e4b Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: Thu, 24 May 2018 10:29:13 +0200 Subject: [PATCH] Upgrade to 0.95 as provided in perl-5.28.0-RC1 --- Filter-Simple-0.94-Upgrade-to-0.95.patch | 54 ++++++++++++++++++++++++ perl-Filter-Simple.spec | 15 +++++-- 2 files changed, 65 insertions(+), 4 deletions(-) create mode 100644 Filter-Simple-0.94-Upgrade-to-0.95.patch diff --git a/Filter-Simple-0.94-Upgrade-to-0.95.patch b/Filter-Simple-0.94-Upgrade-to-0.95.patch new file mode 100644 index 0000000..eac02ea --- /dev/null +++ b/Filter-Simple-0.94-Upgrade-to-0.95.patch @@ -0,0 +1,54 @@ +From 593fb3d6c0fcff266729d1d497d931e7e3ad9a83 Mon Sep 17 00:00:00 2001 +From: Jitka Plesnikova +Date: Thu, 24 May 2018 10:20:55 +0200 +Subject: [PATCH] Upgrade to 0.95 + +--- + lib/Filter/Simple.pm | 6 ++---- + t/no.t | 13 +++++++++++++ + 2 files changed, 15 insertions(+), 4 deletions(-) + create mode 100644 t/no.t + +diff --git a/lib/Filter/Simple.pm b/lib/Filter/Simple.pm +index 082fe95..1dcf3c8 100644 +--- a/lib/Filter/Simple.pm ++++ b/lib/Filter/Simple.pm +@@ -2,14 +2,12 @@ package Filter::Simple; + + use Text::Balanced ':ALL'; + +-use vars qw{ $VERSION @EXPORT }; +- +-$VERSION = '0.94'; ++our $VERSION = '0.95'; + + use Filter::Util::Call; + use Carp; + +-@EXPORT = qw( FILTER FILTER_ONLY ); ++our @EXPORT = qw( FILTER FILTER_ONLY ); + + + sub import { +diff --git a/t/no.t b/t/no.t +new file mode 100644 +index 0000000..8980eae +--- /dev/null ++++ b/t/no.t +@@ -0,0 +1,13 @@ ++BEGIN { ++ unshift @INC, 't/lib/'; ++} ++ ++print "1..2\n"; ++ ++use Filter::Simple::FilterTest qr/ok/ => "not ok", pass => "fail"; ++no Filter::Simple::FilterTest; ++ ++sub pass { print "ok ", $_[0], "\n" } ++ ++print "ok 1\n"; ++("pa"."ss")->(2); +-- +2.14.3 + diff --git a/perl-Filter-Simple.spec b/perl-Filter-Simple.spec index c6a500d..8afc073 100644 --- a/perl-Filter-Simple.spec +++ b/perl-Filter-Simple.spec @@ -1,11 +1,14 @@ +%global base_version 0.94 Name: perl-Filter-Simple -Version: 0.94 -Release: 2%{?dist} +Version: 0.95 +Release: 1%{?dist} Summary: Simplified Perl source filtering License: GPL+ or Artistic URL: http://search.cpan.org/dist/Filter-Simple/ -Source0: http://www.cpan.org/authors/id/S/SM/SMUELLER/Filter-Simple-%{version}.tar.gz +Source0: http://www.cpan.org/authors/id/S/SM/SMUELLER/Filter-Simple-%{base_version}.tar.gz BuildArch: noarch +# Unbundled from perl 5.28.0-RC1 +Patch0: Filter-Simple-0.94-Upgrade-to-0.95.patch BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter @@ -32,7 +35,8 @@ The Filter::Simple Perl module provides a simplified interface to Filter::Util::Call; one that is sufficient for most common cases. %prep -%setup -q -n Filter-Simple-%{version} +%setup -q -n Filter-Simple-%{base_version} +%patch0 -p1 %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 @@ -51,6 +55,9 @@ make test %{_mandir}/man3/* %changelog +* Thu May 24 2018 Jitka Plesnikova - 0.95-1 +- Upgrade to 0.95 as provided in perl-5.28.0-RC1 + * Thu Feb 08 2018 Fedora Release Engineering - 0.94-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild