1 |
< |
### RPM cms prodagent PRODAGENT_0_5_2 |
1 |
> |
### RPM cms prodagent PRODAGENT_0_12_4 |
2 |
|
## INITENV +PATH PYTHONPATH %i/lib |
3 |
< |
|
3 |
> |
## INITENV +PATH PYTHONPATH $WEBTOOLS_ROOT/lib/python`echo $PYTHON_VERSION | cut -d. -f1,2`/site-packages/Tools/GraphTool/src |
4 |
> |
## INITENV +PATH PYTHONPATH $PY2_PIL_ROOT/lib/python`echo $PYTHON_VERSION | cut -d. -f1,2`/site-packages/PIL |
5 |
> |
# |
6 |
> |
# |
7 |
|
%define cvstag %v |
8 |
|
Source: cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e&module=PRODAGENT&export=PRODAGENT&&tag=-r%{cvstag}&output=/PRODAGENT.tar.gz |
9 |
< |
Requires: python mysql py2-mysqldb dbs-client dls boss prodcommon openssl cherrypy PHEDEX-micro |
9 |
> |
Requires: webtools mysql py2-mysqldb dbs-client prodcommon py2-pyxml PHEDEX-micro py2-numpy py2-matplotlib py2-pil py2-pyopenssl wmcore dls-client boss |
10 |
|
|
11 |
|
%prep |
12 |
|
%setup -n PRODAGENT |
22 |
|
mkdir -p %{i}/etc/profile.d |
23 |
|
mkdir -p %i/workdir |
24 |
|
|
22 |
– |
|
25 |
|
(echo "#!/bin/sh"; \ |
24 |
– |
echo "source $PYTHON_ROOT/etc/profile.d/init.sh"; \ |
25 |
– |
echo "source $OPENSSL_ROOT/etc/profile.d/init.sh"; \ |
26 |
|
echo "source $MYSQL_ROOT/etc/profile.d/init.sh"; \ |
27 |
|
echo "source $PY2_MYSQLDB_ROOT/etc/profile.d/init.sh"; \ |
28 |
+ |
echo "source $PY2_PYXML_ROOT/etc/profile.d/init.sh"; \ |
29 |
|
echo "source $DBS_CLIENT_ROOT/etc/profile.d/init.sh"; \ |
30 |
< |
echo "source $DLS_ROOT/etc/profile.d/init.sh"; \ |
30 |
> |
echo "source $DLS_CLIENT_ROOT/etc/profile.d/init.sh"; \ |
31 |
> |
echo "source $BOSS_ROOT/etc/profile.d/init.sh"; \ |
32 |
|
echo "source $PRODCOMMON_ROOT/etc/profile.d/init.sh"; \ |
31 |
– |
echo "source $CHERRYPY_ROOT/etc/profile.d/init.sh"; \ |
33 |
|
echo "source $PHEDEX_MICRO_ROOT/etc/profile.d/init.sh"; \ |
34 |
< |
echo "source $BOSS_ROOT/etc/profile.d/init.sh" ) > %{i}/etc/profile.d/dependencies-setup.sh |
34 |
> |
echo "source $PY2_NUMPY_ROOT/etc/profile.d/init.sh"; \ |
35 |
> |
echo "source $PY2_MATPLOTLIB_ROOT/etc/profile.d/init.sh"; \ |
36 |
> |
echo "source $PY2_PIL_ROOT/etc/profile.d/init.sh"; \ |
37 |
> |
echo "source $PY2_PYOPENSSL_ROOT/etc/profile.d/init.sh"; \ |
38 |
> |
echo "source $WEBTOOLS_ROOT/etc/profile.d/init.sh"; \ |
39 |
> |
echo "source $WMCORE_ROOT/etc/profile.d/init.sh" ) > %{i}/etc/profile.d/dependencies-setup.sh |
40 |
|
|
41 |
|
(echo "#!/bin/tcsh"; \ |
36 |
– |
echo "source $PYTHON_ROOT/etc/profile.d/init.csh"; \ |
37 |
– |
echo "source $OPENSSL_ROOT/etc/profile.d/init.csh"; \ |
42 |
|
echo "source $MYSQL_ROOT/etc/profile.d/init.csh"; \ |
43 |
|
echo "source $PY2_MYSQLDB_ROOT/etc/profile.d/init.csh"; \ |
44 |
+ |
echo "source $PY2_PYXML_ROOT/etc/profile.d/init.csh"; \ |
45 |
|
echo "source $DBS_CLIENT_ROOT/etc/profile.d/init.csh"; \ |
46 |
< |
echo "source $DLS_ROOT/etc/profile.d/init.csh"; \ |
46 |
> |
echo "source $DLS_CLIENT_ROOT/etc/profile.d/init.csh"; \ |
47 |
> |
echo "source $BOSS_ROOT/etc/profile.d/init.csh"; \ |
48 |
|
echo "source $PRODCOMMON_ROOT/etc/profile.d/init.csh"; \ |
43 |
– |
echo "source $CHERRYPY_ROOT/etc/profile.d/init.csh"; \ |
49 |
|
echo "source $PHEDEX_MICRO_ROOT/etc/profile.d/init.csh"; \ |
50 |
< |
echo "source $BOSS_ROOT/etc/profile.d/init.csh" ) > %{i}/etc/profile.d/dependencies-setup.csh |
50 |
> |
echo "source $PY2_NUMPY_ROOT/etc/profile.d/init.csh"; \ |
51 |
> |
echo "source $PY2_MATPLOTLIB_ROOT/etc/profile.d/init.csh"; \ |
52 |
> |
echo "source $PY2_PIL_ROOT/etc/profile.d/init.csh"; \ |
53 |
> |
echo "source $PY2_PYOPENSSL_ROOT/etc/profile.d/init.csh"; \ |
54 |
> |
echo "source $WEBTOOLS_ROOT/etc/profile.d/init.csh"; \ |
55 |
> |
echo "source $WMCORE_ROOT/etc/profile.d/init.csh" ) > %{i}/etc/profile.d/dependencies-setup.csh |
56 |
> |
|
57 |
|
|
58 |
|
%post |
59 |
|
%{relocateConfig}etc/profile.d/dependencies-setup.sh |
60 |
|
%{relocateConfig}etc/profile.d/dependencies-setup.csh |
61 |
+ |
|