diff --git a/.numad.metadata b/.numad.metadata new file mode 100644 index 0000000..1df35cb --- /dev/null +++ b/.numad.metadata @@ -0,0 +1 @@ +82d1a226cb29e33b095fa65b0f6077657ae57e77 SOURCES/numad-0.5git.tar.xz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/numad-0.5git-pthread.patch b/SOURCES/numad-0.5git-pthread.patch new file mode 100644 index 0000000..d2b2929 --- /dev/null +++ b/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 +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 diff --git a/SPECS/numad.spec b/SPECS/numad.spec new file mode 100644 index 0000000..3379961 --- /dev/null +++ b/SPECS/numad.spec @@ -0,0 +1,99 @@ +%global systemctl_bin /usr/bin/systemctl + +Name: numad +Version: 0.5 +Release: 10.20121130git%{?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 +Patch0: numad-0.5git-pthread.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 + +%build +make CFLAGS="-std=gnu99 -g" LDFLAGS="-lpthread -lrt" + +%install +mkdir -p %{buildroot}%{_bindir} +mkdir -p %{buildroot}%{_sysconfdir} +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}/ +make install prefix=%{buildroot}/usr + +%files +%{_bindir}/numad +%{_unitdir}/numad.service +%config(noreplace) %{_sysconfdir}/numad.conf +%doc %{_mandir}/man8/numad.8.gz + +%post +%systemd_post numad.service + +%preun +%systemd_preun numad.service + +%postun +%systemd_postun numad.service + +%changelog +* 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