From 5a6680fb6fc272187758d42c48ea6fd411cecd77 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
Date: Thu, 20 Jul 2017 15:00:16 +0200
Subject: Enable building on 32-bit platforms since perl is built with
 use64bitint

---
 perl-Mango.spec | 26 ++++++++++++--------------
 1 file changed, 12 insertions(+), 14 deletions(-)

diff --git a/perl-Mango.spec b/perl-Mango.spec
index 39e7e23..56be7e9 100644
--- a/perl-Mango.spec
+++ b/perl-Mango.spec
@@ -1,25 +1,16 @@
 Name:           perl-Mango
 Version:        1.29
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Pure-Perl non-blocking I/O MongoDB driver
 License:        Artistic 2.0
 URL:            http://search.cpan.org/dist/Mango/
 Source0:        http://www.cpan.org/authors/id/O/OD/ODC/Mango-%{version}.tar.gz
+BuildArch:      noarch
+BuildRequires:  make
 # This code is architecture-independent, but it requires at least 64-bit
 # integers and these are not available on 32-bit architectures if perl is
-# built without use64bitint option and this is our case.
-# Exclude 32-bit archictures:
-ExcludeArch:    %arm
-ExcludeArch:    %ix86
-ExcludeArch:    m68k
-ExcludeArch:    mips mipsr6 mipsr6el
-ExcludeArch:    ppc ppc32dy4 ppc8260 ppc8560 ppciseries ppcpseries
-ExcludeArch:    s390
-ExcludeArch:    sh sh3 sh4 sh4a
-ExcludeArch:    sparc sparcv8 sparcv9 sparcv9v
-# No ELF, no debuginfo needed
-%global debug_package %{nil}
-BuildRequires:  make
+# built without use64bitint option. We enabled use64bitint in 4:5.26.0-392.
+BuildRequires:  perl-libs >= 4:5.26.0-392
 BuildRequires:  perl-interpreter
 BuildRequires:  perl-generators
 BuildRequires:  perl(:VERSION) >= 5.10.1
@@ -64,6 +55,10 @@ Requires:       perl(Mojo::EventEmitter)
 # Mojolicious version from META because this is the only versioned module in
 # perl-Mojolicious RPM package
 Requires:       perl(Mojolicious) >= 5.40
+# This code is architecture-independent, but it requires at least 64-bit
+# integers and these are not available on 32-bit architectures if perl is
+# built without use64bitint option. We enabled use64bitint in 4:5.26.0-392.
+Requires:       perl-libs >= 4:5.26.0-392
 
 %description
 Mango is a pure-Perl non-blocking I/O MongoDB driver, optimized for use
@@ -93,6 +88,9 @@ make test
 %{_mandir}/man3/*
 
 %changelog
+* Thu Jul 20 2017 Petr Pisar <ppi...@redhat.com> - 1.29-3
+- Enable building on 32-bit platforms since perl is built with use64bitint
+
 * Sun Jun 04 2017 Jitka Plesnikova <jples...@redhat.com> - 1.29-2
 - Perl 5.26 rebuild
 
-- 
cgit v1.1


        
https://src.fedoraproject.org/cgit/perl-Mango.git/commit/?h=master&id=5a6680fb6fc272187758d42c48ea6fd411cecd77
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org

Reply via email to