numactl/numactl.spec

91 lines
2.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package numactl
#
Accepting request 1142709 from home:trenn:branches:Base:System - Update to version 2.0.17.4.g63befa8: * Fix CodeQl Warn: Wrong type of arguments to formatting function * libnuma: Fix incorrect print and exit of numa_preferred/_many APIs * libnuma: Fix unexpected output * Fix README.md * Increase version number * Fix build badge * Fix README.md * Update README.md * Add configure file for release * Fix unused function return warning in numastat * fix complain() fuction print newline * Document that numa_police_memory may cause data races * Add numastat_diff from jirka-h * Enable v1 compatibility for unused getnodemask test * libnuma: Handle initialization without sysfs * Support empty memory nodes * numactl: Add --version option to print version * Remove obsolete numamon file * numactl: Use standard tab indent for print_node_cpus * Avoid using /proc/cpuinfo in test suite * numact: Add --cpu-compress option * Pin release workflow script to minimize risk of supply chain attacks * move_pages: Fix warning (missing hunk from earlier revert) * numastat: Remove unused functions * distance: Remove unused variable (NFC) * numademo: Adjust memcpy test bandwidth calculation * numactl.c: Refactor print_node_cpus to display CPU ranges * numactl.c: Refactor print_node_cpus to display CPU ranges * numactl.c: Refactor print_node_cpus to display CPU ranges OBS-URL: https://build.opensuse.org/request/show/1142709 OBS-URL: https://build.opensuse.org/package/show/Base:System/numactl?expand=0&rev=102
2024-01-30 09:18:47 +01:00
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: numactl
Version: 2.0.18.0.g3871b1c
Release: 0
Summary: NUMA Policy Control
License: GPL-2.0-only
Group: System/Management
Accepting request 763347 from home:StefanBruens:branches:Base:System - Update to version 2.0.13: * Release numactl 2.0.13 * Skip `test/move_pages` if we don't have at least two nodes available * Add license files: GPLv2 + LGPLv2.1 * Handle cpu-less node for bind_range test * Convert numastat.c to standard numactl coding style * Disable clang travis targets for now * numastat.8: clarify that information relates to resident pages * Fix all declarations to be C prototypes * numatopology: Add check for cpu-less nodes * Update INSTALL.md * numastat: when reading no-exist pid, return EXIT_FAILURE * numastat: Add KReclaimable to list of known fields in meminfo * numastat: Better diagnostic when find unknown string in meminfo * Enable building on s390x * Correct sysconf constants * Removed unnecessary exit from memhog.c Solves issue #50 * Synchronized usage function with man page * Added memhog.8 to Makefile.am * memhog: add man page * Allow linking with lld by deduplicating symbols * numademo: free the node_to_use on the way out * numademo: free test nodemask * libnuma: cleanup node cpu mask in destructor * numactl: add va_end to usage function * travis: add build matrix * remove kernel version check * add missing linux version header * make MPOL_ macros match linux kernel * add missing policy * Fix: Add ShmemHugePages and ShmemPmdMapped to system_meminfo[] * Fix: move_pages test for non-contiguous nodes * Correct calculation of nr_nodes and re-enable move_pages test * Fix: regress test numastat function and few test fixes * Fix: distance test to include all existing nodes * numademo: fix wrong node input * Fix: node_list with memory-less nodes - Drop autoconf/libtool BuildRequires and autoreconf invocation, bundled configure is up-to-date. - Drop obsolete revert_date_in_numastat.patch, gcc sets __DATE__ based on SOURCE_DATE_EPOCH now. - Correct License for devel subpackage, same as for the library (LGPL-2.1-or-later). OBS-URL: https://build.opensuse.org/request/show/763347 OBS-URL: https://build.opensuse.org/package/show/Base:System/numactl?expand=0&rev=79
2020-01-14 08:27:21 +01:00
URL: https://github.com/numactl/numactl/releases
Source0: %{name}-%{version}.tar.gz
Source2: baselibs.conf
# PATCH-FIX-OPENSUSE -- Avoid segfault when no node can be found in sysfs
Patch1: 0001-Fixed-segfault-when-no-node-could-be-found-in-sysfs-.patch
Patch2: numactl-clearcache-pie.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
%description
Control NUMA policy for individual processes. Offer libnuma for
individual NUMA policy in applications.
%package -n libnuma1
Summary: NUMA Policy Control
License: LGPL-2.1-or-later
Group: Development/Languages/C and C++
%description -n libnuma1
Control NUMA policy for individual processes. Offer libnuma for
individual NUMA policy in applications.
%package -n libnuma-devel
Summary: NUMA Policy Control
Accepting request 763347 from home:StefanBruens:branches:Base:System - Update to version 2.0.13: * Release numactl 2.0.13 * Skip `test/move_pages` if we don't have at least two nodes available * Add license files: GPLv2 + LGPLv2.1 * Handle cpu-less node for bind_range test * Convert numastat.c to standard numactl coding style * Disable clang travis targets for now * numastat.8: clarify that information relates to resident pages * Fix all declarations to be C prototypes * numatopology: Add check for cpu-less nodes * Update INSTALL.md * numastat: when reading no-exist pid, return EXIT_FAILURE * numastat: Add KReclaimable to list of known fields in meminfo * numastat: Better diagnostic when find unknown string in meminfo * Enable building on s390x * Correct sysconf constants * Removed unnecessary exit from memhog.c Solves issue #50 * Synchronized usage function with man page * Added memhog.8 to Makefile.am * memhog: add man page * Allow linking with lld by deduplicating symbols * numademo: free the node_to_use on the way out * numademo: free test nodemask * libnuma: cleanup node cpu mask in destructor * numactl: add va_end to usage function * travis: add build matrix * remove kernel version check * add missing linux version header * make MPOL_ macros match linux kernel * add missing policy * Fix: Add ShmemHugePages and ShmemPmdMapped to system_meminfo[] * Fix: move_pages test for non-contiguous nodes * Correct calculation of nr_nodes and re-enable move_pages test * Fix: regress test numastat function and few test fixes * Fix: distance test to include all existing nodes * numademo: fix wrong node input * Fix: node_list with memory-less nodes - Drop autoconf/libtool BuildRequires and autoreconf invocation, bundled configure is up-to-date. - Drop obsolete revert_date_in_numastat.patch, gcc sets __DATE__ based on SOURCE_DATE_EPOCH now. - Correct License for devel subpackage, same as for the library (LGPL-2.1-or-later). OBS-URL: https://build.opensuse.org/request/show/763347 OBS-URL: https://build.opensuse.org/package/show/Base:System/numactl?expand=0&rev=79
2020-01-14 08:27:21 +01:00
License: LGPL-2.1-or-later
Group: Development/Languages/C and C++
Requires: libnuma1 = %{version}
%description -n libnuma-devel
Control NUMA policy for individual processes. Offer libnuma for
individual NUMA policy in applications.
%prep
%autosetup -p1
%build
./autogen.sh
%configure \
--disable-static
Accepting request 763347 from home:StefanBruens:branches:Base:System - Update to version 2.0.13: * Release numactl 2.0.13 * Skip `test/move_pages` if we don't have at least two nodes available * Add license files: GPLv2 + LGPLv2.1 * Handle cpu-less node for bind_range test * Convert numastat.c to standard numactl coding style * Disable clang travis targets for now * numastat.8: clarify that information relates to resident pages * Fix all declarations to be C prototypes * numatopology: Add check for cpu-less nodes * Update INSTALL.md * numastat: when reading no-exist pid, return EXIT_FAILURE * numastat: Add KReclaimable to list of known fields in meminfo * numastat: Better diagnostic when find unknown string in meminfo * Enable building on s390x * Correct sysconf constants * Removed unnecessary exit from memhog.c Solves issue #50 * Synchronized usage function with man page * Added memhog.8 to Makefile.am * memhog: add man page * Allow linking with lld by deduplicating symbols * numademo: free the node_to_use on the way out * numademo: free test nodemask * libnuma: cleanup node cpu mask in destructor * numactl: add va_end to usage function * travis: add build matrix * remove kernel version check * add missing linux version header * make MPOL_ macros match linux kernel * add missing policy * Fix: Add ShmemHugePages and ShmemPmdMapped to system_meminfo[] * Fix: move_pages test for non-contiguous nodes * Correct calculation of nr_nodes and re-enable move_pages test * Fix: regress test numastat function and few test fixes * Fix: distance test to include all existing nodes * numademo: fix wrong node input * Fix: node_list with memory-less nodes - Drop autoconf/libtool BuildRequires and autoreconf invocation, bundled configure is up-to-date. - Drop obsolete revert_date_in_numastat.patch, gcc sets __DATE__ based on SOURCE_DATE_EPOCH now. - Correct License for devel subpackage, same as for the library (LGPL-2.1-or-later). OBS-URL: https://build.opensuse.org/request/show/763347 OBS-URL: https://build.opensuse.org/package/show/Base:System/numactl?expand=0&rev=79
2020-01-14 08:27:21 +01:00
make %{?_smp_mflags} CFLAGS="%{optflags}" V=1
%install
%make_install
rm %{buildroot}%{_mandir}/man2/move_pages.2*
Accepting request 1082651 from home:trenn:branches:Base:System - Update to version 2.0.16.21.g693fee1: * fix typo * Add fuzzer for OSS-Fuzz integration * numactl.c: Fix merging of neighboring pages' policies in dump_shm * memhog: Update memhog usage * feat: Add minimum permissions to makefile.yml * feat: Add minimum permissions to cut-release.yml * feat: Add minimum permissions to codeql.yml - jsc#PED-3367 - Remove unneeded defattr(root,root) statements from spec file from dmueller - Replace deletion of *.la files with a more general version from dmueller - Update to version 2.0.16.14.gc09fefd: * numactl.c: Remove unused variable * shm.c: Replace stat64/fstat64/ftruncate64mmap64 with normal functions * configure: Check for largefile support * numastat: Update system hugepages memory info from sysfs/node/hugepages directory * numastat: statistical errors occur when huge pages is used * fix wrong nodemask_sz when CONFIG_NODES_SHIFT is less than 5 * libnuma: clear errno at the end of numa_init * numastat: Add SwapCached to list of known fields in meminfo * numastat: Add SecPageTables to list of known fields in meminfo * numastat: Add ShadowCallStack to list of known fields in meminfo * numastat: Add FileHugePages/FilePmdMapped to list of known fields in meminfo * numactl: 'numactl --length=xxx --shm xxx -px' doesn't work * numactl: Fix shm verfiy for preferred policy * link with -latomic if needed (again ...) * Release numactl 2.0.16 * add cut-release github workflow (#142) * when preferred_many is not supported, fall back to preferred will report error. OBS-URL: https://build.opensuse.org/request/show/1082651 OBS-URL: https://build.opensuse.org/package/show/Base:System/numactl?expand=0&rev=99
2023-04-25 09:48:54 +02:00
find %{buildroot} -type f -name "*.la" -delete -print
%post -n libnuma1 -p /sbin/ldconfig
%postun -n libnuma1 -p /sbin/ldconfig
%files
Accepting request 763347 from home:StefanBruens:branches:Base:System - Update to version 2.0.13: * Release numactl 2.0.13 * Skip `test/move_pages` if we don't have at least two nodes available * Add license files: GPLv2 + LGPLv2.1 * Handle cpu-less node for bind_range test * Convert numastat.c to standard numactl coding style * Disable clang travis targets for now * numastat.8: clarify that information relates to resident pages * Fix all declarations to be C prototypes * numatopology: Add check for cpu-less nodes * Update INSTALL.md * numastat: when reading no-exist pid, return EXIT_FAILURE * numastat: Add KReclaimable to list of known fields in meminfo * numastat: Better diagnostic when find unknown string in meminfo * Enable building on s390x * Correct sysconf constants * Removed unnecessary exit from memhog.c Solves issue #50 * Synchronized usage function with man page * Added memhog.8 to Makefile.am * memhog: add man page * Allow linking with lld by deduplicating symbols * numademo: free the node_to_use on the way out * numademo: free test nodemask * libnuma: cleanup node cpu mask in destructor * numactl: add va_end to usage function * travis: add build matrix * remove kernel version check * add missing linux version header * make MPOL_ macros match linux kernel * add missing policy * Fix: Add ShmemHugePages and ShmemPmdMapped to system_meminfo[] * Fix: move_pages test for non-contiguous nodes * Correct calculation of nr_nodes and re-enable move_pages test * Fix: regress test numastat function and few test fixes * Fix: distance test to include all existing nodes * numademo: fix wrong node input * Fix: node_list with memory-less nodes - Drop autoconf/libtool BuildRequires and autoreconf invocation, bundled configure is up-to-date. - Drop obsolete revert_date_in_numastat.patch, gcc sets __DATE__ based on SOURCE_DATE_EPOCH now. - Correct License for devel subpackage, same as for the library (LGPL-2.1-or-later). OBS-URL: https://build.opensuse.org/request/show/763347 OBS-URL: https://build.opensuse.org/package/show/Base:System/numactl?expand=0&rev=79
2020-01-14 08:27:21 +01:00
%license LICENSE.GPL2 LICENSE.LGPL2.1
%{_bindir}/*
%{_mandir}/man8/*
%files -n libnuma1
%{_libdir}/lib*so.*
%files -n libnuma-devel
%{_mandir}/man3/*
%{_includedir}/*
%{_libdir}/lib*so
%{_libdir}/pkgconfig/numa.pc
%changelog