1 |
< |
### RPM cms prodagent 0.1 |
2 |
< |
## INITENV +PATH PYTHONPATH %i/lib/python |
3 |
< |
%define cvstag pe20060403 |
4 |
< |
Source: cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e&module=MCPROTO&export=MCPROTO&&tag=-r%{cvstag}&output=/MCPROTO.tar.gz |
5 |
< |
Requires: python mysql py2-mysqldb dbs dls boss |
1 |
> |
### RPM cms prodagent PRODAGENT_0_12_7_CRAB_3 |
2 |
> |
## INITENV +PATH PYTHONPATH %i/lib |
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: 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 MCPROTO |
12 |
> |
%setup -n PRODAGENT |
13 |
|
%build |
10 |
– |
mkdir -p %i/lib/python |
11 |
– |
PYTHONPATH=%_builddir/MCPROTO/src/python:$PYTHONPATH |
12 |
– |
PRODAGENT_DIR=%i/lib/python ; export PRODAGENT_DIR |
13 |
– |
DBS_CLIENT_DIR=$DBS_ROOT; export DBS_CLIENT_DIR |
14 |
– |
DLS_CLIENT_DIR=$DLS_ROOT; export DLS_CLIENT_DIR |
15 |
– |
|
16 |
– |
python install/configure.py |
14 |
|
%install |
15 |
< |
mkdir -p %i/lib/python |
16 |
< |
mkdir -p %i/share |
17 |
< |
cp -r ./src/python %i/lib |
18 |
< |
cp -r ./src/sql %i/share |
15 |
> |
make PREFIX=%i install |
16 |
> |
mkdir -p %i/bin |
17 |
> |
cp bin/prod* %{i}/bin |
18 |
> |
mkdir -p %i/test |
19 |
> |
cp -R test/* %i/test/ |
20 |
> |
mkdir -p %i/util |
21 |
> |
cp -R util/* %i/util/ |
22 |
> |
mkdir -p %{i}/etc/profile.d |
23 |
> |
mkdir -p %i/workdir |
24 |
> |
|
25 |
> |
(echo "#!/bin/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_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"; \ |
33 |
> |
echo "source $PHEDEX_MICRO_ROOT/etc/profile.d/init.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"; \ |
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_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"; \ |
49 |
> |
echo "source $PHEDEX_MICRO_ROOT/etc/profile.d/init.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 |
> |
|