[perl-Algorithm-SVM] Fix the build on i386
Mathieu Bridon
bochecha at fedoraproject.org
Thu Sep 20 04:37:30 UTC 2012
commit f87aada262674318e6f4ebcb834d232bd93732f2
Author: Mathieu Bridon <bochecha at fedoraproject.org>
Date: Thu Sep 20 12:36:49 2012 +0800
Fix the build on i386
...-0.13-Fix-build-on-32-bits-with-Perl-5.14.patch | 28 ++++++++++++++++++++
perl-Algorithm-SVM.spec | 13 +++++++--
2 files changed, 38 insertions(+), 3 deletions(-)
---
diff --git a/Algorithm-SVM-0.13-Fix-build-on-32-bits-with-Perl-5.14.patch b/Algorithm-SVM-0.13-Fix-build-on-32-bits-with-Perl-5.14.patch
new file mode 100644
index 0000000..bb590e6
--- /dev/null
+++ b/Algorithm-SVM-0.13-Fix-build-on-32-bits-with-Perl-5.14.patch
@@ -0,0 +1,28 @@
+From 3681ab37605bb25f8a9224758f8d697cdb894056 Mon Sep 17 00:00:00 2001
+From: Mathieu Bridon <bochecha at fedoraproject.org>
+Date: Thu, 20 Sep 2012 12:02:58 +0800
+Subject: [PATCH] Fix build on 32 bits with Perl >= 5.14
+
+https://rt.cpan.org/Public/Bug/Display.html?id=79754
+---
+ Makefile.PL | 3 ++-
+ 1 files changed, 2 insertions(+), 1 deletions(-)
+
+diff --git a/Makefile.PL b/Makefile.PL
+index ecf843c..f1538a8 100644
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -1,8 +1,9 @@
+ use ExtUtils::MakeMaker;
++use Config;
+
+ $CC = 'g++';
+
+-%args = ('CCFLAGS' => '-Wall');
++%args = ('CCFLAGS' => "-Wall $Config{ccflags}");
+
+ if($^O eq 'cygwin') {
+ $args{'LDDLFLAGS'} = '-shared -L/usr/local/lib';
+--
+1.7.7.6
+
diff --git a/perl-Algorithm-SVM.spec b/perl-Algorithm-SVM.spec
index 06bb86c..589609f 100644
--- a/perl-Algorithm-SVM.spec
+++ b/perl-Algorithm-SVM.spec
@@ -1,6 +1,6 @@
Name: perl-Algorithm-SVM
Version: 0.13
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Perl bindings for the libsvm Support Vector Machine library
# Note: The sources bundle a copy of libsvm which is BSD-licensed,
@@ -11,11 +11,13 @@ URL: http://search.cpan.org/dist/Algorithm-SVM/
Source0: http://www.cpan.org/authors/id/L/LA/LAIRDM/Algorithm-SVM-%{version}.tar.gz
-# Both patches were submitted upstream:
-# https://rt.cpan.org/Public/Bug/Display.html?id=79106
+# https://rt.cpan.org/Public/Bug/Display.html?id=79106
Patch0: Algorithm-SVM-0.13-Unbundle-libsvm.patch
Patch1: Algorithm-SVM-0.13-Port-to-libsvm-3.0.patch
+# https://rt.cpan.org/Public/Bug/Display.html?id=79754
+Patch2: Algorithm-SVM-0.13-Fix-build-on-32-bits-with-Perl-5.14.patch
+
BuildRequires: perl(AutoLoader)
BuildRequires: perl(Carp)
BuildRequires: perl(Exporter)
@@ -39,6 +41,7 @@ data sets.
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
@@ -67,6 +70,10 @@ make test
%changelog
+* Thu Sep 20 2012 Mathieu Bridon <bochecha at fedoraproject.org> - 0.13-3
+- Fix build on 32 bits with Perl >= 5.14
+ https://rt.cpan.org/Public/Bug/Display.html?id=79754
+
* Wed Sep 19 2012 Mathieu Bridon <bochecha at fedoraproject.org> - 0.13-2
- Fix issues based on Petr's review feedback:
- Fix typo 'classifcation' in the package description.
More information about the scm-commits
mailing list