2019-09-30 11:10:24 -04:00
|
|
|
Name: numad
|
|
|
|
|
Version: 0.5
|
2022-09-01 15:07:05 +08:00
|
|
|
Release: 33
|
2019-09-30 11:10:24 -04:00
|
|
|
Summary: NUMA user daemon
|
|
|
|
|
License: LGPLv2
|
|
|
|
|
URL: https://pagure.io/numad
|
|
|
|
|
Source0: %{name}-%{version}git.tar.xz
|
|
|
|
|
|
2022-09-01 15:07:05 +08:00
|
|
|
Recommends: %{name}-help = %{version}-%{release}
|
2019-09-30 11:10:24 -04:00
|
|
|
BuildRequires: systemd-units gcc git
|
|
|
|
|
Requires: systemd-units
|
2019-12-25 15:59:35 +08:00
|
|
|
Requires(post): systemd-units
|
|
|
|
|
Requires(preun): systemd-units
|
2019-09-30 11:10:24 -04:00
|
|
|
|
|
|
|
|
Patch0: numad-0.5git-m-option.patch
|
2022-09-01 14:21:09 +08:00
|
|
|
Patch1: avoid-array-index-out-of-bounds.patch
|
2019-09-30 11:10:24 -04:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Numad is a deamon that monitors NUMA topology and usage and distributes
|
|
|
|
|
loads for good locality for the purpose of providing the best performance,
|
|
|
|
|
by avoiding unnecessary latency.
|
|
|
|
|
|
|
|
|
|
%package help
|
|
|
|
|
Summary: Help files for %{name}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%description help
|
|
|
|
|
Help files for %{name}.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{name}-%{version}git -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
make CFLAGS="$RPM_OPT_FLAGS -std=gnu99" LDFLAGS="$RPM_LD_FLAGS -lpthread -lrt -lm"
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install prefix=%{buildroot}/usr
|
|
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
|
|
|
|
|
install -m 644 numad.service %{buildroot}%{_unitdir}/
|
|
|
|
|
install -m 644 numad.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%{_bindir}/*
|
|
|
|
|
%{_unitdir}/numad.service
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/numad
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%doc %{_mandir}/man8/*
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%systemd_post numad.service
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
%systemd_preun numad.service
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%systemd_postun numad.service
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-09-01 15:07:05 +08:00
|
|
|
* Thu Sep 1 2022 Chunsheng Luo<luochunsheng@huawei.com> - 0.5-33
|
|
|
|
|
- Add help for Recommends
|
|
|
|
|
|
2022-09-01 14:21:09 +08:00
|
|
|
* Thu Sep 1 2022 Chunsheng Luo<luochunsheng@huawei.com> - 0.5-32
|
|
|
|
|
- Fix array index out-of-bounds
|
|
|
|
|
|
2019-12-25 15:59:35 +08:00
|
|
|
* Fri Dec 20 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.5-31
|
|
|
|
|
- Add missing post/pre requires
|
|
|
|
|
|
2019-09-30 11:10:24 -04:00
|
|
|
* Thu Mar 7 2019 Feilong Lin<linfielong@huawei.com> - 0.5-30
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: fix m option
|
|
|
|
|
|
|
|
|
|
* Mon Sep 10 2018 openEuler Buildteam <buildteam@openeuler.org> - 0.5-29
|
|
|
|
|
- Package init
|
|
|
|
|
|