b18e0c
Name:		numactl
b18e0c
Summary:	Library for tuning for Non Uniform Memory Access machines
b18e0c
Version:	2.0.12
bd72f1
Release:	5%{?dist}
b18e0c
# libnuma is LGPLv2 and GPLv2
b18e0c
# numactl binaries are GPLv2 only
b18e0c
License:	GPLv2
b18e0c
Group:		System Environment/Base
b18e0c
URL:            https://github.com/numactl/numactl
b18e0c
Source0:        https://github.com/numactl/numactl/releases/download/%{version}/numactl-%{version}.tar.gz
b18e0c
Buildroot:	%{_tmppath}/%{name}-buildroot
b18e0c
BuildRequires:  libtool automake autoconf
b18e0c
b18e0c
ExcludeArch: s390 s390x %{arm}
b18e0c
b18e0c
Patch1: numactl-2.0.12-numastat-when-reading-no-exist-pid-return-EXIT_FAILU.patch
b18e0c
Patch2: numactl-2.0.12-libnuma-introduce-an-API-to-outdate-cpu-to-node-mapp.patch
b18e0c
Patch3: numactl-2.0.12-Update-manpage-description-of-numa_node_to_cpu_updat.patch
bd72f1
Patch4: numactl-2.0.12-Fix-crashes-when-using-the-touch-option.patch
b18e0c
b18e0c
%description
b18e0c
Simple NUMA policy support. It consists of a numactl program to run
b18e0c
other programs with a specific NUMA policy.
b18e0c
b18e0c
%package libs
b18e0c
Summary: libnuma libraries
b18e0c
# There is a tiny bit of GPLv2 code in libnuma.c
b18e0c
License: LGPLv2 and GPLv2
b18e0c
Group: System Environment/Libraries
b18e0c
b18e0c
%description libs
b18e0c
numactl-libs provides libnuma, a library to do allocations with
b18e0c
NUMA policy in applications.
b18e0c
b18e0c
%package devel
b18e0c
Summary: Development package for building Applications that use numa
b18e0c
Group: System Environment/Libraries
b18e0c
Requires: %{name}-libs = %{version}-%{release}
b18e0c
License: LGPLv2 and GPLv2
b18e0c
b18e0c
%description devel
b18e0c
Provides development headers for numa library calls
b18e0c
b18e0c
%prep
b18e0c
%setup -q -n %{name}-%{version}
b18e0c
%patch1 -p1
b18e0c
%patch2 -p1
b18e0c
%patch3 -p1
bd72f1
%patch4 -p1
b18e0c
b18e0c
%build
b18e0c
%configure --prefix=/usr --libdir=%{_libdir}
b18e0c
make clean
b18e0c
make CFLAGS="$RPM_OPT_FLAGS -I."
b18e0c
b18e0c
%install
b18e0c
rm -rf $RPM_BUILD_ROOT
b18e0c
b18e0c
make DESTDIR=$RPM_BUILD_ROOT install
b18e0c
b18e0c
%post -p /sbin/ldconfig
b18e0c
%post libs -p /sbin/ldconfig
b18e0c
b18e0c
%postun -p /sbin/ldconfig
b18e0c
%postun libs -p /sbin/ldconfig
b18e0c
b18e0c
%files
b18e0c
%doc README.md
b18e0c
%{_bindir}/numactl
b18e0c
%{_bindir}/numademo
b18e0c
%{_bindir}/numastat
b18e0c
%{_bindir}/memhog
b18e0c
%{_bindir}/migspeed
b18e0c
%{_bindir}/migratepages
b18e0c
%{_mandir}/man8/*.8*
b18e0c
%exclude %{_mandir}/man2/*.2*
b18e0c
b18e0c
%files libs
b18e0c
%{_libdir}/libnuma.so.1.0.0
b18e0c
%{_libdir}/libnuma.so.1
b18e0c
b18e0c
%files devel
b18e0c
%{_libdir}/libnuma.so
b18e0c
%{_libdir}/pkgconfig/numa.pc
b18e0c
%exclude %{_libdir}/libnuma.a
b18e0c
%exclude %{_libdir}/libnuma.la
b18e0c
%{_includedir}/numa.h
b18e0c
%{_includedir}/numaif.h
b18e0c
%{_includedir}/numacompat1.h
b18e0c
%{_mandir}/man3/*.3*
b18e0c
b18e0c
%changelog
bd72f1
* Fri Oct 18 2019 Pingfan Liu <piliu@redhat.com> - 2.0.12-5
bd72f1
- Fix crashes when using the "--touch" option
bd72f1
b18e0c
* Wed Sep 18 2019 Pingfan Liu <piliu@redhat.com> - 2.0.12-4
b18e0c
- libnuma: introduce an API to outdate cpu to node mapping
b18e0c
b18e0c
* Sat Jun  1 2019 Pingfan Liu <piliu@redhat.com> - 2.0.12-3
b18e0c
- numastat: bail out if reading no-exist pid
b18e0c
b18e0c
* Fri May 31 2019 Pingfan Liu <piliu@redhat.com> - 2.0.12-2
b18e0c
- numastat: when reading no-exist pid, return EXIT_FAILURE
b18e0c
- Rebase to numactl-2.0.12
b18e0c
b18e0c
* Tue Aug 8 2017 Petr Oros <poros@redhat.com> - 2.0.9-7
b18e0c
- Segment fault when numa nodes not sequential or contiguous
b18e0c
- Resolves: #1219445
b18e0c
b18e0c
* Mon Dec 14 2015 Petr Holasek <pholasek@redhat.com> - 2.0.9-6
b18e0c
- confusing warning supressed (bz1270734)
b18e0c
b18e0c
* Wed Jul 01 2015 Petr Holasek <pholasek@redhat.com> - 2.0.9-5
b18e0c
- numa_node_to_cpu skips over non-existing nodes (bz1180415)
b18e0c
b18e0c
* Mon Nov 10 2014 Petr Holasek <pholasek@redhat.com> - 2.0.9-4
b18e0c
- Fixed missing question mark in dist macro
b18e0c
b18e0c
* Thu Jul 31 2014 Petr Holasek <pholasek@redhat.com> - 2.0.9-3
b18e0c
- Fixed hw detect segfault (bz1061874)
b18e0c
- Fixed printing of preferred node for MPOL_BIND (bz1119887)
b18e0c
b18e0c
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.0.9-2
b18e0c
- Mass rebuild 2013-12-27
b18e0c
b18e0c
* Fri Oct 25 2013 Petr Holasek <pholasek@redhat.com> - 2.0.9-1
b18e0c
- rebased to version 2.0.9 (bz1017053)
b18e0c
b18e0c
* Mon Aug 19 2013 Petr Holasek <pholasek@redhat.com> - 2.0.8-6
b18e0c
- localalloc manpage option is more verbose (bz881779)
b18e0c
b18e0c
* Tue Jul 30 2013 Petr Holasek <pholasek@redhat.com> - 2.0.8-5
b18e0c
- numastat minor bugfixes
b18e0c
- manpage and usage fixes (bz948377)
b18e0c
b18e0c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.8-4
b18e0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b18e0c
b18e0c
* Tue Jan 22 2013 Petr Holasek <pholasek@redhat.com> - 2.0.8-3
b18e0c
- deleted empty numastat file
b18e0c
b18e0c
* Thu Nov  1 2012 Tom Callaway <spot@fedoraproject.org> - 2.0.8-2
b18e0c
- fix license issues
b18e0c
b18e0c
* Fri Oct 26 2012 Petr Holasek <pholasek@redhat.com> - 2.0.8-1
b18e0c
- Rebased to version 2.0.8
b18e0c
b18e0c
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.7-7
b18e0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b18e0c
b18e0c
* Sat May 19 2012 Petr Holasek <pholasek@redhat.com> - 2.0.7-6
b18e0c
- numademo segfault fix (bz823125, bz823127)
b18e0c
b18e0c
* Sun Apr 15 2012 Petr Holasek <pholasek@redhat.com> - 2.0.7-5
b18e0c
- Library splitted out of numactl package to numactl-libs
b18e0c
b18e0c
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.7-4
b18e0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b18e0c
b18e0c
* Sun Jan 01 2012 Anton Arapov <anton@redhat.com> - 2.0.7-3
b18e0c
- Include missing manpages
b18e0c
b18e0c
* Sat Jun 18 2011 Peter Robinson <pbrobinson@gmail.com> - 2.0.7-2
b18e0c
- Exclude ARM platforms
b18e0c
b18e0c
* Fri Apr 15 2011 Anton Arapov <anton@redhat.com> - 2.0.7-1
b18e0c
- Update to latest upstream stable version (bz 696703)
b18e0c
b18e0c
* Tue Mar 22 2011 Anton Arapov <anton@redhat.com> - 2.0.6-2
b18e0c
- Better manpages (bz 673613)
b18e0c
b18e0c
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.6-2
b18e0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b18e0c
b18e0c
* Tue Jan 04 2011 Neil Horman <nhorman@redhat.com> - 2.0.6-1
b18e0c
- Update to latest upstream stable version (bz 666379)
b18e0c
b18e0c
* Mon Oct 18 2010 Neil Horman <nhorman@redhat.com> - 2.0.5-1
b18e0c
- Update to latest stable upstream source
b18e0c
b18e0c
* Mon Feb 15 2010 Neil Horman <nhorman@redhat.com> - 2.0.3-8
b18e0c
- Remove static libs from numactl (bz 556088)
b18e0c
b18e0c
* Mon Aug 10 2009 Neil Horman <nhorman@redhat.com> - 2.0.3-7
b18e0c
- Add destructor to libnuma.so to free allocated memory (bz 516227)
b18e0c
b18e0c
* Mon Aug 10 2009 Neil Horman <nhorman@redhat.com> - 2.0.3-6
b18e0c
- Fix obo in nodes_allowed_list strncpy (bz 516223)
b18e0c
b18e0c
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-5
b18e0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b18e0c
b18e0c
* Fri Jun 26 2009 Neil Horman <nhorman@redhat.com>
b18e0c
- Update to full 2.0.3 version (bz 506795)
b18e0c
b18e0c
* Wed Jun 17 2009 Neil Horman <nhorman@redhat.com>
b18e0c
- Fix silly libnuma warnings again (bz 499633)
b18e0c
b18e0c
* Fri May 08 2009 Neil Horman <nhorman@redhat.com>
b18e0c
- Update to 2.0.3-rc3 (bz 499633)
b18e0c
b18e0c
* Wed Mar 25 2009 Mark McLoughlin <markmc@redhat.com> - 2.0.2-4
b18e0c
- Remove warning from libnuma (bz 484552)
b18e0c
b18e0c
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2-3
b18e0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
b18e0c
b18e0c
* Mon Sep 29 2008 Neil Horman <nhorman@redhat.com> - 2.0.2-2
b18e0c
- Fix build break due to register selection in asm
b18e0c
b18e0c
* Mon Sep 29 2008 Neil Horman <nhorman@redhat.com> - 2.0.2-1
b18e0c
- Update rawhide to version 2.0.2 of numactl
b18e0c
b18e0c
* Fri Apr 25 2008 Neil Horman <nhorman@redhat.com> - 1.0.2-6
b18e0c
- Fix buffer size passing and arg sanity check for physcpubind (bz 442521)
b18e0c
b18e0c
* Fri Mar 14 2008 Neil Horman <nhorman@redhat.com> - 1.0.2-5
b18e0c
- Fixing spec file to actually apply alpha patch :)
b18e0c
b18e0c
* Fri Mar 14 2008 Neil Horman <nhorman@redhat.com> - 1.0.2-4
b18e0c
- Add alpha syscalls (bz 396361)
b18e0c
b18e0c
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.2-3
b18e0c
- Autorebuild for GCC 4.3
b18e0c
b18e0c
* Thu Dec 20 2007 Neil Horman <nhorman@redhat.com> - 1.0.2-1
b18e0c
- Update numactl to fix get_mempolicy signature (bz 418551)
b18e0c
b18e0c
* Fri Dec 14 2007 Neil Horman <nhorman@redhat.com> - 1.0.2-1
b18e0c
- Update numactl to latest version (bz 425281)
b18e0c
b18e0c
* Tue Aug 07 2007 Neil Horman <nhorman@redhat.com> - 0.9.8-4
b18e0c
- Fixing some remaining merge review issues (bz 226207)
b18e0c
b18e0c
* Fri Aug 03 2007 Neil Horman <nhorman@redhat.com> - 0.9.8-3
b18e0c
- fixing up merge review (bz 226207)
b18e0c
b18e0c
* Fri Jan 12 2007 Neil Horman <nhorman@redhat.com> - 0.9.8-2
b18e0c
- Properly fixed bz 221982
b18e0c
- Updated revision string to include %{dist}
b18e0c
b18e0c
* Thu Jan 11 2007 Neil Horman <nhorman@redhat.com> - 0.9.8-1.38
b18e0c
- Fixed -devel to depend on base package so libnuma.so resolves
b18e0c
b18e0c
* Thu Sep 21 2006 Neil Horman <nhorman@redhat.com> - 0.9.8-1.36
b18e0c
- adding nodebind patch for bz 207404
b18e0c
b18e0c
* Fri Aug 25 2006 Neil Horman <nhorman@redhat.com> - 0.9.8-1.35
b18e0c
- moving over libnuma.so to -devel package as well
b18e0c
b18e0c
* Fri Aug 25 2006 Neil Horman <nhorman@redhat.com> - 0.9.8-1.34
b18e0c
- split out headers/devel man pages to a devel subpackage
b18e0c
b18e0c
* Tue Aug 15 2006 Neil Horman <nhorman@redhat.com> - 0.9.8-1.32
b18e0c
- add patch for broken cpu/nodebind output (bz 201906)
b18e0c
b18e0c
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.9.8-1.31
b18e0c
- rebuild
b18e0c
b18e0c
* Tue Jun 13 2006 Neil Horman <nhorman@redhat.com>
b18e0c
- Rebased numactl to version 0.9.8 for FC6/RHEL5
b18e0c
b18e0c
* Wed Apr 26 2006 Neil Horman <nhorman@redhat.com>
b18e0c
- Added patches for 64 bit overflows and cpu mask problem
b18e0c
b18e0c
* Fri Mar 10 2006 Bill Nottingham <notting@redhat.com>
b18e0c
- rebuild for ppc TLS issue (#184446)
b18e0c
b18e0c
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.6.4-1.25.2
b18e0c
- bump again for double-long bug on ppc(64)
b18e0c
b18e0c
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com>
b18e0c
- rebuilt for new gcc4.1 snapshot and glibc changes
b18e0c
b18e0c
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
b18e0c
- rebuilt
b18e0c
b18e0c
* Thu Jul  7 2005 Dave Jones <davej@redhat.com>
b18e0c
- numactl doesn't own the manpage dirs. (#161547)
b18e0c
b18e0c
* Tue Mar  1 2005 Dave Jones <davej@redhat.com>
b18e0c
- Rebuild for gcc4
b18e0c
b18e0c
* Tue Feb  8 2005 Dave Jones <davej@redhat.com>
b18e0c
- rebuild with -D_FORTIFY_SOURCE=2
b18e0c
b18e0c
* Wed Nov 10 2004 David Woodhouse <dwmw2@redhat.com>
b18e0c
- Fix build on x86_64
b18e0c
b18e0c
* Thu Oct 21 2004 David Woodhouse <dwmw2@redhat.com>
b18e0c
- Add PPC support
b18e0c
b18e0c
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
b18e0c
- rebuilt
b18e0c
b18e0c
* Sat Jun 05 2004 Warren Togami <wtogami@redhat.com> 
b18e0c
- spec cleanup
b18e0c
b18e0c
* Sat Jun 05 2004 Arjan van de Ven <arjanv@redhat.com>
b18e0c
- initial packaging
b18e0c