Browse Source

numad package update

Signed-off-by: basebuilder_pel7ppc64bebuilder0 <basebuilder@powerel.org>
master
basebuilder_pel7ppc64bebuilder0 7 years ago
parent
commit
963d776336
  1. 21
      SOURCES/numad-0.5git-m-option.patch
  2. 17
      SOURCES/numad-0.5git-pthread.patch
  3. 2255
      SOURCES/numad-0.5git-update-20140225.patch
  4. 2639
      SOURCES/numad-0.5git-version.patch
  5. 8
      SOURCES/numad.logrotate
  6. 135
      SPECS/numad.spec

21
SOURCES/numad-0.5git-m-option.patch

@ -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;

17
SOURCES/numad-0.5git-pthread.patch

@ -0,0 +1,17 @@
Remove linked libraries from Makefile. They break rebuilds from srpms on some
architectures. The linker flags are supplied from the spec.

Author: Jan Synacek <jsynacek@redhat.com>
RH-Bugzilla: #825153

--- Makefile.orig 2012-09-11 08:29:18.965821127 +0200
+++ Makefile 2012-09-11 08:29:29.391803358 +0200
@@ -31,7 +31,7 @@

all: numad

-numad: numad.o -lpthread -lrt
+numad: numad.o

AR ?= ar
RANLIB ?= ranlib

2255
SOURCES/numad-0.5git-update-20140225.patch

File diff suppressed because it is too large Load Diff

2639
SOURCES/numad-0.5git-version.patch

File diff suppressed because it is too large Load Diff

8
SOURCES/numad.logrotate

@ -0,0 +1,8 @@
/var/log/numad.log {
compress
copytruncate
maxage 60
missingok
rotate 5
size 1M
}

135
SPECS/numad.spec

@ -0,0 +1,135 @@
%global systemctl_bin /usr/bin/systemctl
%global _hardened_build 1

Name: numad
Version: 0.5
Release: 18.20150602git%{?dist}
Summary: NUMA user daemon

License: LGPLv2
Group: System Environment/Daemons
URL: http://git.fedorahosted.org/git/?p=numad.git
# The source for this package was pulled from upstream's vcs. Use the
# following commands to generate the tarball:
# git clone git://git.fedorahosted.org/numad.git numad-0.5git
# tar --exclude-vcs -cJf numad-0.5git.tar.xz numad-0.5git/
Source0: %{name}-%{version}git.tar.xz
Source1: %{name}.logrotate
Patch0: numad-0.5git-pthread.patch
Patch1: numad-0.5git-version.patch
Patch2: numad-0.5git-m-option.patch

Requires: systemd-units, initscripts
Requires(post): systemd-units, initscripts
Requires(preun): systemd-units, initscripts
BuildRequires: systemd-units

ExcludeArch: s390 s390x %{arm}

%description
Numad, a daemon for NUMA (Non-Uniform Memory Architecture) systems,
that monitors NUMA characteristics and manages placement of processes
and memory to minimize memory latency and thus provide optimum performance.

%prep
%setup -q -n %{name}-%{version}git
%patch0 -p0
%patch1 -p1
%patch2 -p1

%build
make CFLAGS="$RPM_OPT_FLAGS -std=gnu99" LDFLAGS="$RPM_LD_FLAGS -lpthread -lrt -lm"

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_mandir}/man8/
install -p -m 644 numad.conf %{buildroot}%{_sysconfdir}/
install -p -m 644 numad.service %{buildroot}%{_unitdir}/
install -p -m 644 %SOURCE1 %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
make install prefix=%{buildroot}/usr

%files
%{_bindir}/numad
%{_unitdir}/numad.service
%config(noreplace) %{_sysconfdir}/numad.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/numad
%doc %{_mandir}/man8/numad.8.gz

%post
%systemd_post numad.service

%preun
%systemd_preun numad.service

%postun
%systemd_postun numad.service

%changelog
* Mon Oct 30 2017 Jan Synáček <jsynacek@redhat.com> - 0.5-18.20150602git
- Fix -m option (#1506477)

* Tue Aug 30 2016 Jan Synáček <jsynacek@redhat.com> - 0.5-17.20150602git
- Fix the version patch (#1281711)

* Mon Jul 11 2016 Jan Synáček <jsynacek@redhat.com> - 0.5-16.20150602git
- Version update (#1281711 #1238614 #1235164)

* Thu May 26 2016 Jan Synáček <jsynacek@redhat.com> - 0.5-15.20140620git
- Harden the build (#1092544)

* Fri Sep 5 2014 Jan Synáček <jsynacek@redhat.com> - 0.5-14.20140620git
- Version update
- Resolves: #1112109

* Wed Mar 26 2014 Jan Synáček <jsynacek@redhat.com> - 0.5-13.20140225git
- Build with $RPM_OPT_FLAGS and $RPM_LD_FLAGS
- Resolves: #1070781

* Fri Feb 28 2014 Jan Synáček <jsynacek@redhat.com> - 0.5-12.20140225git
- Update source (20140225) and manpage
- Add logrotate config
- Resolves: #853232

* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.5-11.20121130git
- Mass rebuild 2013-12-27

* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-10.20121130git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Tue Dec 11 2012 Jan Synáček <jsynacek@redhat.com> - 0.5-9.20121130git
- Update and comment the Makefile patch
- Related: #825153

* Mon Dec 03 2012 Jan Synáček <jsynacek@redhat.com> - 0.5-8.20121130git
- Update to 20121130
- Update spec: fix command to generate tarball

* Tue Oct 16 2012 Jan Synáček <jsynacek@redhat.com> - 0.5-7.20121015git
- Update to 20121015
- Add Makefile patch
- Update spec: update command to generate tarball

* Wed Aug 22 2012 Jan Synáček <jsynacek@redhat.com> - 0.5-6.20120522git
- add systemd-rpm macros
- Resolves: #850236

* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-5.20120522git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Wed May 23 2012 Jan Synáček <jsynacek@redhat.com> - 0.5-4.20120522git
- update source (20120522) and manpage

* Tue Mar 06 2012 Jan Synáček <jsynacek@redhat.com> 0.5-3.20120221git
- update source
- drop the patch

* Fri Feb 24 2012 Jan Synáček <jsynacek@redhat.com> 0.5-2.20120221git
- add BuildRequires: systemd-units

* Wed Feb 15 2012 Jan Synáček <jsynacek@redhat.com> 0.5-1.20120221git
- spec update

* Fri Feb 10 2012 Bill Burns <bburns@redhat.com> 0.5-1
- initial version
Loading…
Cancel
Save