diff --git a/numactl-2.0.14.tar.gz b/numactl-2.0.14.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..17fe3d394343fdc123830174b7442cb92c40f506 Binary files /dev/null and b/numactl-2.0.14.tar.gz differ diff --git a/numactl.spec b/numactl.spec new file mode 100644 index 0000000000000000000000000000000000000000..5b8b362154661925ffecb931670ee66a4164f8e1 --- /dev/null +++ b/numactl.spec @@ -0,0 +1,77 @@ +%define anolis_release 1 + +Name: numactl +Summary: Library for tuning for Non Uniform Memory Access machines +Version: 2.0.14 +Release: %{anolis_release}%{?dist} +License: GPLv2 +URL: https://github.com/numactl/numactl +Source0: https://github.com/numactl/numactl/releases/download/v%{version}/%{name}-%{version}.tar.gz + +BuildRequires: libtool automake autoconf + +%description +Simple NUMA policy support. It consists of a numactl program to run +other programs with a specific NUMA policy. + +%package libs +Summary: libnuma libraries +License: LGPLv2 and GPLv2 + +%description libs +numactl-libs provides libnuma, a library to do allocations with +NUMA policy in applications. + +%package devel +Summary: Development package for building Applications that use numa +Requires: %{name}-libs = %{version}-%{release} +License: LGPLv2 and GPLv2 + +%description devel +Provides development headers for numa library calls + +%prep +%autosetup + +%build +%configure --prefix=/usr --libdir=%{_libdir} +sed -i -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \ + -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool +%make_build + +%install +rm -rf $RPM_BUILD_ROOT +%make_install + +%ldconfig_scriptlets +%ldconfig_scriptlets libs + +%files +%doc README.md +%{_bindir}/numactl +%{_bindir}/numademo +%{_bindir}/numastat +%{_bindir}/memhog +%{_bindir}/migspeed +%{_bindir}/migratepages +%{_mandir}/man8/*.8* +%exclude %{_mandir}/man2/*.2* + +%files libs +%{_libdir}/libnuma.so.1.0.0 +%{_libdir}/libnuma.so.1 + +%files devel +%{_libdir}/libnuma.so +%exclude %{_libdir}/libnuma.a +%exclude %{_libdir}/libnuma.la +%{_libdir}/pkgconfig/numa.pc +%{_includedir}/numa.h +%{_includedir}/numaif.h +%{_includedir}/numacompat1.h +%{_mandir}/man3/*.3* + +%changelog +* Tue Mar 08 2022 liuzhilin - 2.0.14-1 +- Init for Anolis OS 23 +