commit 24a9aece03618b3761ebe70430b3b98318f24985
Author: Jakub Bogusz <[email protected]>
Date:   Fri Nov 25 20:33:15 2016 +0100

    - updated to 0.09.11
    - added hash-randomization patch from rt (fixes tests with perl 5.18+)

 perl-Eval-Context-hash-randomization.patch | 22 ++++++++++++++++++++++
 perl-Eval-Context.spec                     | 24 +++++++++++++++---------
 2 files changed, 37 insertions(+), 9 deletions(-)
---
diff --git a/perl-Eval-Context.spec b/perl-Eval-Context.spec
index 29b367b..8eb30f1 100644
--- a/perl-Eval-Context.spec
+++ b/perl-Eval-Context.spec
@@ -8,13 +8,17 @@
 Summary:       Eval::Context - Evalute Perl code in context wraper
 Summary(pl.UTF-8):     Eval::Context - wykonywanie kodu perlowego w 
kontekstowym obudowaniu
 Name:          perl-Eval-Context
-Version:       0.07
-Release:       2
+Version:       0.09.11
+Release:       1
+# same as perl
 License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
 Source0:       
http://www.cpan.org/modules/by-authors/id/N/NK/NKH/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: 7989ee29343f562f6c37b17ed68df373
+# Source0-md5: d13cabeb22d73d755634004b612f5cee
+# 
https://rt.cpan.org/Public/Ticket/Attachment/1222240/645514/hash-randomization.patch
+Patch0:                %{name}-hash-randomization.patch
 URL:           http://search.cpan.org/dist/Eval-Context/
+BuildRequires: perl-Module-Build
 BuildRequires: perl-devel >= 1:5.8.0
 BuildRequires: rpm-perlprov >= 4.1-13
 %if %{with tests}
@@ -24,10 +28,12 @@ BuildRequires:      perl-Directory-Scratch-Structured
 BuildRequires: perl-File-Slurp
 BuildRequires: perl-Package-Generator
 BuildRequires: perl-Readonly
+BuildRequires: perl-Safe >= 2.16
 BuildRequires: perl-Sub-Exporter
 BuildRequires: perl-Sub-Install
 BuildRequires: perl-Test-Block
-BuildRequires: perl-Test-Dependencies
+# disabled as of 0.09.x
+#BuildRequires:        perl-Test-Dependencies
 BuildRequires: perl-Test-Distribution
 BuildRequires: perl-Test-Exception
 BuildRequires: perl-Test-NoWarnings
@@ -35,9 +41,9 @@ BuildRequires:        perl-Test-Output
 BuildRequires: perl-Test-Perl-Critic
 BuildRequires: perl-Test-Pod
 BuildRequires: perl-Test-Pod-Coverage
-BuildRequires: perl-Test-Spelling
 BuildRequires: perl-Test-Strict
 BuildRequires: perl-Test-Warn
+BuildRequires: perl-Text-Diff
 BuildRequires: perl-version >= 0.5
 %endif
 BuildArch:     noarch
@@ -62,6 +68,7 @@ bezpiecznym środowisku.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
+%patch0 -p1
 
 %build
 %{__perl} Build.PL \
@@ -81,7 +88,6 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc Changes README
-%dir %{perl_vendorlib}/Eval
-%{perl_vendorlib}/Eval/*.pm
-%{_mandir}/man3/*
+%doc Changes README Todo.txt
+%{perl_vendorlib}/Eval/Context.pm
+%{_mandir}/man3/Eval::Context.3pm*
diff --git a/perl-Eval-Context-hash-randomization.patch 
b/perl-Eval-Context-hash-randomization.patch
new file mode 100644
index 0000000..6b21751
--- /dev/null
+++ b/perl-Eval-Context-hash-randomization.patch
@@ -0,0 +1,22 @@
+Description: sort expected and retrieved variables
+ due the hash randomization in perl 5.17.* the order varies
+Origin: vendor
+Bug: https://rt.cpan.org/Dist/Display.html?Name=Eval-Context
+Forwarded: https://rt.cpan.org/Dist/Display.html?Name=Eval-Context
+Bug-Debian: http://bugs.debian.org/711442
+Author: gregor herrmann <[email protected]>
+Last-Update: 2013-06-09
+
+--- a/t/009_persistent_variables.t
++++ b/t/009_persistent_variables.t
+@@ -125,8 +125,8 @@
+       die $@ if $@ ;
+       }
+       
+-my @persistent_variable_names = $context->GetPersistentVariableNames() ;
+-is_deeply(\@persistent_variable_names , [qw($object $array $variable %hash 
$hash $scalar @array)], 'persistent variable names') or diag 
DumpTree(\@persistent_variable_names ) ;
++my @persistent_variable_names = sort $context->GetPersistentVariableNames() ;
++is_deeply(\@persistent_variable_names , [sort qw($object $array $variable 
%hash $hash $scalar @array)], 'persistent variable names') or diag 
DumpTree(\@persistent_variable_names ) ;
+ 
+ throws_ok
+       {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Eval-Context.git/commitdiff/24a9aece03618b3761ebe70430b3b98318f24985

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to