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.41 by metson, Sat Mar 15 17:28:34 2008 UTC vs.
Revision 1.78 by fvlingen, Fri Dec 19 12:43:25 2008 UTC

# Line 1 | Line 1
1 < ### RPM cms dbs-client DBS_1_1_0
2 < ## INITENV +PATH PYTHONPATH %i/lib/Clients/Python
3 < #
4 < #
5 < %define cvstag %v
6 < 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
7 < Requires: python openssl py2-zsi
8 <
1 > ### RPM cms dbs-client DBS_2_0_4_patch1
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 %{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 py2-pyxml
13  
14   %prep
15   %setup -n DBS
# Line 17 | Line 21 | mkdir -p %{i}/bin
21   mkdir -p %{i}/lib
22   mkdir -p %{i}/etc/profile.d
23   cp -r Clients/Python/* %{i}/lib/
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"; \
31   echo "source $OPENSSL_ROOT/etc/profile.d/init.sh"; \
32 + echo "source $PY2_ZSI_ROOT/etc/profile.d/init.sh"; \
33 + echo "source $PY2_PYXML_ROOT/etc/profile.d/init.sh"; \
34   ) > %{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 $PY2_ZSI_ROOT/etc/profile.d/init.csh"; \
40 + echo "source $PY2_PYXML_ROOT/etc/profile.d/init.csh"; \
41   ) > %{i}/etc/profile.d/dependencies-setup.csh
42  
43 + # SCRAM ToolBox toolfile
44 + mkdir -p %i/etc/scram.d
45 + cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
46 + <doc type=BuildSystem::ToolDoc version=1.0>
47 + <Tool name=dbs-client version=%v>
48 + <client>
49 + <Environment name=DBS_CLIENT_BASE default="%i"></Environment>
50 + </client>
51 + <Runtime name=PATH value="$DBS_CLIENT_BASE/bin" type=path>
52 + <Runtime name=PYTHONPATH value="$DBS_CLIENT_BASE/lib" type=path>
53 + <Runtime name=PYTHONPATH value="$DBS_CLIENT_BASE/lib/DBSAPI" type=path>
54 + <Runtime name=DBS_CLIENT_CONFIG value="$DBS_CLIENT_BASE/lib/DBSAPI/dbs.config">
55 + <Runtime name=DBSCMD_HOME value="$DBS_CLIENT_BASE/lib/DBSAPI">
56 + </Tool>
57 + EOF_TOOLFILE
58 +
59 +
60 +
61   %post
62   %{relocateConfig}etc/profile.d/dependencies-setup.sh
63   %{relocateConfig}etc/profile.d/dependencies-setup.csh
64 + %{relocateConfig}etc/scram.d/%n
65 +
66 + # hack init.csh to get around bug in current version of PKGTOOLS
67 + # will have no effect with the bug fixed verion
68 + 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