Blame SPECS/numactl.spec

c7840d
Name:		numactl
c7840d
Summary:	Library for tuning for Non Uniform Memory Access machines
c7840d
Version:	2.0.12
2079c3
Release:	7%{?dist}
c7840d
# libnuma is LGPLv2 and GPLv2
c7840d
# numactl binaries are GPLv2 only
c7840d
License:	GPLv2
c7840d
Group:		System Environment/Base
c7840d
URL:		https://github.com/numactl/numactl
c7840d
Source0:	https://github.com/numactl/numactl/releases/download/%{version}/numactl-%{version}.tar.gz
c7840d
Buildroot:	%{_tmppath}/%{name}-buildroot
c7840d
BuildRequires:	libtool automake autoconf
c7840d
c7840d
ExcludeArch: s390 %{arm}
c7840d
c7840d
#START INSERT
c7840d
#
c7840d
# Patches 0 through 100 are meant for x86
c7840d
#
c7840d
c7840d
#
c7840d
# Patches 101 through 200 are meant for x86_64
c7840d
#
c7840d
c7840d
#
c7840d
# Patches 301 through 400 are meant for ppc64le
c7840d
#
c7840d
c7840d
#
c7840d
# Patches 401 through 500 are meant for s390x
c7840d
#
c7840d
c7840d
#
c7840d
# Patches 501 through 600 are meant for aarch64
c7840d
#
c7840d
c7840d
#
c7840d
# Patches 601 onward are generic patches
c7840d
#
2079c3
Patch601 :0001-Fix-node_list-with-memory-less-nodes.patch
2079c3
Patch602 :0002-numademo-fix-wrong-node-input.patch
2079c3
Patch603 :0003-Fix-distance-test-to-include-all-existing-nodes.patch
2079c3
Patch604 :0004-Fix-regress-test-numastat-function-and-few-test-fixe.patch
2079c3
Patch605 :0005-Correct-calculation-of-nr_nodes-and-re-enable-move_p.patch
2079c3
Patch606 :0006-Fix-move_pages-test-for-non-contiguous-nodes.patch
2079c3
Patch607 :0007-Fix-Add-ShmemHugePages-and-ShmemPmdMapped-to-system_.patch
2079c3
c7840d
c7840d
c7840d
%description
c7840d
Simple NUMA policy support. It consists of a numactl program to run
c7840d
other programs with a specific NUMA policy.
c7840d
c7840d
%package libs
c7840d
Summary: libnuma libraries
c7840d
# There is a tiny bit of GPLv2 code in libnuma.c
c7840d
License: LGPLv2 and GPLv2
c7840d
Group: System Environment/Libraries
c7840d
c7840d
%description libs
c7840d
numactl-libs provides libnuma, a library to do allocations with
c7840d
NUMA policy in applications.
c7840d
c7840d
%package devel
c7840d
Summary: Development package for building Applications that use numa
c7840d
Group: System Environment/Libraries
c7840d
Requires: %{name}-libs = %{version}-%{release}
c7840d
License: LGPLv2 and GPLv2
c7840d
c7840d
%description devel
c7840d
Provides development headers for numa library calls
c7840d
c7840d
%prep
c7840d
%setup -q -n %{name}-%{version}
c7840d
c7840d
#patch
c7840d
%patch601 -p1
2079c3
%patch602 -p1
2079c3
%patch603 -p1
2079c3
%patch604 -p1
2079c3
%patch605 -p1
2079c3
%patch606 -p1
2079c3
%patch607 -p1
c7840d
c7840d
c7840d
%build
2079c3
aclocal && automake
c7840d
%configure --prefix=/usr --libdir=%{_libdir}
c7840d
make clean
c7840d
make CFLAGS="$RPM_OPT_FLAGS -I."
c7840d
c7840d
%install
c7840d
rm -rf $RPM_BUILD_ROOT
c7840d
c7840d
make DESTDIR=$RPM_BUILD_ROOT install
c7840d
c7840d
%post -p /sbin/ldconfig
c7840d
%post libs -p /sbin/ldconfig
c7840d
c7840d
%postun -p /sbin/ldconfig
c7840d
%postun libs -p /sbin/ldconfig
c7840d
c7840d
%files
c7840d
%doc README.md
c7840d
%{_bindir}/numactl
c7840d
%{_bindir}/numademo
c7840d
%{_bindir}/numastat
c7840d
%{_bindir}/memhog
c7840d
%{_bindir}/migspeed
c7840d
%{_bindir}/migratepages
c7840d
%{_mandir}/man8/*.8*
c7840d
%exclude %{_mandir}/man2/*.2*
c7840d
c7840d
%files libs
c7840d
%{_libdir}/libnuma.so.1.0.0
c7840d
%{_libdir}/libnuma.so.1
c7840d
c7840d
%files devel
c7840d
%{_libdir}/libnuma.so
c7840d
%{_libdir}/pkgconfig/numa.pc
c7840d
%exclude %{_libdir}/libnuma.a
c7840d
%exclude %{_libdir}/libnuma.la
c7840d
%{_includedir}/numa.h
c7840d
%{_includedir}/numaif.h
c7840d
%{_includedir}/numacompat1.h
c7840d
%{_mandir}/man3/*.3*
c7840d
c7840d
%changelog
2079c3
* Mon Apr  1 2019 Pingfan Liu <piliu@redhat.com> - 2.0.12-3
2079c3
- add gating test cases
2079c3
c7840d
* Mon Nov 26 2018 Pingfan Liu <piliu@redhat.com> - 2.0.12-2
c7840d
- Fix: Add ShmemHugePages and ShmemPmdMapped to system_meminfo[]
c7840d
c7840d
* Mon Nov 5 2018 Pingfan Liu <piliu@redhat.com> - 2.0.12-1
c7840d
- Rebase to 2.0.12
c7840d
c7840d
* Fri Aug 10 2018 Lianbo Jiang <lijiang@redhat.com> - 2.0.11-8%{dist}
c7840d
- Fix compilation error (bz1611734)
c7840d
c7840d
* Sat Feb 24 2018 Florian Weimer <fweimer@redhat.com> - 2.0.11-8%{dist}
c7840d
- Use LDFLAGS from redhat-rpm-config
c7840d
c7840d
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.11-7
c7840d
- Escape macros in %%changelog
c7840d
c7840d
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.11-6
c7840d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c7840d
c7840d
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.11-5
c7840d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
c7840d
c7840d
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.11-4
c7840d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c7840d
c7840d
* Mon Feb 06 2017 Petr Holasek <holasekp@gmail.com> - 2.0.11-3
c7840d
- s390x arch enabled (bz1419064)
c7840d
c7840d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.11-2
c7840d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c7840d
c7840d
* Mon Dec 14 2015 Petr Holasek <pholasek@redhat.com> - 2.0.11-1
c7840d
- Rebased to version 2.0.11 (bz1290941)
c7840d
c7840d
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.10-3
c7840d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c7840d
c7840d
* Mon Oct 13 2014 Petr Holasek <pholasek@redhat.com> 2.0.10-2
c7840d
- Fixing package conflict with man-pages (bz1151552)
c7840d
c7840d
* Wed Oct 08 2014 Petr Holasek <pholasek@redhat.com> 2.0.10-1
c7840d
- Rebased to version 2.0.10 (bz1150511)
c7840d
c7840d
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.9-4
c7840d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
c7840d
c7840d
* Thu Jul 31 2014 Petr Holasek <pholasek@redhat.com> 2.0.9-3
c7840d
- fixed segfault on non-NUMA systems (bz1080421)
c7840d
c7840d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.9-2
c7840d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c7840d
c7840d
* Wed Oct 09 2013 Petr Holasek <pholasek@redhat.com> 2.0.9-1
c7840d
- rebased to version 2.0.9
c7840d
c7840d
* Fri Aug 02 2013 Karsten Hopp <karsten@redhat.com> 2.0.8-4
c7840d
- rebuild in F20 to fix some dependency issues on PPC
c7840d
c7840d
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.8-4
c7840d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c7840d
c7840d
* Tue Jan 22 2013 Petr Holasek <pholasek@redhat.com> - 2.0.8-3
c7840d
- deleted empty numastat file
c7840d
c7840d
* Thu Nov  1 2012 Tom Callaway <spot@fedoraproject.org> - 2.0.8-2
c7840d
- fix license issues
c7840d
c7840d
* Fri Oct 26 2012 Petr Holasek <pholasek@redhat.com> - 2.0.8-1
c7840d
- Rebased to version 2.0.8
c7840d
c7840d
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.7-7
c7840d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c7840d
c7840d
* Sat May 19 2012 Petr Holasek <pholasek@redhat.com> - 2.0.7-6
c7840d
- numademo segfault fix (bz823125, bz823127)
c7840d
c7840d
* Sun Apr 15 2012 Petr Holasek <pholasek@redhat.com> - 2.0.7-5
c7840d
- Library splitted out of numactl package to numactl-libs
c7840d
c7840d
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.7-4
c7840d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c7840d
c7840d
* Mon Jan 02 2012 Anton Arapov <anton@redhat.com> - 2.0.7-3
c7840d
- Include missing manpages
c7840d
c7840d
* Sat Jun 18 2011 Peter Robinson <pbrobinson@gmail.com> - 2.0.7-2
c7840d
- Exclude ARM platforms
c7840d
c7840d
* Fri Apr 15 2011 Anton Arapov <anton@redhat.com> - 2.0.7-1
c7840d
- Update to latest upstream stable version (bz 696703)
c7840d
c7840d
* Tue Mar 22 2011 Anton Arapov <anton@redhat.com> - 2.0.6-2
c7840d
- Better manpages (bz 673613)
c7840d
c7840d
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.6-2
c7840d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c7840d
c7840d
* Tue Jan 04 2011 Neil Horman <nhorman@redhat.com> - 2.0.6-1
c7840d
- Update to latest upstream stable version (bz 666379)
c7840d
c7840d
* Mon Oct 18 2010 Neil Horman <nhorman@redhat.com> - 2.0.5-1
c7840d
- Update to latest stable upstream source
c7840d
c7840d
* Mon Feb 15 2010 Neil Horman <nhorman@redhat.com> - 2.0.3-8
c7840d
- Remove static libs from numactl (bz 556088)
c7840d
c7840d
* Mon Aug 10 2009 Neil Horman <nhorman@redhat.com> - 2.0.3-7
c7840d
- Add destructor to libnuma.so to free allocated memory (bz 516227)
c7840d
c7840d
* Mon Aug 10 2009 Neil Horman <nhorman@redhat.com> - 2.0.3-6
c7840d
- Fix obo in nodes_allowed_list strncpy (bz 516223)
c7840d
c7840d
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-5
c7840d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
c7840d
c7840d
* Fri Jun 26 2009 Neil Horman <nhorman@redhat.com>
c7840d
- Update to full 2.0.3 version (bz 506795)
c7840d
c7840d
* Wed Jun 17 2009 Neil Horman <nhorman@redhat.com>
c7840d
- Fix silly libnuma warnings again (bz 499633)
c7840d
c7840d
* Fri May 08 2009 Neil Horman <nhorman@redhat.com>
c7840d
- Update to 2.0.3-rc3 (bz 499633)
c7840d
c7840d
* Wed Mar 25 2009 Mark McLoughlin <markmc@redhat.com> - 2.0.2-4
c7840d
- Remove warning from libnuma (bz 484552)
c7840d
c7840d
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2-3
c7840d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
c7840d
c7840d
* Mon Sep 29 2008 Neil Horman <nhorman@redhat.com> - 2.0.2-2
c7840d
- Fix build break due to register selection in asm
c7840d
c7840d
* Mon Sep 29 2008 Neil Horman <nhorman@redhat.com> - 2.0.2-1
c7840d
- Update rawhide to version 2.0.2 of numactl
c7840d
c7840d
* Fri Apr 25 2008 Neil Horman <nhorman@redhat.com> - 1.0.2-6
c7840d
- Fix buffer size passing and arg sanity check for physcpubind (bz 442521)
c7840d
c7840d
* Fri Mar 14 2008 Neil Horman <nhorman@redhat.com> - 1.0.2-5
c7840d
- Fixing spec file to actually apply alpha patch :)
c7840d
c7840d
* Fri Mar 14 2008 Neil Horman <nhorman@redhat.com> - 1.0.2-4
c7840d
- Add alpha syscalls (bz 396361)
c7840d
c7840d
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.2-3
c7840d
- Autorebuild for GCC 4.3
c7840d
c7840d
* Thu Dec 20 2007 Neil Horman <nhorman@redhat.com> - 1.0.2-1
c7840d
- Update numactl to fix get_mempolicy signature (bz 418551)
c7840d
c7840d
* Fri Dec 14 2007 Neil Horman <nhorman@redhat.com> - 1.0.2-1
c7840d
- Update numactl to latest version (bz 425281)
c7840d
c7840d
* Tue Aug 07 2007 Neil Horman <nhorman@redhat.com> - 0.9.8-4
c7840d
- Fixing some remaining merge review issues (bz 226207)
c7840d
c7840d
* Fri Aug 03 2007 Neil Horman <nhorman@redhat.com> - 0.9.8-3
c7840d
- fixing up merge review (bz 226207)
c7840d
c7840d
* Fri Jan 12 2007 Neil Horman <nhorman@redhat.com> - 0.9.8-2
c7840d
- Properly fixed bz 221982
c7840d
- Updated revision string to include %%{dist}
c7840d
c7840d
* Thu Jan 11 2007 Neil Horman <nhorman@redhat.com> - 0.9.8-1.38
c7840d
- Fixed -devel to depend on base package so libnuma.so resolves
c7840d
c7840d
* Thu Sep 21 2006 Neil Horman <nhorman@redhat.com> - 0.9.8-1.36
c7840d
- adding nodebind patch for bz 207404
c7840d
c7840d
* Fri Aug 25 2006 Neil Horman <nhorman@redhat.com> - 0.9.8-1.35
c7840d
- moving over libnuma.so to -devel package as well
c7840d
c7840d
* Fri Aug 25 2006 Neil Horman <nhorman@redhat.com> - 0.9.8-1.34
c7840d
- split out headers/devel man pages to a devel subpackage
c7840d
c7840d
* Tue Aug 15 2006 Neil Horman <nhorman@redhat.com> - 0.9.8-1.32
c7840d
- add patch for broken cpu/nodebind output (bz 201906)
c7840d
c7840d
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.9.8-1.31
c7840d
- rebuild
c7840d
c7840d
* Tue Jun 13 2006 Neil Horman <nhorman@redhat.com>
c7840d
- Rebased numactl to version 0.9.8 for FC6/RHEL5
c7840d
c7840d
* Wed Apr 26 2006 Neil Horman <nhorman@redhat.com>
c7840d
- Added patches for 64 bit overflows and cpu mask problem
c7840d
c7840d
* Fri Mar 10 2006 Bill Nottingham <notting@redhat.com>
c7840d
- rebuild for ppc TLS issue (#184446)
c7840d
c7840d
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.6.4-1.25.2
c7840d
- bump again for double-long bug on ppc(64)
c7840d
c7840d
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com>
c7840d
- rebuilt for new gcc4.1 snapshot and glibc changes
c7840d
c7840d
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
c7840d
- rebuilt
c7840d
c7840d
* Thu Jul  7 2005 Dave Jones <davej@redhat.com>
c7840d
- numactl doesn't own the manpage dirs. (#161547)
c7840d
c7840d
* Tue Mar  1 2005 Dave Jones <davej@redhat.com>
c7840d
- Rebuild for gcc4
c7840d
c7840d
* Tue Feb  8 2005 Dave Jones <davej@redhat.com>
c7840d
- rebuild with -D_FORTIFY_SOURCE=2
c7840d
c7840d
* Wed Nov 10 2004 David Woodhouse <dwmw2@redhat.com>
c7840d
- Fix build on x86_64
c7840d
c7840d
* Thu Oct 21 2004 David Woodhouse <dwmw2@redhat.com>
c7840d
- Add PPC support
c7840d
c7840d
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
c7840d
- rebuilt
c7840d
c7840d
* Sat Jun 05 2004 Warren Togami <wtogami@redhat.com> 
c7840d
- spec cleanup
c7840d
c7840d
* Sat Jun 05 2004 Arjan van de Ven <arjanv@redhat.com>
c7840d
- initial packaging
c7840d