numad/numad.spec

120 lines
3.8 KiB
RPMSpec
Raw Normal View History

2012-02-23 15:16:22 +00:00
%global systemctl_bin /usr/bin/systemctl
Name: numad
Version: 0.5
Release: 15.20140225git%{?dist}
2012-02-23 15:16:22 +00:00
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/
2012-02-23 15:16:22 +00:00
Source0: %{name}-%{version}git.tar.xz
2012-10-16 07:40:01 +00:00
Patch0: numad-0.5git-pthread.patch
Patch1: 0001-Fix-build-with-Werror-format-security.patch
2012-02-23 15:16:22 +00:00
Requires: systemd-units, initscripts
Requires(post): systemd-units, initscripts
Requires(preun): systemd-units, initscripts
2012-02-24 07:38:23 +00:00
BuildRequires: systemd-units
2012-02-23 15:16:22 +00:00
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
2012-10-16 07:40:01 +00:00
%patch0 -p0
%patch1 -p1
2012-02-23 15:16:22 +00:00
%build
2014-02-28 10:37:01 +00:00
make CFLAGS="$RPM_OPT_FLAGS -std=gnu99" LDFLAGS="$RPM_LD_FLAGS -lpthread -lrt -lm"
2012-02-23 15:16:22 +00:00
%install
mkdir -p %{buildroot}%{_bindir}
2013-08-14 07:45:57 +00:00
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
2012-02-23 15:16:22 +00:00
mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_mandir}/man8/
install -p -m 644 numad.service %{buildroot}%{_unitdir}/
2013-08-14 07:45:57 +00:00
install -p -m 644 numad.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
2012-02-23 15:16:22 +00:00
make install prefix=%{buildroot}/usr
%files
%{_bindir}/numad
%{_unitdir}/numad.service
2013-08-14 07:45:57 +00:00
%config(noreplace) %{_sysconfdir}/logrotate.d/numad
2012-02-23 15:16:22 +00:00
%doc %{_mandir}/man8/numad.8.gz
%post
%systemd_post numad.service
2012-02-23 15:16:22 +00:00
%preun
%systemd_preun numad.service
2012-02-23 15:16:22 +00:00
%postun
%systemd_postun numad.service
2012-02-23 15:16:22 +00:00
%changelog
* Tue Mar 25 2014 Jan Synáček <jsynacek@redhat.com> - 0.5-15.20140225git
- Update to the correct upstream version of 20140225
2014-02-28 10:37:01 +00:00
* Fri Feb 28 2014 Jan Synáček <jsynacek@redhat.com> - 0.5-14.20140225git
- Update to 20140225
- Resolves: #1071221
* Mon Jan 20 2014 Ville Skyttä <ville.skytta@iki.fi> - 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.
2013-08-14 07:45:57 +00:00
* Wed Aug 14 2013 Jan Synáček <jsynacek@redhat.com> - 0.5-12.20130814git
- Update to 20130814
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-11.20121130git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* 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
2012-12-03 14:44:47 +00:00
* Mon Dec 03 2012 Jan Synáček <jsynacek@redhat.com> - 0.5-8.20121130git
- Update to 20121130
- Update spec: fix command to generate tarball
2012-12-03 14:44:47 +00:00
2012-10-16 07:35:07 +00:00
* Tue Oct 16 2012 Jan Synáček <jsynacek@redhat.com> - 0.5-7.20121015git
- Update to 20121015
2012-10-16 07:40:01 +00:00
- Add Makefile patch
- Update spec: update command to generate tarball
2012-10-16 07:35:07 +00:00
* 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
2012-05-23 06:11:22 +00:00
* Wed May 23 2012 Jan Synáček <jsynacek@redhat.com> - 0.5-4.20120522git
- update source (20120522) and manpage
2012-03-06 07:21:37 +00:00
* Tue Mar 06 2012 Jan Synáček <jsynacek@redhat.com> 0.5-3.20120221git
- update source
- drop the patch
2012-02-24 07:38:23 +00:00
* Fri Feb 24 2012 Jan Synáček <jsynacek@redhat.com> 0.5-2.20120221git
- add BuildRequires: systemd-units
2012-02-23 15:16:22 +00:00
* 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