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.18 by afanfani, Tue May 22 23:12:17 2007 UTC vs.
Revision 1.64 by valya, Mon Sep 8 17:16:58 2008 UTC

# Line 1 | Line 1
1 < ### RPM cms dbs-client DBS_1_0_1
2 < ## INITENV +PATH PYTHONPATH %i/lib/Clients/Python
3 < #
4 < %define cvstag %v
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_2_0_2
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 15 | 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 + #cp -r Clients/Python/DBSAPI/dbsCommandLine.py %{i}/bin/dbs
26 + #chmod a+x %{i}/bin/dbs
27  
28   (echo "#!/bin/sh"; \
29   echo "source $PYTHON_ROOT/etc/profile.d/init.sh"; \
30   echo "source $OPENSSL_ROOT/etc/profile.d/init.sh"; \
31 + echo "source $PY2_ZSI_ROOT/etc/profile.d/init.sh"; \
32 + echo "source $PY2_PYXML_ROOT/etc/profile.d/init.sh"; \
33   ) > %{i}/etc/profile.d/dependencies-setup.sh
34  
35   (echo "#!/bin/tcsh"; \
36   echo "source $PYTHON_ROOT/etc/profile.d/init.csh"; \
37   echo "source $OPENSSL_ROOT/etc/profile.d/init.csh"; \
38 + echo "source $PY2_ZSI_ROOT/etc/profile.d/init.csh"; \
39 + echo "source $PY2_PYXML_ROOT/etc/profile.d/init.csh"; \
40   ) > %{i}/etc/profile.d/dependencies-setup.csh
41  
42 + # SCRAM ToolBox toolfile
43 + mkdir -p %i/etc/scram.d
44 + cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
45 + <doc type=BuildSystem::ToolDoc version=1.0>
46 + <Tool name=dbs-client version=%v>
47 + <client>
48 + <Environment name=DBS_CLIENT_BASE default="%i"></Environment>
49 + </client>
50 + <Runtime name=PATH value="$DBS_CLIENT_BASE/bin" type=path>
51 + <Runtime name=PYTHONPATH value="$DBS_CLIENT_BASE/lib" type=path>
52 + <Runtime name=PYTHONPATH value="$DBS_CLIENT_BASE/lib/DBSAPI" type=path>
53 + <Runtime name=DBS_CLIENT_CONFIG value="$DBS_CLIENT_BASE/lib/DBSAPI/dbs.config">
54 + <Runtime name=DBSCMD_HOME value="$DBS_CLIENT_BASE/lib/DBSAPI">
55 + </Tool>
56 + EOF_TOOLFILE
57 +
58 +
59 +
60   %post
61   %{relocateConfig}etc/profile.d/dependencies-setup.sh
62   %{relocateConfig}etc/profile.d/dependencies-setup.csh
63 + %{relocateConfig}etc/scram.d/%n
64 +
65 + # hack init.csh to get around bug in current version of PKGTOOLS
66 + # will have no effect with the bug fixed verion
67 + 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