commit 4cc1990a41e4e70988408a8974576481cf03ade4 Author: MSVSphere Packaging Team Date: Tue Nov 26 17:38:31 2024 +0300 import numatop-2.3-10.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c1720a2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/v2.3.tar.gz diff --git a/.numatop.metadata b/.numatop.metadata new file mode 100644 index 0000000..586dd74 --- /dev/null +++ b/.numatop.metadata @@ -0,0 +1 @@ +e7f08bb2a29a841eca00aff37a14987c84de1b56 SOURCES/v2.3.tar.gz diff --git a/SOURCES/format.patch b/SOURCES/format.patch new file mode 100644 index 0000000..12a87c0 --- /dev/null +++ b/SOURCES/format.patch @@ -0,0 +1,36 @@ +--- numatop-2.2/common/os/os_util.c 2021-09-08 04:29:54.000000000 +0200 ++++ numatop-2.2/common/os/os_util.c 2022-08-13 15:24:06.607330278 +0200 +@@ -387,12 +387,10 @@ + int len = strlen(str); + boolean_t ret = B_FALSE; + +- if ((scopy = malloc(len + 1)) == NULL) { ++ if ((scopy = strdup(str)) == NULL) { + return (B_FALSE); + } + +- strncpy(scopy, str, len); +- scopy[len] = 0; + cur = scopy; + + while (cur < (scopy + len)) { +--- numatop-2.2/common/reg.c 2021-09-08 04:29:54.000000000 +0200 ++++ numatop-2.2/common/reg.c 2022-08-13 16:16:12.060462958 +0200 +@@ -240,7 +240,7 @@ + } + + if (len > 0) { +- (void) mvwprintw(r->hdl, line, pos_x, content); ++ (void) mvwprintw(r->hdl, line, pos_x, "%s", content); + } + + if (r->mode != 0) { +@@ -267,7 +267,7 @@ + } + + if (len > 0) { +- (void) mvwprintw(r->hdl, line, pos_x, content); ++ (void) mvwprintw(r->hdl, line, pos_x, "%s", content); + } + + (void) wattroff(r->hdl, A_REVERSE | A_BOLD); diff --git a/SPECS/numatop.spec b/SPECS/numatop.spec new file mode 100644 index 0000000..89fbb64 --- /dev/null +++ b/SPECS/numatop.spec @@ -0,0 +1,201 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.6.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 10; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +# https://github.com/intel/numatop/pull/53 +%undefine _ld_as_needed + +Name: numatop +Version: 2.3 +Release: %autorelease +Summary: Memory access locality characterization and analysis + +License: BSD-3-Clause +URL: https://01.org/numatop +Source: https://github.com/intel/numatop/archive/refs/tags/v%{version}.tar.gz +Patch0: format.patch + +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: make +BuildRequires: libtool +BuildRequires: gcc +BuildRequires: check-devel +BuildRequires: ncurses-devel +BuildRequires: numactl-devel + +# This only works for Intel and Power CPUs +ExclusiveArch: x86_64 ppc64le + + + + +%description +NumaTOP is an observation tool for runtime memory locality characterization and +analysis of processes and threads running on a NUMA system. It helps the user +characterize the NUMA behavior of processes and threads and identify where the +NUMA-related performance bottlenecks reside. + +NumaTOP supports the Intel Xeon processors and PowerPC processors. + + +%prep +%autosetup -p1 + + +%build +autoreconf --force --install --symlink +%configure +%make_build + + +%install +%make_install + + +%check +%make_build check + + +%files +%doc AUTHORS +%license COPYING +%{_bindir}/%{name} +%{_mandir}/man8/%{name}.8* + + +%changelog +* Tue Nov 26 2024 MSVSphere Packaging Team - 2.3-10 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Mon Jul 22 2024 Pingfan Liu - 2.3-10 +- New release to trigger CI + +* Thu Jul 18 2024 Pingfan Liu - 2.3-9 +- New release to trigger CI + +* Mon Jun 24 2024 Troy Dawson - 2.3-8 +- Bump release for June 2024 mass rebuild + +* Tue May 07 2024 Pingfan Liu - 2.3-7 +- add gating.yaml + +* Thu Jan 25 2024 Fedora Release Engineering - 2.3-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 2.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jul 20 2023 Fedora Release Engineering - 2.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Feb 17 2023 Dridi Boukelmoune - 2.3-3 +- Migrated to SPDX license + +* Thu Jan 19 2023 Fedora Release Engineering - 2.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Thu Dec 22 2022 Dridi Boukelmoune - 2.3-1 +- Update to 2.3 + +* Thu Jul 22 2021 Fedora Release Engineering - 2.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jan 26 2021 Fedora Release Engineering - 2.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 2.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jan 29 2020 Fedora Release Engineering - 2.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jul 25 2019 Fedora Release Engineering - 2.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Mar 23 2019 Dridi Boukelmoune - 2.1-1 +- Update to 2.1 +- Upstream moved to github +- Upstream switched to autotools +- Disable --as-needed until it's patched upstream +- Drop defunct 32bit x86 support +- Add ppc64le support +- Run the new test suite + +* Fri Feb 01 2019 Fedora Release Engineering - 1.0.4-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sun Jul 15 2018 Dridi Boukelmoune - 1.0.4-8 +- Build requires gcc + +* Fri Jul 13 2018 Fedora Release Engineering - 1.0.4-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Feb 08 2018 Fedora Release Engineering - 1.0.4-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 1.0.4-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 1.0.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Mon Feb 13 2017 Dridi Boukelmoune - 1.0.4-3 +- Catch up with packaging guidelines + +* Sat Feb 11 2017 Fedora Release Engineering - 1.0.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Tue Jun 28 2016 Zbigniew Jędrzejewski-Szmek - 1.0.4-1 +- Update to latest version (support for BDW-EP/EX) + +* Thu Feb 04 2016 Fedora Release Engineering - 1.0.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Aug 14 2015 Zbigniew Jędrzejewski-Szmek - 1.0.3-3 +- Replace ExcludeArch with ExclusiveArch + +* Wed Jun 17 2015 Fedora Release Engineering - 1.0.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Mon Aug 25 2014 Zbigniew Jędrzejewski-Szmek - 1.0.3-1 +- New upstream release (#1076549) +- Remove upstreamed patch + +* Sun Aug 17 2014 Fedora Release Engineering - 1.0.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Mon Jun 30 2014 Dridi Boukelmoune - 1.0.2-3 +- Backport and rebase 1.0.1 patch + +* Sat Jun 07 2014 Fedora Release Engineering - 1.0.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Mar 16 2014 Dridi Boukelmoune - 1.0.2-1 +- Bump version to 1.0.2 +- Remove upstreamed patch + +* Fri Sep 20 2013 Dan Horák - 1.0.1-5 +- no numa on s390(x) + +* Fri Sep 13 2013 Dridi Boukelmoune - 1.0.1-4 +- Patch for the 32bit hardened build. + +* Sun Aug 25 2013 Dridi Boukelmoune - 1.0.1-3 +- Hardened build. +- Automatic requires. + +* Fri Aug 02 2013 Dridi Boukelmoune - 1.0.1-2 +- Fix the license tag. + +* Thu Aug 01 2013 Dridi Boukelmoune - 1.0.1-1 +- Initial spec. + +## END: Generated by rpmautospec