From 5d1c8bce2933534b74b9da64cfd4220f7121ea41 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Wed, 3 Nov 2021 19:28:25 -0400 Subject: [PATCH] import numad-0.5-36.20150602git.el9 --- .gitignore | 1 + .numad.metadata | 1 + SOURCES/0000-remove-conf.patch | 22 ++++ SPECS/numad.spec | 183 +++++++++++++++++++++++++++++++++ 4 files changed, 207 insertions(+) create mode 100644 .gitignore create mode 100644 .numad.metadata create mode 100644 SOURCES/0000-remove-conf.patch create mode 100644 SPECS/numad.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ecd3fed --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/numad-0.5git.tar.xz diff --git a/.numad.metadata b/.numad.metadata new file mode 100644 index 0000000..f928d88 --- /dev/null +++ b/.numad.metadata @@ -0,0 +1 @@ +22146cf894b1e9bf662ea98f720a565fd759cb3f SOURCES/numad-0.5git.tar.xz diff --git a/SOURCES/0000-remove-conf.patch b/SOURCES/0000-remove-conf.patch new file mode 100644 index 0000000..670f2f3 --- /dev/null +++ b/SOURCES/0000-remove-conf.patch @@ -0,0 +1,22 @@ +diff -rup numad-0.5git/numad.8 numad-0.5git-new/numad.8 +--- numad-0.5git/numad.8 2015-06-02 13:16:31.000000000 +0200 ++++ numad-0.5git-new/numad.8 2019-03-26 09:20:45.887766101 +0100 +@@ -98,8 +98,7 @@ Sets the time interval that numad waits + <\fImin_interval\fP> is 5 seconds. Setting a <\fImax_interval\fP> of zero will + cause the daemon to exit. (This is the normal mechanism to terminate the + daemon.) A bigger <\fImax_interval\fP> will decrease numad overhead but also +-decrease responsiveness to changing loads. The default numad max_interval can +-be changed in the numad.conf file. ++decrease responsiveness to changing loads. + .TP + \fB\-K\fR <\fI0|1\fP> + This option controls whether numad keeps interleaved memory spread across NUMA +@@ -210,8 +209,6 @@ numad can manage. + .LP + \fI/usr/bin/numad\fP + .br +-\fI/etc/numad.conf\fP +-.br + \fI/var/log/numad.log\fP + .br + \fI/var/run/numad.pid\fP diff --git a/SPECS/numad.spec b/SPECS/numad.spec new file mode 100644 index 0000000..b5e079e --- /dev/null +++ b/SPECS/numad.spec @@ -0,0 +1,183 @@ +%global systemctl_bin /usr/bin/systemctl + +Name: numad +Version: 0.5 +Release: 36.20150602git%{?dist} +Summary: NUMA user daemon + +License: LGPLv2 +URL: https://pagure.io/numad +# The source for this package was pulled from upstream's vcs. Use the +# following commands to generate the tarball: +# git clone https://pagure.io/numad.git numad-0.5git +# tar --exclude-vcs -cJf numad-0.5git.tar.xz numad-0.5git/ +Source0: %{name}-%{version}git.tar.xz +Patch0: 0000-remove-conf.patch + +Requires: systemd-units +Requires(post): systemd-units +Requires(preun): systemd-units +BuildRequires: make +BuildRequires: gcc +BuildRequires: systemd-units + +ExcludeArch: s390 %{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 -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.service %{buildroot}%{_unitdir}/ +install -p -m 644 numad.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name} +%make_install prefix=%{buildroot}/usr + +%files +%{_bindir}/numad +%{_unitdir}/numad.service +%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 Aug 09 2021 Mohan Boddu - 0.5-36.20150602git +- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags + Related: rhbz#1991688 + +* Fri Apr 16 2021 Mohan Boddu - 0.5-35.20150602git +- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 + +* Tue Jan 26 2021 Fedora Release Engineering - 0.5-34.20150602git +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Aug 24 2020 Jan Synáček - 0.5-33.20150602git +- Use make macros +- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro + +* Tue Jul 28 2020 Fedora Release Engineering - 0.5-32.20150602git +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jan 29 2020 Fedora Release Engineering - 0.5-31.20150602git +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jul 25 2019 Fedora Release Engineering - 0.5-30.20150602git +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Tue Mar 26 2019 Jan Synáček - 0.5-29.20150602git +- Remove all mentions of the default config file, which is not used anyway + +* Fri Feb 01 2019 Fedora Release Engineering - 0.5-28.20150602git +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 0.5-27.20150602git +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Jan Synáček - 0.5-26.20150602git +- Remove initscripts from Requires (#1592372) + +* Thu Feb 08 2018 Fedora Release Engineering - 0.5-25.20150602git +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 0.5-24.20150602git +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.5-23.20150602git +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Dan Horák - 0.5-22.20150602git +- Enable on s390x + +* Thu Feb 04 2016 Fedora Release Engineering - 0.5-21.20150602git +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 0.5-20.20150602git +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Tue Jun 2 2015 Jan Synáček - 0.5-19.20150602git +- Update to 20150602 + +* Sun Aug 17 2014 Fedora Release Engineering - 0.5-18.20140620git +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Mon Jun 23 2014 Jan Synáček - 0.5-17.20140620git +- Update to 20140620 + +* Sat Jun 07 2014 Fedora Release Engineering - 0.5-16.20140225git +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Tue Mar 25 2014 Jan Synáček - 0.5-15.20140225git +- Update to the correct upstream version of 20140225 + +* Fri Feb 28 2014 Jan Synáček - 0.5-14.20140225git +- Update to 20140225 +- Resolves: #1071221 + +* Mon Jan 20 2014 Ville Skyttä - 0.5-13.20130814git +- Don't order service after syslog.target (#1055209). +- Build with $RPM_OPT_FLAGS and $RPM_LD_FLAGS. +- Fix build with -Werror=format-security. + +* Wed Aug 14 2013 Jan Synáček - 0.5-12.20130814git +- Update to 20130814 + +* Sat Aug 03 2013 Fedora Release Engineering - 0.5-11.20121130git +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 0.5-10.20121130git +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Tue Dec 11 2012 Jan Synáček - 0.5-9.20121130git +- Update and comment the Makefile patch +- Related: #825153 + +* Mon Dec 03 2012 Jan Synáček - 0.5-8.20121130git +- Update to 20121130 +- Update spec: fix command to generate tarball + +* Tue Oct 16 2012 Jan Synáček - 0.5-7.20121015git +- Update to 20121015 +- Add Makefile patch +- Update spec: update command to generate tarball + +* Wed Aug 22 2012 Jan Synáček - 0.5-6.20120522git +- add systemd-rpm macros +- Resolves: #850236 + +* Fri Jul 20 2012 Fedora Release Engineering - 0.5-5.20120522git +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Wed May 23 2012 Jan Synáček - 0.5-4.20120522git +- update source (20120522) and manpage + +* Tue Mar 06 2012 Jan Synáček 0.5-3.20120221git +- update source +- drop the patch + +* Fri Feb 24 2012 Jan Synáček 0.5-2.20120221git +- add BuildRequires: systemd-units + +* Wed Feb 15 2012 Jan Synáček 0.5-1.20120221git +- spec update + +* Fri Feb 10 2012 Bill Burns 0.5-1 +- initial version