+Summary: PlanetLab Node Manager
+Name: NodeManager
+Version: 0.1
+Release: 1
+License: PlanetLab
+Group: System Environment/Daemons
+URL: http://cvs.planet-lab.org/cvs/NodeManager
+Source0: %{name}-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+
+Obsoletes: sidewinder
+
+# Uses function decorators
+Requires: python >= 2.4
+
+%description
+The PlanetLab Node Manager manages all aspects of PlanetLab node and
+slice management once the node has been initialized and configured by
+the Boot Manager. It periodically contacts its management authority
+for configuration updates. It provides an XML-RPC API for performing
+local operations on slices.
+
+%prep
+%setup -q
+
+%build
+%{__make} %{?_smp_mflags}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} %{?_smp_mflags} install DESTDIR="$RPM_BUILD_ROOT"
+
+install -D -m 755 nm.init $RPM_BUILD_ROOT/%{_initrddir}/nm
+install -D -m 644 nm.logrotate $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/nm
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc
+%dir %{_datadir}/NodeManager
+%{_datadir}/NodeManager/*
+%{_bindir}/forward_api_calls
+%{_initrddir}/nm
+
+%changelog
+* Mon Nov 13 2006 Mark Huang <mlhuang@paris.CS.Princeton.EDU> -
+- Initial build.
+