ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/jobrobot.spec
(Generate patch)

Comparing COMP/CMSDIST/jobrobot.spec (file contents):
Revision 1.2 by valya, Tue Sep 16 16:03:42 2008 UTC vs.
Revision 1.4 by valya, Wed Sep 17 13:45:58 2008 UTC

# Line 1 | Line 1
1 < ### RPM cms jobrobot 0.0.1
1 > ### RPM cms jobrobot 0.0.3
2   ## INITENV +PATH PYTHONPATH %i/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages
3   ## INITENV SET JOBROBOT_SERVICE_HOME %{i}/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages
4  
5   %define exportName JOBROBOT_SERVICE
6 < %define cvstag V01-03-14
6 > %define cvstag V01-03-16
7   %define cvsserver cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e
8   Source: %cvsserver&strategy=checkout&module=WEBTOOLS/Applications/JobRobot&nocache=true&export=%{exportName}&tag=-r%{cvstag}&output=/%{exportName}.tar.gz
9   Requires: python cherrypy
# Line 14 | Line 14 | Requires: python cherrypy
14   rm -rf %i/etc/profile.d
15   mkdir -p %i/etc/profile.d
16   mkdir -p %i/etc/init.d
17 < mkdir -p %i/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages
17 > mkdir -p %i/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages/html
18   cp -r Applications/JobRobot/jr_ws_server.py %{i}/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages
19 cp -r Applications/JobRobot/CherryServer3.conf %{i}/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages
19   chmod a+x %{i}/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages/jr_ws_server.py
20  
21   # copy init script
# Line 50 | Line 49 | EOF_TOOLFILE
49   %post
50   %{relocateConfig}etc/profile.d/dependencies-setup.sh
51   %{relocateConfig}etc/profile.d/dependencies-setup.csh
52 + . $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.sh
53 + if [ -n "${WEBTOOLS_CONF}" ] && [ -d ${WEBTOOLS_CONF}/jobrobots/html ]; then
54 +    rm -rf $RPM_INSTALL_PREFIX/%{pkgrel}/lib/python`echo $PYTHON_VERSION | cut -d. -f1,2`/site-packages/html
55 +    ln -s ${WEBTOOLS_CONF}/jobrobots/html $RPM_INSTALL_PREFIX/%{pkgrel}/lib/python`echo $PYTHON_VERSION | cut -d. -f1,2`/site-packages/html
56 + fi

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines