X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=NodeUpdate.spec;h=f5b7aa003241c95a439943aea01b44d2f959f906;hb=76598e7190f128cb4af16076b0be7319abfe0455;hp=2369178461b72aa79815a58caf03689e94ca8828;hpb=73c4509393806e451a582a2ba941ec60347ee195;p=nodeupdate.git diff --git a/NodeUpdate.spec b/NodeUpdate.spec index 2369178..f5b7aa0 100644 --- a/NodeUpdate.spec +++ b/NodeUpdate.spec @@ -1,17 +1,29 @@ +# +# $Id$ +# +%define url $URL$ + %define name NodeUpdate -%define version 0.2 -%define release 3.planetlab%{?date:.%{date}} +%define version 0.5 +%define taglevel 6 + +%define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}} + +Vendor: PlanetLab +Packager: PlanetLab Central +Distribution: PlanetLab %{plrelease} +URL: %(echo %{url} | cut -d ' ' -f 2) 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 -URL: http://www.planet-lab.org +License: GPL Group: System Environment/Base Source: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}root +Requires: vixie-cron, logrotate %description PlanetLab service to periodically update node RPMS @@ -24,34 +36,52 @@ PlanetLab service to periodically update node RPMS %install -mkdir -p $RPM_BUILD_ROOT/usr/local/planetlab/bin -cp NodeUpdate.py $RPM_BUILD_ROOT/usr/local/planetlab/bin/ +echo "* Installing NodeUpdate node-side files" +install -D -m 755 NodeUpdate.py $RPM_BUILD_ROOT/usr/bin/NodeUpdate.py +install -D -m 644 logrotate/NodeUpdate $RPM_BUILD_ROOT/etc/logrotate.d/NodeUpdate %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) -%attr(0755,root,root) /usr/local/planetlab/bin/NodeUpdate.py - -%pre +%attr(0755,root,root) /usr/bin/NodeUpdate.py* +%attr(0644,root,root) /etc/logrotate.d/NodeUpdate %post -if [ "$1" = 1 ]; then - /usr/local/planetlab/bin/NodeUpdate.py updatecron -fi - +/usr/bin/NodeUpdate.py updatecron %preun if [ "$1" = 0 ]; then - /usr/local/planetlab/bin/NodeUpdate.py removecron + /usr/bin/NodeUpdate.py removecron fi +%changelog +* Fri Jan 29 2010 Thierry Parmentelat - NodeUpdate-0.5-6 +- new module layout - no functional change -%postun +* Mon Sep 07 2009 Thierry Parmentelat - NodeUpdate-0.5-5 +- searches the extensions file /etc/planetlab/extensions rather than the former /etc/planetlab/extra-node-groups +* Tue Apr 07 2009 Thierry Parmentelat - NodeUpdate-0.5-4 +- invokes 'yum clean all' before updates +- as it is more reliable, although suboptimal + +* Tue Jul 08 2008 Thierry Parmentelat - NodeUpdate-0.5-3 +- more verbose : invoke yum with --verbose, and print timestamps + +* Fri Aug 10 2007 Faiyaz Ahmed +- Rebuild RPM Database nightly to avoid corruption +- Move working directory from /usr/local to /usr/bin + +* Tue Nov 16 2004 Mark Huang +- cron job now dumps to /var/log/NodeUpdate instead of spewing mail +- cron job now runs once a day instead of once an hour + +* Tue Jun 22 2004 Aaron K +- added better support for different groups +- added support for deleting rpms -%changelog * Mon Apr 12 2004 Aaron K - updated for new build process