commit bffaffdd25b1f77b97ea8acb379d239d1134f087 Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:10:24 2019 -0400 Package init diff --git a/numad-0.5git-m-option.patch b/numad-0.5git-m-option.patch new file mode 100644 index 0000000..8fee75f --- /dev/null +++ b/numad-0.5git-m-option.patch @@ -0,0 +1,21 @@ +Resolves: #1506477 + +commit cf6c2c029edc9c288122bcd603a72eb7f6d042d2 +Author: Jan Synacek +Date: Mon Oct 30 11:37:45 2017 +0100 + + recognize -m option correctly + +diff --git a/numad.c b/numad.c +index 4c85486..0721af4 100644 +--- a/numad.c ++++ b/numad.c +@@ -2395,7 +2395,7 @@ int main(int argc, char *argv[]) { + int x_flag = 0; + int tmp_int = 0; + long list_pid = 0; +- while ((opt = getopt(argc, argv, "C:dD:hH:i:K:l:p:r:R:S:t:u:vVw:x:")) != -1) { ++ while ((opt = getopt(argc, argv, "C:dD:hH:i:K:l:m:p:r:R:S:t:u:vVw:x:")) != -1) { + switch (opt) { + case 'C': + C_flag = 1; diff --git a/numad-0.5git.tar.xz b/numad-0.5git.tar.xz new file mode 100644 index 0000000..859f533 Binary files /dev/null and b/numad-0.5git.tar.xz differ diff --git a/numad.spec b/numad.spec new file mode 100644 index 0000000..db885b8 --- /dev/null +++ b/numad.spec @@ -0,0 +1,64 @@ +Name: numad +Version: 0.5 +Release: 30 +Summary: NUMA user daemon +License: LGPLv2 +URL: https://pagure.io/numad +Source0: %{name}-%{version}git.tar.xz + +BuildRequires: systemd-units gcc git +Requires: systemd-units + +Patch0: numad-0.5git-m-option.patch + +%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 +* Thu Mar 7 2019 Feilong Lin - 0.5-30 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC: fix m option + +* Mon Sep 10 2018 openEuler Buildteam - 0.5-29 +- Package init +