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

Comparing COMP/CMSDIST/dbs-web.spec (file contents):
Revision 1.7 by ratnik, Wed Apr 18 23:46:01 2007 UTC vs.
Revision 1.21 by valya, Tue May 8 17:42:49 2007 UTC

# Line 1 | Line 1
1 < ### RPM cms dbs-web V03_03_02
2 < Requires: gcc-wrapper
1 > ### RPM cms dbs-web V03_04_11
2   ## INITENV +PATH PYTHONPATH %i/lib
3  
4   %define cvstag %v
# Line 9 | Line 8 | Requires: python dls py2-sqlalchemy cher
8   %prep
9   %setup -n DBS
10   %build
12 ## IMPORT gcc-wrapper
11   (make DDHOME=%_builddir/DBS/Web/DataDiscovery )
12  
13   %install
# Line 18 | Line 16 | mkdir -p %{i}/etc/profile.d
16   mkdir -p %{i}/lib/Web/DataDiscovery
17   cp -r Web/DataDiscovery/* %{i}/lib/
18  
19 < ln -s $WEBTOOLS_ROOT %{i}/lib/Web/DataDiscovery/WEBTOOLS
20 < ln -s $YUI_ROOT %{i}/lib/Web/DataDiscovery/YUI
19 > #ln -s $WEBTOOLS_ROOT %{i}/lib/Web/DataDiscovery/WEBTOOLS
20 > cd %{i}/lib/Web/DataDiscovery
21 > ln -s $YUI_ROOT/build YUI
22  
23   # here I use octal code \044 for $ sign since I want "$NAME" to be appear in
24   # init.sh file, instead of interpreting it here.
# Line 41 | Line 40 | ln -s $YUI_ROOT %{i}/lib/Web/DataDiscove
40   echo -e "export DBS_DBPARAM=\044DBS_WEB_ROOT/lib/Web/DataDiscovery/DBParam"; \
41   echo -e "export PYTHONPATH=\044PYTHONPATH:\044DLSHOME"; \
42   echo -e "export PYTHONPATH=\044DDHOME:\044DDHOME/QueryBuilder:\044PYTHONPATH"; \
43 <
43 > echo -e "rm -f \044DDHOME/YUI"; \
44 > echo -e "ln -s $YUI_ROOT/build \044DDHOME/YUI"; \
45   ) > %{i}/etc/profile.d/dependencies-setup.sh
46  
47   (echo "#!/bin/tcsh"; \
# Line 62 | Line 62 | ln -s $YUI_ROOT %{i}/lib/Web/DataDiscove
62   echo -e "setenv DBS_DBPARAM \044DBS_WEB_ROOT/lib/Web/DataDiscovery/DBParam"; \
63   echo -e "setenv PYTHONPATH \044PYTHONPATH:\044DLSHOME"; \
64   echo -e "setenv PYTHONPATH \044DDHOME:\044DDHOME/QueryBuilder:\044PYTHONPATH"; \
65 + echo -e "rm -f \044DDHOME/YUI"; \
66 + echo -e "ln -s $YUI_ROOT/build \044DDHOME/YUI"; \
67   ) > %{i}/etc/profile.d/dependencies-setup.csh
68  
69   # Generate python code from templates
68 cd %{i}/lib/Web/DataDiscovery
70   ./scripts/genTemplates.sh
71  
72   %post

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines