1 |
< |
### RPM cms dbs-client DBS_1_2_4 |
1 |
> |
### RPM cms dbs-client DBS_2_0_7_pre3 |
2 |
|
## INITENV +PATH PYTHONPATH %i/lib/ |
3 |
|
## INITENV +PATH PYTHONPATH %i/bin/ |
4 |
|
## INITENV +PATH PYTHONPATH %{i}/lib/ |
9 |
|
%define cvstag %{realversion} |
10 |
|
%define cvsserver cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e |
11 |
|
Source: %cvsserver&strategy=checkout&module=DBS/Clients/Python&nocache=true&export=DBS&tag=-r%{cvstag}&output=/dbs-client.tar.gz |
12 |
< |
Requires: python openssl py2-zsi |
12 |
> |
Requires: python openssl py2-zsi py2-pyxml |
13 |
|
|
14 |
|
%prep |
15 |
|
%setup -n DBS |
21 |
|
mkdir -p %{i}/lib |
22 |
|
mkdir -p %{i}/etc/profile.d |
23 |
|
cp -r Clients/Python/* %{i}/lib/ |
24 |
< |
cp -r Clients/Python/DBSAPI/dbsCommandLine.py %{i}/bin/dbs |
25 |
< |
chmod a+x %{i}/bin/dbs |
24 |
> |
mv %{i}/lib/bin/* %{i}/bin/ |
25 |
> |
|
26 |
> |
#cp -r Clients/Python/DBSAPI/dbsCommandLine.py %{i}/bin/dbs |
27 |
> |
#chmod a+x %{i}/bin/dbs |
28 |
|
|
29 |
|
(echo "#!/bin/sh"; \ |
30 |
|
echo "source $PYTHON_ROOT/etc/profile.d/init.sh"; \ |