1 |
< |
### RPM cms dbs-client DBS_1_0_5 |
2 |
< |
## INITENV +PATH PYTHONPATH %i/lib/Clients/Python |
3 |
< |
# |
4 |
< |
%define cvstag %realversion |
5 |
< |
Source: cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e&module=DBS/Clients/Python&export=DBS/Clients/Python&tag=-r%{cvstag}&output=/dbs-client.tar.gz |
6 |
< |
Requires: python openssl |
1 |
> |
### RPM cms dbs-client DBS_1_0_8 |
2 |
> |
## INITENV +PATH PYTHONPATH %i/lib/ |
3 |
> |
|
4 |
> |
%define cvstag %{realversion} |
5 |
> |
%define cvsserver cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e |
6 |
> |
Source: %cvsserver&strategy=checkout&module=DBS/Clients/Python&nocache=true&export=DBS&tag=-r%{cvstag}&output=/dbs-client.tar.gz |
7 |
> |
Requires: python openssl py2-zsi |
8 |
> |
|
9 |
|
|
10 |
|
%prep |
11 |
|
%setup -n DBS |
21 |
|
(echo "#!/bin/sh"; \ |
22 |
|
echo "source $PYTHON_ROOT/etc/profile.d/init.sh"; \ |
23 |
|
echo "source $OPENSSL_ROOT/etc/profile.d/init.sh"; \ |
24 |
+ |
echo "source $PY2_ZSI_ROOT/etc/profile.d/init.sh"; \ |
25 |
|
) > %{i}/etc/profile.d/dependencies-setup.sh |
26 |
|
|
27 |
|
(echo "#!/bin/tcsh"; \ |
28 |
|
echo "source $PYTHON_ROOT/etc/profile.d/init.csh"; \ |
29 |
|
echo "source $OPENSSL_ROOT/etc/profile.d/init.csh"; \ |
30 |
+ |
echo "source $PY2_ZSI_ROOT/etc/profile.d/init.csh"; \ |
31 |
|
) > %{i}/etc/profile.d/dependencies-setup.csh |
32 |
|
|
33 |
+ |
# SCRAM ToolBox toolfile |
34 |
+ |
mkdir -p %i/etc/scram.d |
35 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/%n |
36 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
37 |
+ |
<Tool name=dbs-client version=%v> |
38 |
+ |
<client> |
39 |
+ |
<Environment name=DBS_CLIENT_BASE default="%i"></Environment> |
40 |
+ |
</client> |
41 |
+ |
<Runtime name=PATH value="$DBS_CLIENT_BASE/bin" type=path> |
42 |
+ |
</Tool> |
43 |
+ |
EOF_TOOLFILE |
44 |
+ |
|
45 |
|
%post |
46 |
|
%{relocateConfig}etc/profile.d/dependencies-setup.sh |
47 |
|
%{relocateConfig}etc/profile.d/dependencies-setup.csh |
48 |
+ |
%{relocateConfig}etc/scram.d/%n |