1428df
%global systemctl_bin /usr/bin/systemctl
845250
%global _hardened_build 1
1428df
1428df
Name: numad
1428df
Version: 0.5
214745
Release: 18.20150602git%{?dist}
1428df
Summary: NUMA user daemon
1428df
1428df
License: LGPLv2
1428df
Group: System Environment/Daemons
1428df
URL: http://git.fedorahosted.org/git/?p=numad.git
1428df
# The source for this package was pulled from upstream's vcs.  Use the
1428df
# following commands to generate the tarball:
1428df
#   git clone git://git.fedorahosted.org/numad.git numad-0.5git
1428df
#   tar --exclude-vcs -cJf numad-0.5git.tar.xz numad-0.5git/
1428df
Source0: %{name}-%{version}git.tar.xz
e98796
Source1: %{name}.logrotate
1428df
Patch0: numad-0.5git-pthread.patch
845250
Patch1: numad-0.5git-version.patch
214745
Patch2: numad-0.5git-m-option.patch
1428df
1428df
Requires: systemd-units, initscripts
1428df
Requires(post): systemd-units, initscripts
1428df
Requires(preun): systemd-units, initscripts
1428df
BuildRequires: systemd-units
1428df
1428df
ExcludeArch: s390 s390x %{arm}
1428df
1428df
%description
1428df
Numad, a daemon for NUMA (Non-Uniform Memory Architecture) systems,
1428df
that monitors NUMA characteristics and manages placement of processes
1428df
and memory to minimize memory latency and thus provide optimum performance.
1428df
1428df
%prep
1428df
%setup -q -n %{name}-%{version}git
1428df
%patch0 -p0
e98796
%patch1 -p1
214745
%patch2 -p1
1428df
1428df
%build
e98796
make CFLAGS="$RPM_OPT_FLAGS -std=gnu99" LDFLAGS="$RPM_LD_FLAGS -lpthread -lrt -lm"
1428df
1428df
%install
1428df
mkdir -p %{buildroot}%{_bindir}
e98796
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
1428df
mkdir -p %{buildroot}%{_unitdir}
1428df
mkdir -p %{buildroot}%{_mandir}/man8/
1428df
install -p -m 644 numad.conf %{buildroot}%{_sysconfdir}/
1428df
install -p -m 644 numad.service %{buildroot}%{_unitdir}/
e98796
install -p -m 644 %SOURCE1 %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
1428df
make install prefix=%{buildroot}/usr
1428df
1428df
%files
1428df
%{_bindir}/numad
1428df
%{_unitdir}/numad.service
1428df
%config(noreplace) %{_sysconfdir}/numad.conf
e98796
%config(noreplace) %{_sysconfdir}/logrotate.d/numad
1428df
%doc %{_mandir}/man8/numad.8.gz
1428df
1428df
%post
1428df
%systemd_post numad.service
1428df
1428df
%preun
1428df
%systemd_preun numad.service
1428df
1428df
%postun
1428df
%systemd_postun numad.service
1428df
1428df
%changelog
214745
* Mon Oct 30 2017 Jan Synáček <jsynacek@redhat.com> - 0.5-18.20150602git
214745
- Fix -m option (#1506477)
214745
845250
* Tue Aug 30 2016 Jan Synáček <jsynacek@redhat.com> - 0.5-17.20150602git
845250
- Fix the version patch (#1281711)
845250
845250
* Mon Jul 11 2016 Jan Synáček <jsynacek@redhat.com> - 0.5-16.20150602git
845250
- Version update (#1281711 #1238614 #1235164)
845250
845250
* Thu May 26 2016 Jan Synáček <jsynacek@redhat.com> - 0.5-15.20140620git
845250
- Harden the build (#1092544)
845250
14dd93
* Fri Sep  5 2014 Jan Synáček <jsynacek@redhat.com> - 0.5-14.20140620git
14dd93
- Version update
14dd93
- Resolves: #1112109
14dd93
e98796
* Wed Mar 26 2014 Jan Synáček <jsynacek@redhat.com> - 0.5-13.20140225git
e98796
- Build with $RPM_OPT_FLAGS and $RPM_LD_FLAGS
e98796
- Resolves: #1070781
e98796
e98796
* Fri Feb 28 2014 Jan Synáček <jsynacek@redhat.com> - 0.5-12.20140225git
e98796
- Update source (20140225) and manpage
e98796
- Add logrotate config
e98796
- Resolves: #853232
e98796
e98796
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.5-11.20121130git
e98796
- Mass rebuild 2013-12-27
e98796
1428df
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-10.20121130git
1428df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
1428df
1428df
* Tue Dec 11 2012 Jan Synáček <jsynacek@redhat.com> - 0.5-9.20121130git
1428df
- Update and comment the Makefile patch
1428df
- Related: #825153
1428df
1428df
* Mon Dec 03 2012 Jan Synáček <jsynacek@redhat.com> - 0.5-8.20121130git
1428df
- Update to 20121130
1428df
- Update spec: fix command to generate tarball
1428df
1428df
* Tue Oct 16 2012 Jan Synáček <jsynacek@redhat.com> - 0.5-7.20121015git
1428df
- Update to 20121015
1428df
- Add Makefile patch
1428df
- Update spec: update command to generate tarball
1428df
1428df
* Wed Aug 22 2012 Jan Synáček <jsynacek@redhat.com> - 0.5-6.20120522git
1428df
- add systemd-rpm macros
1428df
- Resolves: #850236
1428df
1428df
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-5.20120522git
1428df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
1428df
1428df
* Wed May 23 2012 Jan Synáček <jsynacek@redhat.com> - 0.5-4.20120522git
1428df
- update source (20120522) and manpage
1428df
1428df
* Tue Mar 06 2012 Jan Synáček <jsynacek@redhat.com> 0.5-3.20120221git
1428df
- update source
1428df
- drop the patch
1428df
1428df
* Fri Feb 24 2012 Jan Synáček <jsynacek@redhat.com> 0.5-2.20120221git
1428df
- add BuildRequires: systemd-units
1428df
1428df
* Wed Feb 15 2012 Jan Synáček <jsynacek@redhat.com> 0.5-1.20120221git
1428df
- spec update
1428df
1428df
* Fri Feb 10 2012 Bill Burns <bburns@redhat.com> 0.5-1
1428df
- initial version