[condor-job-hooks] Updated to upstream version 1.4
rrati
rrati at fedoraproject.org
Mon Jan 3 20:25:40 UTC 2011
commit a4af974563ac7ecc6d29f3081d3e52222856e6e8
Author: Robert Rati <rrati at redhat.com>
Date: Mon Jan 3 14:25:22 2011 -0600
Updated to upstream version 1.4
.gitignore | 1 +
condor-job-hooks.spec | 125 ++++++++++++++++++++++++++++++++++++++++---------
sources | 2 +-
3 files changed, 104 insertions(+), 24 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index ae3a3b7..e7cf1f9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
condor-job-hooks-1.0-12.tar.gz
+/condor-job-hooks-1.4-7.tar.gz
diff --git a/condor-job-hooks.spec b/condor-job-hooks.spec
index 7154ed5..85059c1 100644
--- a/condor-job-hooks.spec
+++ b/condor-job-hooks.spec
@@ -1,38 +1,36 @@
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?is_fedora: %define is_fedora %(/bin/sh -c "if [ -e /etc/fedora-release ];then echo '1'; fi")}
-%define rel 12
+%define rel 7
Summary: Condor Job Hooks
Name: condor-job-hooks
-Version: 1.0
-Release: %{rel}.1%{?dist}
+Version: 1.4
+Release: %{rel}%{?dist}
License: ASL 2.0
Group: Applications/System
-URL: http://www.redhat.com/mrg
-# This is a Red Hat maintained package which is specific to
-# our distribution. Thus the source is only available from
-# within this srpm.
+URL: http://git.fedorahosted.org/git/grid/job_hooks.git
Source0: %{name}-%{version}-%{rel}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildArch: noarch
Requires: python >= 2.3
Requires: condor >= 7.0.2-4
-Requires: python-%{name}-common
+Requires: python-condorutils >= 1.4
%description
This package provides Condor job hooks that communicate with a translation
daemon which interfaces with job delivery protocols outside of condor's
native job delivery protocol.
-%package -n python-%{name}-common
+%package -n python-condorutils
Summary: Common functions/utilities for condor job hooks
Group: Applications/System
-BuildRequires: python-devel
+BuildRequires: python-devel >= 2.3
Requires: python >= 2.3
Obsoletes: condor-job-hooks-common
+Obsoletes: python-condor-job-hooks-common
-%description -n python-%{name}-common
-Common functions and utilities used by MRG condor job hooks.
+%description -n python-condorutils
+Common functions and utilities used by condor features.
%prep
%setup -q
@@ -42,13 +40,11 @@ Common functions and utilities used by MRG condor job hooks.
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%_libexecdir/condor/hooks
-mkdir -p %{buildroot}/%{python_sitelib}/jobhooks
+mkdir -p %{buildroot}/%{python_sitelib}/condorutils
mkdir -p %{buildroot}/%_sysconfdir/condor
-cp -f hook*.py %{buildroot}/%_libexecdir/condor/hooks
+cp -f hooks/hook*.py %{buildroot}/%_libexecdir/condor/hooks
rm -f %{buildroot}/%_libexecdir/condor/hooks/hook_evict_claim.*
-cp -f functions.py %{buildroot}/%{python_sitelib}/jobhooks
-touch %{buildroot}/%{python_sitelib}/jobhooks/__init__.py
-cp -f config/job-hooks.conf %{buildroot}/%{_sysconfdir}/condor
+cp -f module/*.py %{buildroot}/%{python_sitelib}/condorutils
%post
%if 0%{?is_fedora} == 0
@@ -65,7 +61,6 @@ rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc LICENSE-2.0.txt INSTALL
-%config(noreplace) %{_sysconfdir}/condor/job-hooks.conf
%defattr(0755,root,root,-)
%_libexecdir/condor/hooks/hook_fetch_work.py*
%_libexecdir/condor/hooks/hook_job_exit.py*
@@ -73,15 +68,99 @@ rm -rf %{buildroot}
%_libexecdir/condor/hooks/hook_reply_fetch.py*
%_libexecdir/condor/hooks/hook_update_job_status.py*
-%files -n python-%{name}-common
+%files -n python-condorutils
%defattr(-,root,root,-)
%doc LICENSE-2.0.txt
-%{python_sitelib}/jobhooks/functions.py*
-%{python_sitelib}/jobhooks/__init__.py*
+%{python_sitelib}/condorutils/__init__.py*
+%{python_sitelib}/condorutils/log.py*
+%{python_sitelib}/condorutils/osutil.py*
+%{python_sitelib}/condorutils/readconfig.py*
+%{python_sitelib}/condorutils/socketutil.py*
+%{python_sitelib}/condorutils/workfetch.py*
%changelog
-* Wed Jul 21 2010 David Malcolm <dmalcolm at redhat.com> - 1.0-12.1
-- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
+* Mon Jan 3 2011 <rrati at redhat> - 1.4-7
+- Update source URL
+
+* Wed Nov 10 2010 <rrati at redhat> - 1.4-6
+- If zip does not include permissions info, do not explicitly set and leave
+ to umask
+
+* Mon Aug 23 2010 <rrati at redhat> - 1.4-5
+- Fixed typo in status hook
+
+* Thu Aug 12 2010 <rrati at redhat> - 1.4-4
+- update, exit, and status hooks all log to syslog
+
+* Mon Aug 02 2010 <rrati at redhat> - 1.4-3
+- Fixed issue with run_cmd causing a deadlock when commands returned
+ a large amount of data on python2.3
+
+* Fri Jul 23 2010 <rrati at redhat> - 1.4-2
+- Fixed output of run_cmd on python2.3 when using popen2
+- Fixed resetting of environment variables when run on python2.3
+
+* Mon Jun 28 2010 <rrati at redhat> - 1.4-1
+- Updated dependecy versions
+
+* Fri Jun 11 2010 <rrati at redhat> - 1.4-0.6
+- The prepare hook only logs on non-windows machines
+
+* Fri Jun 11 2010 <rrati at redhat> - 1.4-0.5
+- Additional logging
+- Prepare hook will log to syslog
+
+* Thu Jun 03 2010 <rrati at redhat> - 1.4-0.4
+- Fix setting of PATH on non-Unix machines in run_cmd
+- Better handle errors when running commands in run_cmd
+
+* Wed Apr 14 2010 <rrati at redhat> - 1.4-0.3
+- Added optional environ param to read_condor_config
+
+* Wed Apr 14 2010 <rrati at redhat> - 1.4-0.2
+- Fixed issue setting/reseting environment variables when popen2 is used.
+ Any params set by the caller were not getting reset by the time run_cmd
+ was exiting, so the environment was permanently modified.
+
+* Thu Apr 8 2010 <rrati at redhat> - 1.4-0.1
+- Added option param to run_cmd (inter). This will allow commands to be
+ run that require user interaction
+- Fixed setting of environment before executing the command. PATH is
+ always overriden and defined as a trusted set of directories.
+- Updated usage of run_cmd
+
+* Mon Mar 29 2010 <rrati at redhat> - 1.3-0.1
+- Changed Exception names
+- Changed log_messages to log
+- Renamed python module to condorutils
+- Removed functions.py and moved to separate modules
+- Improved error handling for when calling close_socket and pickle.loads
+- log_messages no long takes an exception, but a list of strings to print
+
+* Thu Mar 11 2010 <rrati at redhat> - 1.2-0.2
+- Added importing of logging module into common functions
+
+* Tue Mar 09 2010 <rrati at redhat> - 1.2-0.1
+- Changed log_messages to use native logging module rather than syslog
+- Changed general_execption to GeneralError
+- Exception no longer takes a level
+- log_messages now requires a level passed to it
+- Changed run_cmd to return 3 values rather than a list of 3 values
+- Fixed read_config_config to be able to handle 1 word params (ie LOG)
+- log_messages takes an optional 3rd arg that specifies the name of a
+ logging subsystem to use. If none is given, the base logger is used
+
+* Thu Mar 04 2010 <rrati at redhat> - 1.1-0.1
+- run_cmd takes an optional 3rd arg that specifies environment vars to set
+
+* Mon Jan 26 2010 <rrati at redhat> - 1.0-14
+- Fixed handling of multiple args using Popen in run_cmd
+- Added comments to a few methods
+- Fixed type in run_cmd when using the popen2 module
+
+* Fri Sep 11 2009 <rrati at redhat> - 1.0-13
+- Use popen2 module instead of subprocess on python versions that don't
+ have the subprocess module (BZ522467)
* Tue Aug 18 2009 <rrati at redhat> - 1.0-12
- Job hooks use JOB_HOOK as keyword instead of LL_HOOK
diff --git a/sources b/sources
index 90703e9..a989f93 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-8aa785ccc871c30c0f81ca8e4307bb8e condor-job-hooks-1.0-12.tar.gz
+f87cb4c634ce03c214ca2f4eaab9a632 condor-job-hooks-1.4-7.tar.gz
More information about the scm-commits
mailing list