Upgrade to 1.06 as provided in perl-5.37.11

This commit is contained in:
Jitka Plesnikova 2023-05-16 15:49:46 +02:00
parent a91f258fec
commit f854f85173
2 changed files with 67 additions and 5 deletions

View File

@ -0,0 +1,56 @@
From dd0857320449cb99c7dc312b9f1ebd9d571bad09 Mon Sep 17 00:00:00 2001
From: Jitka Plesnikova <jplesnik@redhat.com>
Date: Tue, 16 May 2023 15:26:11 +0200
Subject: [PATCH] Upgrade to 1.06
---
lib/Env.pm | 4 ++--
t/release-pod-syntax.t | 15 ---------------
2 files changed, 2 insertions(+), 17 deletions(-)
delete mode 100644 t/release-pod-syntax.t
diff --git a/lib/Env.pm b/lib/Env.pm
index eaf30f1..991afdd 100644
--- a/lib/Env.pm
+++ b/lib/Env.pm
@@ -1,6 +1,6 @@
package Env;
-our $VERSION = '1.05';
+our $VERSION = '1.06';
=head1 NAME
@@ -75,7 +75,7 @@ Gregor N. Purdy E<lt>F<gregor@focusresearch.com>E<gt>
=cut
sub import {
- my ($callpack) = caller(0);
+ my $callpack = caller(0);
my $pack = shift;
my @vars = grep /^[\$\@]?[A-Za-z_]\w*$/, (@_ ? @_ : keys(%ENV));
return unless @vars;
diff --git a/t/release-pod-syntax.t b/t/release-pod-syntax.t
deleted file mode 100644
index d46a955..0000000
--- a/t/release-pod-syntax.t
+++ /dev/null
@@ -1,15 +0,0 @@
-#!perl
-
-BEGIN {
- unless ($ENV{RELEASE_TESTING}) {
- require Test::More;
- Test::More::plan(skip_all => 'these tests are for release candidate testing');
- }
-}
-
-use Test::More;
-
-eval "use Test::Pod 1.41";
-plan skip_all => "Test::Pod 1.41 required for testing POD" if $@;
-
-all_pod_files_ok();
--
2.40.1

View File

@ -1,7 +1,7 @@
%global base_version 1.04
Name: perl-Env
Version: 1.05
Release: 490%{?dist}
Version: 1.06
Release: 1%{?dist}
Summary: Perl module that imports environment variables as scalars or arrays
License: GPL-1.0-or-later OR Artistic-1.0-Perl
URL: https://metacpan.org/release/Env
@ -9,6 +9,8 @@ Source0: https://cpan.metacpan.org/authors/id/F/FL/FLORA/Env-%{base_versi
BuildArch: noarch
# Unbundled from perl 5.34.0
Patch0: Env-1.04-Upgrade-to-1.05.patch
# Unbundled from perl 5.37.11
Patch1: Env-1.05-Upgrade-to-1.06.patch
BuildRequires: coreutils
BuildRequires: make
BuildRequires: perl-generators
@ -30,7 +32,8 @@ variables to be treated as scalar or array variables.
%prep
%setup -q -n Env-%{base_version}
%patch0 -p1
%patch -P0 -p1
%patch -P1 -p1
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
@ -46,10 +49,13 @@ make test
%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%{perl_vendorlib}/Env*
%{_mandir}/man3/Env*
%changelog
* Tue May 16 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1.06-1
- Upgrade to 1.06 as provided in perl-5.37.11
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.05-490
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild