numactl/numactl.spec
Thomas Renninger 6ff588d334 Accepting request 905885 from home:trenn:branches:Base:System
- Enhance _service magic
- Enable automake
- Update to version v2.0.14.17.g498385e:
  * numactl.c: fix use after free
  * sysfs.c: prevent mem leak in sysfs_node_read()
  * sysfs.c: don't leak fd if fail in sysfs_read()
  * shm.c: fix memleak in verify_shm()
  * shm.c: fix memleak in dump_shm()
  * fix description for numa_node_size64 in man as well
  * fix numa_node_size definition in manpage numa.3
  * link with -latomic if needed
  * libnuma: make numa_police_memory() free of race
  * numademo: Use first two nodes instead of node 0 and 1

OBS-URL: https://build.opensuse.org/request/show/905885
OBS-URL: https://build.opensuse.org/package/show/Base:System/numactl?expand=0&rev=91
2021-07-18 19:08:10 +00:00

96 lines
2.6 KiB
RPMSpec

#
# spec file for package numactl
#
# Copyright (c) 2021 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.14.17.g498385e
Release: 0
Summary: NUMA Policy Control
License: GPL-2.0-only
Group: System/Management
URL: https://github.com/numactl/numactl/releases
Source0: https://github.com/numactl/numactl/releases/download/v%{version}/%{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
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
%setup -q
%patch1 -p1
%patch2 -p1
%build
./autogen.sh
%configure \
--disable-static
make %{?_smp_mflags} CFLAGS="%{optflags}" V=1
%install
%make_install
rm %{buildroot}%{_mandir}/man2/move_pages.2*
rm -f %{buildroot}/%{_libdir}/lib*.la
%post -n libnuma1 -p /sbin/ldconfig
%postun -n libnuma1 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%license LICENSE.GPL2 LICENSE.LGPL2.1
%{_bindir}/*
%{_mandir}/man8/*
%files -n libnuma1
%defattr(-,root,root)
%{_libdir}/lib*so.*
%files -n libnuma-devel
%defattr(-,root,root)
%{_mandir}/man3/*
%{_includedir}/*
%{_libdir}/lib*so
%{_libdir}/pkgconfig/numa.pc
%changelog