1 |
< |
### RPM cms prodagent PRODAGENT_0_4_0_pre3 |
1 |
> |
### RPM cms prodagent PRODAGENT_0_9_2 |
2 |
|
## INITENV +PATH PYTHONPATH %i/lib |
3 |
< |
|
3 |
> |
# |
4 |
> |
# |
5 |
|
%define cvstag %v |
6 |
|
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 |
7 |
< |
Requires: python mysql py2-mysqldb dbs-client dls boss prodcommon openssl cherrypy PHEDEX-micro |
7 |
> |
#Requires: webtools python mysql py2-mysqldb dbs-client boss prodcommon openssl cherrypy PHEDEX-micro |
8 |
> |
Requires: webtools dbs-client boss prodcommon py2-pyxml PHEDEX-micro |
9 |
|
|
10 |
|
%prep |
11 |
|
%setup -n PRODAGENT |
21 |
|
mkdir -p %{i}/etc/profile.d |
22 |
|
mkdir -p %i/workdir |
23 |
|
|
22 |
– |
|
24 |
|
(echo "#!/bin/sh"; \ |
25 |
< |
echo "source $PYTHON_ROOT/etc/profile.d/init.sh"; \ |
26 |
< |
echo "source $OPENSSL_ROOT/etc/profile.d/init.sh"; \ |
27 |
< |
echo "source $MYSQL_ROOT/etc/profile.d/init.sh"; \ |
28 |
< |
echo "source $PY2_MYSQLDB_ROOT/etc/profile.d/init.sh"; \ |
25 |
> |
# echo "source $PYTHON_ROOT/etc/profile.d/init.sh"; \ |
26 |
> |
# echo "source $OPENSSL_ROOT/etc/profile.d/init.sh"; \ |
27 |
> |
# echo "source $MYSQL_ROOT/etc/profile.d/init.sh"; \ |
28 |
> |
# echo "source $PY2_MYSQLDB_ROOT/etc/profile.d/init.sh"; \ |
29 |
|
echo "source $DBS_CLIENT_ROOT/etc/profile.d/init.sh"; \ |
29 |
– |
echo "source $DLS_ROOT/etc/profile.d/init.sh"; \ |
30 |
|
echo "source $PRODCOMMON_ROOT/etc/profile.d/init.sh"; \ |
31 |
< |
echo "source $CHERRYPY_ROOT/etc/profile.d/init.sh"; \ |
32 |
< |
echo "source $PHEDEX_MICRO_ROOT/etc/profile.d/init.sh"; \ |
31 |
> |
# echo "source $CHERRYPY_ROOT/etc/profile.d/init.sh"; \ |
32 |
> |
# echo "source $PHEDEX_MICRO_ROOT/etc/profile.d/init.sh"; \ |
33 |
> |
echo "source $WEBTOOLS_ROOT/etc/profile.d/init.sh"; \ |
34 |
|
echo "source $BOSS_ROOT/etc/profile.d/init.sh" ) > %{i}/etc/profile.d/dependencies-setup.sh |
35 |
|
|
36 |
|
(echo "#!/bin/tcsh"; \ |
37 |
< |
echo "source $PYTHON_ROOT/etc/profile.d/init.csh"; \ |
38 |
< |
echo "source $OPENSSL_ROOT/etc/profile.d/init.csh"; \ |
39 |
< |
echo "source $MYSQL_ROOT/etc/profile.d/init.csh"; \ |
40 |
< |
echo "source $PY2_MYSQLDB_ROOT/etc/profile.d/init.csh"; \ |
37 |
> |
# echo "source $PYTHON_ROOT/etc/profile.d/init.csh"; \ |
38 |
> |
# echo "source $OPENSSL_ROOT/etc/profile.d/init.csh"; \ |
39 |
> |
# echo "source $MYSQL_ROOT/etc/profile.d/init.csh"; \ |
40 |
> |
# echo "source $PY2_MYSQLDB_ROOT/etc/profile.d/init.csh"; \ |
41 |
|
echo "source $DBS_CLIENT_ROOT/etc/profile.d/init.csh"; \ |
41 |
– |
echo "source $DLS_ROOT/etc/profile.d/init.csh"; \ |
42 |
|
echo "source $PRODCOMMON_ROOT/etc/profile.d/init.csh"; \ |
43 |
< |
echo "source $CHERRYPY_ROOT/etc/profile.d/init.csh"; \ |
44 |
< |
echo "source $PHEDEX_MICRO_ROOT/etc/profile.d/init.csh"; \ |
43 |
> |
# echo "source $CHERRYPY_ROOT/etc/profile.d/init.csh"; \ |
44 |
> |
# echo "source $PHEDEX_MICRO_ROOT/etc/profile.d/init.csh"; \ |
45 |
> |
echo "source $WEBTOOLS_ROOT/etc/profile.d/init.csh"; \ |
46 |
|
echo "source $BOSS_ROOT/etc/profile.d/init.csh" ) > %{i}/etc/profile.d/dependencies-setup.csh |
47 |
|
|
48 |
+ |
|
49 |
|
%post |
50 |
|
%{relocateConfig}etc/profile.d/dependencies-setup.sh |
51 |
|
%{relocateConfig}etc/profile.d/dependencies-setup.csh |