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

Comparing COMP/CMSDIST/cms-common.spec (file contents):
Revision 1.2 by elmer, Thu Jan 24 08:33:05 2008 UTC vs.
Revision 1.7 by muzaffar, Tue Feb 5 15:51:59 2008 UTC

# Line 7 | Line 7 | echo $SCRAM_ROOT
7  
8   mkdir -p %instroot/common %instroot/bin %{instroot}/%{cmsplatf}/etc/profile.d
9  
10 < # Do not create these common files if already exist
10 > # Do not create these common files if already exist
11   # This is to avoid different arch creating these files
12   if [ ! -f %instroot/common/.cms-common ]; then
13   install -m 755 %_sourcedir/cmsos %instroot/common/cmsos
# Line 157 | Line 157 | if [ "X$SCRAM_VERSION" = "X" ] ; then
157    done
158    if [ -f ${dir}/config/scram_version ] ; then
159      ver=`cat ${dir}/config/scram_version`
160 +    if [ "X$ver" = "XV1_0_3-p1" ] ; then
161 +      if [ "X$CMSARCH" = "Xslc4_ia32_gcc345" ] ; then
162 +        ver=V1_0_3-p2
163 +      fi
164 +    fi
165      case $ver in
166        V0_* ) srbase=lcg/SCRAM/${ver};;
167        * ) srbase=lcg/SCRAMV1/${ver};;
# Line 180 | Line 185 | source %{instroot}/$CMSARCH/${srbase}/et
185   # running (i686 or x84_64) scram detects it as ia32.
186   CMSPLAT=`echo $CMSARCH | cut -d_ -f 2`
187   USE_LINUX32=
188 < if [ `uname` = Linux]; then
188 > if [ `uname` == Linux ]; then
189    if [ "$CMSPLAT" = "ia32" ]
190    then
191        USE_LINUX32=linux32
# Line 192 | Line 197 | EOF_COMMON_SCRAM
197   chmod +x %{instroot}/common/scram
198   ln -sf scram %{instroot}/common/scramv1
199   ln -sf scram %{instroot}/common/scramv0
200 + ln -sf ../common/cmsarch %instroot/bin/cmsarch
201 + ln -sf ../common/cmsarch %instroot/bin/cmsos
202 + ln -sf ../common/scramv1 %instroot/bin/scramv1
203   touch %instroot/common/.cms-common
204   fi
205  
206   touch %instroot/%cmsplatf/etc/profile.d/dummy
199 ln -s ../common/cmsarch %instroot/bin/cmsarch
200 ln -s ../common/cmsarch %instroot/bin/cmsos
207  
208   %post
209   echo $RPM_INSTALL_PREFIX
# Line 216 | Line 222 | perl -p -i -e "s|%{instroot}|$RPM_INSTAL
222   %instroot/common/scram
223   %instroot/common/scramv1
224   %instroot/common/scramv0
225 + %instroot/common/.cms-common
226 + %instroot/bin/cmsos
227 + %instroot/bin/cmsarch
228 + %instroot/bin/scramv1
229   %instroot/%cmsplatf/etc/profile.d
230   %exclude %instroot/%cmsplatf/etc/profile.d/*

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines