From 3876ba53bf1e2362bf6805366e1a73a72e4b6d2d Mon Sep 17 00:00:00 2001
From: Jacco Ligthart <jacco@redsleeve.org>
Date: Fri, 19 Feb 2016 08:10:51 +0100
Subject: [PATCH] redsleeve

---
 SPECS/numactl.spec | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/SPECS/numactl.spec b/SPECS/numactl.spec
index c6f9c5b..d26999b 100644
--- a/SPECS/numactl.spec
+++ b/SPECS/numactl.spec
@@ -1,7 +1,7 @@
 Name:		numactl
 Summary:	Library for tuning for Non Uniform Memory Access machines
 Version:	2.0.9
-Release:	6%{?dist}
+Release:	6%{?dist}.redsleeve
 # libnuma is LGPLv2 and GPLv2
 # numactl binaries are GPLv2 only
 License:	GPLv2
@@ -10,13 +10,14 @@ URL:		ftp://oss.sgi.com/www/projects/libnuma/download
 Source0:	ftp://oss.sgi.com/www/projects/libnuma/download/numactl-%{version}.tar.gz
 Buildroot:	%{_tmppath}/%{name}-buildroot
 
-ExcludeArch: s390 s390x %{arm}
+ExcludeArch: s390 s390x
 
 Patch1: numactl-2.0.8-localalloc-man.patch
 Patch2: numactl-2.0.9-hw-detect-segfault.patch
 Patch3: numactl-2.0.9-mpol-bind-preferred.patch
 Patch4: numactl-2.0.10-numa_node_to_cpu_skip_over_nonexisting.patch
 Patch5: numactl-2.0.11-libnuma-supress-warnings-for-non-existing-node.patch
+Patch10001: numactl-2.0.9-arm_migrate_pages.patch
 
 %description
 Simple NUMA policy support. It consists of a numactl program to run
@@ -48,6 +49,7 @@ Provides development headers for numa library calls
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
+%patch10001 -p1
 
 %build
 make clean
@@ -96,6 +98,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man3/*.3*
 
 %changelog
+* Thu Feb 18 2016 Jacco Ligthart <jacco@redsleeve.org> - 2.0.9-6.redsleeve
+- Don't exclude arm architectures
+- add patch for __NR_migrate_pages on arm, see:
+- https://wiki.linaro.org/LEG/Engineering/Kernel/NUMA
+
 * Mon Dec 14 2015 Petr Holasek <pholasek@redhat.com> - 2.0.9-6
 - confusing warning supressed (bz1270734)
 
-- 
1.8.3.1

