diff --git a/Env-1.04-Upgrade-to-1.05.patch b/Env-1.04-Upgrade-to-1.05.patch new file mode 100644 index 0000000000000000000000000000000000000000..eeb8bb0f1b074f216f0e8be0bb04c368bc9aaf9a --- /dev/null +++ b/Env-1.04-Upgrade-to-1.05.patch @@ -0,0 +1,54 @@ +From a80aecb24bf0fd98090b41c5518c4f5931019465 Mon Sep 17 00:00:00 2001 +From: Jitka Plesnikova +Date: Wed, 5 May 2021 16:50:50 +0200 +Subject: [PATCH] Upgrade to 1.05 + +--- + lib/Env.pm | 13 +++++++------ + 1 file changed, 7 insertions(+), 6 deletions(-) + +diff --git a/lib/Env.pm b/lib/Env.pm +index 6e6cd8b..eaf30f1 100644 +--- a/lib/Env.pm ++++ b/lib/Env.pm +@@ -1,6 +1,6 @@ + package Env; + +-our $VERSION = '1.04'; ++our $VERSION = '1.05'; + + =head1 NAME + +@@ -35,7 +35,7 @@ You may access its value + + or modify it + +- $PATH .= ":."; ++ $PATH .= ":/any/path"; + push @LD_LIBRARY_PATH, $dir; + + however you'd like. Bear in mind, however, that each access to a tied array +@@ -44,15 +44,16 @@ variable requires splitting the environment variable's string anew. + The code: + + use Env qw(@PATH); +- push @PATH, '.'; ++ push @PATH, '/any/path'; + +-is equivalent to: ++is almost equivalent to: + + use Env qw(PATH); +- $PATH .= ":."; ++ $PATH .= ":/any/path"; + + except that if C<$ENV{PATH}> started out empty, the second approach leaves +-it with the (odd) value "C<:.>", but the first approach leaves it with "C<.>". ++it with the (odd) value "C<:/any/path>", but the first approach leaves it with ++"C". + + To remove a tied environment variable from + the environment, assign it the undefined value +-- +2.30.2 + diff --git a/perl-Env.spec b/perl-Env.spec index e439fb57f2cc52ba24ba7bf13c92f17a55641f7a..51bfc796ac7f0c4ba00c106a0c845c4522eb8b1d 100644 --- a/perl-Env.spec +++ b/perl-Env.spec @@ -1,7 +1,7 @@ -%define anolis_release 2 +%define anolis_release 1 %global base_version 1.04 Name: perl-Env -Version: 1.04 +Version: 1.05 Release: %{anolis_release}%{?dist} Summary: Perl module that imports environment variables as scalars or arrays License: GPL+ or Artistic @@ -9,6 +9,7 @@ URL: https://metacpan.org/release/Env Source0: https://cpan.metacpan.org/authors/id/F/FL/FLORA/Env-%{base_version}.tar.gz BuildArch: noarch # Unbundled from perl 5.34.0 +Patch0: Env-1.04-Upgrade-to-1.05.patch BuildRequires: coreutils BuildRequires: make BuildRequires: perl-generators @@ -22,16 +23,24 @@ BuildRequires: perl(Tie::Array) # Tests: BuildRequires: perl(Test::More) BuildRequires: perl(vars) -Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %description Perl maintains environment variables in a special hash named %%ENV. For when this access method is inconvenient, the Perl module Env allows environment variables to be treated as scalar or array variables. +%package doc +Summary: Documentation files for %{name} +Requires: %{name} = %{EVR} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. + %prep %setup -q -n Env-%{base_version} - +%patch0 -p1 + %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 %{make_build} @@ -45,11 +54,17 @@ make test %files %license LICENSE -%doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* +%files doc +%doc Changes README + %changelog +* Tue Feb 07 2023 mgb01105731 - 1.05-1 +- remove versioned MODULE_COMPAT_ requires +- update to version 1.05 + * Mon Jan 30 2023 Chunmei Xu - 1.04-2 - rebuild with perl 5.36.0