Package init
This commit is contained in:
commit
bffaffdd25
21
numad-0.5git-m-option.patch
Normal file
21
numad-0.5git-m-option.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
Resolves: #1506477
|
||||||
|
|
||||||
|
commit cf6c2c029edc9c288122bcd603a72eb7f6d042d2
|
||||||
|
Author: Jan Synacek <jsynacek@redhat.com>
|
||||||
|
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;
|
||||||
BIN
numad-0.5git.tar.xz
Normal file
BIN
numad-0.5git.tar.xz
Normal file
Binary file not shown.
64
numad.spec
Normal file
64
numad.spec
Normal file
@ -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<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
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user