Notification time stamped 2019-09-30 17:35:13 UTC

From 711eeb82acc0618444330603827980de97fcea66 Mon Sep 17 00:00:00 2001
From: Paul Howarth <p...@city-fan.org>
Date: Feb 15 2017 13:29:53 +0000
Subject: Update to 1.810


- New upstream release 1.810
  - Bumped minimum requirement for Sereal to 3.015 when available; added
    regression ensuring matching version for Encoder and Decoder
- Add patch to avoid unintentional hard dependencies on Sereal

---

diff --git a/MCE-Shared-1.810-Sereal-deps.patch 
b/MCE-Shared-1.810-Sereal-deps.patch
new file mode 100644
index 0000000..ca959a2
--- /dev/null
+++ b/MCE-Shared-1.810-Sereal-deps.patch
@@ -0,0 +1,30 @@
+Upstream's syntax is mis-parsed by the rpm dependency generator as a hard 
requirement.
+
+--- lib/MCE/Hobo.pm
++++ lib/MCE/Hobo.pm
+@@ -37,10 +37,7 @@ BEGIN {
+    $_is_MSWin32  = ( $^O eq 'MSWin32' && $_has_threads ) ? 1 : 0;
+ 
+    if (!exists $INC{'PDL.pm'}) {
+-      eval '
+-         use Sereal::Encoder 3.015 qw( encode_sereal );
+-         use Sereal::Decoder 3.015 qw( decode_sereal );
+-      ';
++      eval 'use Sereal::Encoder 3.015 qw( encode_sereal ); use 
Sereal::Decoder 3.015 qw( decode_sereal );';
+       if ( !$@ ) {
+          my $_encoder_ver = int( Sereal::Encoder->VERSION() );
+          my $_decoder_ver = int( Sereal::Decoder->VERSION() );
+--- lib/MCE/Shared/Server.pm
++++ lib/MCE/Shared/Server.pm
+@@ -47,10 +47,7 @@ BEGIN {
+    eval 'use PDL::IO::Storable' if $INC{'PDL.pm'};
+ 
+    if (!exists $INC{'PDL.pm'}) {
+-      eval '
+-         use Sereal::Encoder 3.015 qw( encode_sereal );
+-         use Sereal::Decoder 3.015 qw( decode_sereal );
+-      ';
++      eval 'use Sereal::Encoder 3.015 qw( encode_sereal ); use 
Sereal::Decoder 3.015 qw( decode_sereal );';
+       if ( !$@ ) {
+          my $_encoder_ver = int( Sereal::Encoder->VERSION() );
+          my $_decoder_ver = int( Sereal::Decoder->VERSION() );
diff --git a/perl-MCE-Shared.spec b/perl-MCE-Shared.spec
index a08b31a..6797d94 100644
--- a/perl-MCE-Shared.spec
+++ b/perl-MCE-Shared.spec
@@ -1,10 +1,11 @@
 Name:          perl-MCE-Shared
-Version:       1.809
+Version:       1.810
 Release:       1%{?dist}
 Summary:       MCE extension for sharing data, supporting threads and processes
 License:       GPL+ or Artistic
 URL:           http://search.cpan.org/dist/MCE-Shared/
 Source0:       
http://search.cpan.org/CPAN/authors/id/M/MA/MARIOROY/MCE-Shared-%{version}.tar.gz
+Patch0:                MCE-Shared-1.810-Sereal-deps.patch
 BuildArch:     noarch
 # Module Build
 BuildRequires: coreutils
@@ -17,7 +18,7 @@ BuildRequires:        perl(ExtUtils::MakeMaker)
 BuildRequires: perl(bytes)
 BuildRequires: perl(Carp)
 BuildRequires: perl(constant)
-BuildRequires: perl(MCE) >= 1.811
+BuildRequires: perl(MCE) >= 1.812
 BuildRequires: perl(MCE::Mutex)
 BuildRequires: perl(MCE::Util)
 BuildRequires: perl(overload)
@@ -42,7 +43,7 @@ BuildRequires:        perl(Test::More) >= 0.88
 # Runtime
 Requires:      perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
 Requires:      perl(IO::FDPass) >= 1.1
-Requires:      perl(MCE) >= 1.811
+Requires:      perl(MCE) >= 1.812
 Requires:      perl(overloading)
 Requires:      perl(Storable) >= 2.04
 Requires:      perl(Symbol)
@@ -60,6 +61,9 @@ asynchronously.
 %prep
 %setup -q -n MCE-Shared-%{version}
 
+# Avoid hard dependencies on Sereal
+%patch0
+
 %build
 perl Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
@@ -92,6 +96,12 @@ make test
 %{_mandir}/man3/MCE::Shared::Server.3*
 
 %changelog
+* Wed Feb 15 2017 Paul Howarth <p...@city-fan.org> - 1.810-1
+- Update to 1.810
+  - Bumped minimum requirement for Sereal to 3.015 when available; added
+    regression ensuring matching version for Encoder and Decoder
+- Add patch to avoid unintentional hard dependencies on Sereal
+
 * Tue Feb 14 2017 Paul Howarth <p...@city-fan.org> - 1.809-1
 - Update to 1.809
   - Fixed bug in MCE::Shared::Queue (dequeue_nb) when queue has zero items
diff --git a/sources b/sources
index a62288a..928db07 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (MCE-Shared-1.809.tar.gz) = 
4e6febb280281122117c701396766de369c72eef114853cdc5993d1337f0f1e402eeb8657a98b902726caede631c08a15edbfe130be75aa27df9c757d8dfa4b2
+SHA512 (MCE-Shared-1.810.tar.gz) = 
91a7bcc64cf561924c81e9c3885e1a409e7396a2ac6a1cac4747ff4fb1beb7bf9a53972f79bd21bfbb76a718cd075e77c2ab0e5aba3335d07ebab0ebcb097d93


        
https://src.fedoraproject.org/rpms/perl-MCE-Shared/c/711eeb82acc0618444330603827980de97fcea66?branch=epel8
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/perl-devel@lists.fedoraproject.org

Reply via email to