%define name NodeUpdate %define version 0.4 %define release 2.planetlab%{?date:.%{date}} Vendor: PlanetLab Packager: PlanetLab Central Distribution: PlanetLab 3.0 URL: http://cvs.planet-lab.org/cvs/NodeUpdate Summary: PlanetLab service to periodically update node RPMS Name: %{name} Version: %{version} Release: %{release} Requires: python2 >= 2.2, yum >= 2.0.3-3_planetlab Copyright: GPL Group: System Environment/Base Source: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}root Requires: vixie-cron %description PlanetLab service to periodically update node RPMS %prep %setup %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/planetlab/bin cp NodeUpdate.py $RPM_BUILD_ROOT/usr/local/planetlab/bin/ %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %attr(0755,root,root) /usr/local/planetlab/bin/NodeUpdate.py %pre %post if [ "$1" = 1 ]; then /usr/local/planetlab/bin/NodeUpdate.py updatecron fi %preun if [ "$1" = 0 ]; then /usr/local/planetlab/bin/NodeUpdate.py removecron fi %postun %changelog * Tue Jun 22 2004 Aaron K - added better support for different groups - added support for deleting rpms * Mon Apr 12 2004 Aaron K - updated for new build process * Mon Feb 2 2004 Aaron K - new yum option for ssl cert dir used - added noreboot option which ignores the reboot flag (useful during install and/or boot time) * Tue Oct 28 2003 Aaron K - Initial build.