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

Comparing COMP/CMSDIST/SCRAMV1.spec (file contents):
Revision 1.93 by muzaffar, Mon Jun 16 07:13:22 2008 UTC vs.
Revision 1.107 by muzaffar, Tue Dec 7 10:16:49 2010 UTC

# Line 1 | Line 1
1 < ### RPM lcg SCRAMV1 V2_0_2
1 > ### RPM lcg SCRAMV1 V2_2_2_pre4
2   ## INITENV +PATH PATH %instroot/common
3 + ## NOCOMPILER
4  
5   # This package is somewhat unusual compared to other packages we
6   # build: we install the normally versioned product "SCRAM", but also
# Line 16 | Line 17
17   # together into one big one?
18  
19   %define cvsrepo  cvs://:pserver:anonymous@cmscvs.cern.ch:/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e
20 < %define cvstag %v
20 > %define cvstag %realversion
21   Source0: %{cvsrepo}&tag=-r%{cvstag}&module=SCRAM&output=/source.tar.gz
22  
23   %prep
# Line 38 | Line 39 | ln -s ../../bin/scram %i/src/main/scram.
39   chmod 755 %i/bin/scram
40  
41   %post
42 < %{relocateConfig}bin/scram
42 > %{relocateRpmPkg}bin/scram
43 > echo "SCRAMV1_ROOT='$CMS_INSTALL_PREFIX/%{pkgrel}'" > $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.sh
44 > echo "SCRAMV1_VERSION='%v'" >> $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.sh
45 > echo "set SCRAMV1_ROOT='$CMS_INSTALL_PREFIX/%{pkgrel}'" > $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.csh
46 > echo "set SCRAMV1_VERSION='%v'" >> $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.csh
47  
48   mkdir -p $RPM_INSTALL_PREFIX/%{cmsplatf}/etc/default-scram
49   # default version for SCRAM release series Vx_y_
# Line 57 | Line 62 | echo $VERSION_STR | tr ' ' '\n' | sort |
62   mkdir -p $RPM_INSTALL_PREFIX/%cmsplatf/lcg/SCRAMV1/scramdb
63   touch $RPM_INSTALL_PREFIX/%cmsplatf/lcg/SCRAMV1/scramdb/project.lookup
64   if [ -f $RPM_INSTALL_PREFIX/share/scramdb/project.lookup ] ; then
65 <  dblinked=`grep "DB $RPM_INSTALL_PREFIX/share/scramdb/project.lookup" $RPM_INSTALL_PREFIX/%cmsplatf/lcg/SCRAMV1/scramdb/project.lookup`
65 >  dblinked=`grep "DB $CMS_INSTALL_PREFIX/share/scramdb/project.lookup" $RPM_INSTALL_PREFIX/%cmsplatf/lcg/SCRAMV1/scramdb/project.lookup`
66    if [ "X$dblinked" = "X" ] ; then
67 <    echo '!DB' $RPM_INSTALL_PREFIX/share/scramdb/project.lookup > $RPM_INSTALL_PREFIX/%cmsplatf/lcg/SCRAMV1/scramdb/project.lookup.link
67 >    echo '!DB' $CMS_INSTALL_PREFIX/share/scramdb/project.lookup > $RPM_INSTALL_PREFIX/%cmsplatf/lcg/SCRAMV1/scramdb/project.lookup.link
68      cat $RPM_INSTALL_PREFIX/%cmsplatf/lcg/SCRAMV1/scramdb/project.lookup >> $RPM_INSTALL_PREFIX/%cmsplatf/lcg/SCRAMV1/scramdb/project.lookup.link
69      mv $RPM_INSTALL_PREFIX/%cmsplatf/lcg/SCRAMV1/scramdb/project.lookup.link $RPM_INSTALL_PREFIX/%cmsplatf/lcg/SCRAMV1/scramdb/project.lookup
70    fi

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines