ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/dbs-client.spec
(Generate patch)

Comparing COMP/CMSDIST/dbs-client.spec (file contents):
Revision 1.2 by valya, Wed Feb 28 16:02:33 2007 UTC vs.
Revision 1.90 by valya, Fri Apr 10 18:04:27 2009 UTC

# Line 1 | Line 1
1 < ### RPM cms dbs-client v00_00_12
2 < ## INITENV +PATH PYTHONPATH %i/lib
1 > ### RPM cms dbs-client DBS_2_0_6
2 > ## INITENV +PATH PYTHONPATH %i/lib/
3 > ## INITENV +PATH PYTHONPATH %i/bin/
4 > ## INITENV +PATH PYTHONPATH %{i}/lib/
5 > ## INITENV +PATH PYTHONPATH %{i}/lib/DBSAPI/
6 > ## INITENV SET DBS_CLIENT_CONFIG %{i}/lib/DBSAPI/dbs.config
7 > ## INITENV SET DBSCMD_HOME %{i}/lib/DBSAPI
8  
9 < %define cvstag %v
10 < 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
11 < Requires: python
9 >
10 > %define cvstag %{realversion}
11 > %define cvsserver cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e
12 > Source: %cvsserver&strategy=checkout&module=DBS/Clients/Python&nocache=true&export=DBS&tag=-r%{cvstag}&output=/dbs-client.tar.gz
13 > Requires: python openssl py2-zsi py2-pyxml
14  
15   %prep
16   %setup -n DBS
# Line 11 | Line 18 | Requires: python
18   (make DBSHOME=%_builddir/DBS/Clients/Python )
19  
20   %install
21 < mkdir -p %i/bin
22 < mkdir -p %i/lib/python
23 < ls -l Clients/Python
24 < cp -r Clients/Python/* %i/lib/python
21 > mkdir -p %{i}/bin
22 > mkdir -p %{i}/lib
23 > mkdir -p %{i}/etc/profile.d
24 > cp -r Clients/Python/* %{i}/lib/
25 > mv %{i}/lib/bin/* %{i}/bin/
26 >
27 > #cp -r Clients/Python/DBSAPI/dbsCommandLine.py %{i}/bin/dbs
28 > #chmod a+x %{i}/bin/dbs
29 >
30 > (echo "#!/bin/sh"; \
31 > echo "source $PYTHON_ROOT/etc/profile.d/init.sh"; \
32 > echo "source $OPENSSL_ROOT/etc/profile.d/init.sh"; \
33 > echo "source $PY2_ZSI_ROOT/etc/profile.d/init.sh"; \
34 > echo "source $PY2_PYXML_ROOT/etc/profile.d/init.sh"; \
35 > ) > %{i}/etc/profile.d/dependencies-setup.sh
36 >
37 > (echo "#!/bin/tcsh"; \
38 > echo "source $PYTHON_ROOT/etc/profile.d/init.csh"; \
39 > echo "source $OPENSSL_ROOT/etc/profile.d/init.csh"; \
40 > echo "source $PY2_ZSI_ROOT/etc/profile.d/init.csh"; \
41 > echo "source $PY2_PYXML_ROOT/etc/profile.d/init.csh"; \
42 > ) > %{i}/etc/profile.d/dependencies-setup.csh
43 >
44 > # SCRAM ToolBox toolfile
45 > mkdir -p %i/etc/scram.d
46 > cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
47 > <doc type=BuildSystem::ToolDoc version=1.0>
48 > <Tool name=dbs-client version=%v>
49 > <client>
50 > <Environment name=DBS_CLIENT_BASE default="%i"></Environment>
51 > </client>
52 > <Runtime name=PATH value="$DBS_CLIENT_BASE/bin" type=path>
53 > <Runtime name=PYTHONPATH value="$DBS_CLIENT_BASE/lib" type=path>
54 > <Runtime name=PYTHONPATH value="$DBS_CLIENT_BASE/lib/DBSAPI" type=path>
55 > <Runtime name=DBS_CLIENT_CONFIG value="$DBS_CLIENT_BASE/lib/DBSAPI/dbs.config">
56 > <Runtime name=DBSCMD_HOME value="$DBS_CLIENT_BASE/lib/DBSAPI">
57 > </Tool>
58 > EOF_TOOLFILE
59 >
60 >
61 >
62 > %post
63 > %{relocateConfig}etc/profile.d/dependencies-setup.sh
64 > %{relocateConfig}etc/profile.d/dependencies-setup.csh
65 > %{relocateConfig}etc/scram.d/%n
66  
67 + # hack init.csh to get around bug in current version of PKGTOOLS
68 + # will have no effect with the bug fixed verion
69 + perl -p -i -e 's|\. |source |' $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.csh

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines