a08775
%global systemctl_bin /usr/bin/systemctl
a08775
a08775
Name: numad
a08775
Version: 0.5
a08775
Release: 26.20150602git%{?dist}
a08775
Summary: NUMA user daemon
a08775
a08775
License: LGPLv2
a08775
Group: System Environment/Daemons
a08775
URL: https://pagure.io/numad
a08775
# The source for this package was pulled from upstream's vcs.  Use the
a08775
# following commands to generate the tarball:
a08775
#   git clone https://pagure.io/numad.git numad-0.5git
a08775
#   tar --exclude-vcs -cJf numad-0.5git.tar.xz numad-0.5git/
a08775
Source0: %{name}-%{version}git.tar.xz
a08775
a08775
Requires: systemd-units
a08775
Requires(post): systemd-units
a08775
Requires(preun): systemd-units
a08775
BuildRequires: systemd-units
a08775
a08775
ExcludeArch: s390 %{arm}
a08775
a08775
%description
a08775
Numad, a daemon for NUMA (Non-Uniform Memory Architecture) systems,
a08775
that monitors NUMA characteristics and manages placement of processes
a08775
and memory to minimize memory latency and thus provide optimum performance.
a08775
a08775
%prep
a08775
%setup -q -n %{name}-%{version}git
a08775
a08775
%build
a08775
make CFLAGS="$RPM_OPT_FLAGS -std=gnu99" LDFLAGS="$RPM_LD_FLAGS -lpthread -lrt -lm"
a08775
a08775
%install
a08775
mkdir -p %{buildroot}%{_bindir}
a08775
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
a08775
mkdir -p %{buildroot}%{_unitdir}
a08775
mkdir -p %{buildroot}%{_mandir}/man8/
a08775
install -p -m 644 numad.service %{buildroot}%{_unitdir}/
a08775
install -p -m 644 numad.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
a08775
make install prefix=%{buildroot}/usr
a08775
a08775
%files
a08775
%{_bindir}/numad
a08775
%{_unitdir}/numad.service
a08775
%config(noreplace) %{_sysconfdir}/logrotate.d/numad
a08775
%doc %{_mandir}/man8/numad.8.gz
a08775
a08775
%post
a08775
%systemd_post numad.service
a08775
a08775
%preun
a08775
%systemd_preun numad.service
a08775
a08775
%postun
a08775
%systemd_postun numad.service
a08775
a08775
%changelog
a08775
* Tue Jun 19 2018 Jan Synáček <jsynacek@redhat.com> - 0.5-26.20150602git
a08775
- Remove initscripts from Requires (#1610280)
a08775
a08775
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-25.20150602git
a08775
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a08775
a08775
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-24.20150602git
a08775
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
a08775
a08775
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-23.20150602git
a08775
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a08775
a08775
* Fri Feb 10 2017 Dan Horák <dan[at]danny.cz> - 0.5-22.20150602git
a08775
- Enable on s390x
a08775
a08775
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-21.20150602git
a08775
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a08775
a08775
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-20.20150602git
a08775
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a08775
a08775
* Tue Jun  2 2015 Jan Synáček <jsynacek@redhat.com> - 0.5-19.20150602git
a08775
- Update to 20150602
a08775
a08775
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-18.20140620git
a08775
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
a08775
a08775
* Mon Jun 23 2014 Jan Synáček <jsynacek@redhat.com> - 0.5-17.20140620git
a08775
- Update to 20140620
a08775
a08775
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-16.20140225git
a08775
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a08775
a08775
* Tue Mar 25 2014 Jan Synáček <jsynacek@redhat.com> - 0.5-15.20140225git
a08775
- Update to the correct upstream version of 20140225
a08775
a08775
* Fri Feb 28 2014 Jan Synáček <jsynacek@redhat.com> - 0.5-14.20140225git
a08775
- Update to 20140225
a08775
- Resolves: #1071221
a08775
a08775
* Mon Jan 20 2014 Ville Skyttä <ville.skytta@iki.fi> - 0.5-13.20130814git
a08775
- Don't order service after syslog.target (#1055209).
a08775
- Build with $RPM_OPT_FLAGS and $RPM_LD_FLAGS.
a08775
- Fix build with -Werror=format-security.
a08775
a08775
* Wed Aug 14 2013 Jan Synáček <jsynacek@redhat.com> - 0.5-12.20130814git
a08775
- Update to 20130814
a08775
a08775
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-11.20121130git
a08775
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
a08775
a08775
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-10.20121130git
a08775
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a08775
a08775
* Tue Dec 11 2012 Jan Synáček <jsynacek@redhat.com> - 0.5-9.20121130git
a08775
- Update and comment the Makefile patch
a08775
- Related: #825153
a08775
a08775
* Mon Dec 03 2012 Jan Synáček <jsynacek@redhat.com> - 0.5-8.20121130git
a08775
- Update to 20121130
a08775
- Update spec: fix command to generate tarball
a08775
a08775
* Tue Oct 16 2012 Jan Synáček <jsynacek@redhat.com> - 0.5-7.20121015git
a08775
- Update to 20121015
a08775
- Add Makefile patch
a08775
- Update spec: update command to generate tarball
a08775
a08775
* Wed Aug 22 2012 Jan Synáček <jsynacek@redhat.com> - 0.5-6.20120522git
a08775
- add systemd-rpm macros
a08775
- Resolves: #850236
a08775
a08775
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-5.20120522git
a08775
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a08775
a08775
* Wed May 23 2012 Jan Synáček <jsynacek@redhat.com> - 0.5-4.20120522git
a08775
- update source (20120522) and manpage
a08775
a08775
* Tue Mar 06 2012 Jan Synáček <jsynacek@redhat.com> 0.5-3.20120221git
a08775
- update source
a08775
- drop the patch
a08775
a08775
* Fri Feb 24 2012 Jan Synáček <jsynacek@redhat.com> 0.5-2.20120221git
a08775
- add BuildRequires: systemd-units
a08775
a08775
* Wed Feb 15 2012 Jan Synáček <jsynacek@redhat.com> 0.5-1.20120221git
a08775
- spec update
a08775
a08775
* Fri Feb 10 2012 Bill Burns <bburns@redhat.com> 0.5-1
a08775
- initial version