X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=NodeUpdate.spec;h=31a8a2453716ab3179b1eb3e90ff51cc5ee71cd2;hb=a60eb2c1c02b4d9e1c72395b8f580f29588601ca;hp=09bde10a1e8b620f5ffaba24707868aadacdb155;hpb=ded1abfcb01e849f598b0dd28e5dddc1cc5ca8a9;p=nodeupdate.git diff --git a/NodeUpdate.spec b/NodeUpdate.spec index 09bde10..31a8a24 100644 --- a/NodeUpdate.spec +++ b/NodeUpdate.spec @@ -1,6 +1,11 @@ %define name NodeUpdate -%define version 0.2 -%define release 3.planetlab%{?date:.%{date}} +%define version 0.4 +%define release 4%{?pldistro:.%{pldistro}}%{?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} @@ -8,10 +13,10 @@ Version: %{version} Release: %{release} Requires: python2 >= 2.2, yum >= 2.0.3-3_planetlab Copyright: GPL -URL: http://www.planet-lab.org Group: System Environment/Base Source: %{name}-%{version}.tar.gz -BuildRoot: /tmp/%{name}-%{version}-root +BuildRoot: %{_tmppath}/%{name}-%{version}root +Requires: vixie-cron, logrotate %description PlanetLab service to periodically update node RPMS @@ -24,22 +29,21 @@ 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/ +install -D -m 755 NodeUpdate.py $RPM_BUILD_ROOT/usr/local/planetlab/bin/NodeUpdate.py +install -D -m 644 NodeUpdate.logrotate $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 +%attr(0644,root,root) /etc/logrotate.d/NodeUpdate %pre %post -if [ "$1" = 1 ]; then - /usr/local/planetlab/bin/NodeUpdate.py updatecron -fi - +/usr/local/planetlab/bin/NodeUpdate.py updatecron %preun if [ "$1" = 0 ]; then @@ -51,6 +55,14 @@ fi %changelog +* 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 + * Mon Apr 12 2004 Aaron K - updated for new build process