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

Comparing COMP/CMSDIST/SCRAM.spec (file contents):
Revision 1.13 by eulisse, Thu Jun 15 22:57:41 2006 UTC vs.
Revision 1.22 by eulisse, Tue Jul 18 08:15:47 2006 UTC

# Line 52 | Line 52 | rm src/URL/test/test_URL_cvsfile.pm
52   %install
53   tar -cf - . | tar -C %i -xvvf -
54  
55 < mkdir -p %instroot/bin %instroot/share/scramdb
55 > mkdir -p %instroot/bin %instroot/share/scramdbv0
56 > touch %instroot/share/scramdbv0/project.lookup
57   cat > %instroot/bin/scram << \EOF
58   #!/bin/sh
59  
# Line 62 | Line 63 | cat > %instroot/bin/scram << \EOF
63  
64   SCRAM=$0
65   : ${SCRAM_HOME=%i}
66 < : ${SCRAM_LOOKUPDB=%instroot/share/scramdb/project.lookup}
66 > : ${SCRAM_LOOKUPDB=%instroot/share/scramdbv0/project.lookup}
67   : ${SCRAMPERL="/usr/bin/env perl"}
68   PERL5LIB=$SCRAM_HOME/src${PERL5LIB+":$PERL5LIB"}
69   : ${SITENAME=CERN}
# Line 74 | Line 75 | export PERL5LIB SITENAME SEARCHOVRD LOCT
75   exec perl "$SCRAM_HOME/src/scramcli" ${1+"$@"}
76   EOF
77  
78 + mkdir -p %{instroot}/%{cmsplatf}/etc/profile.d
79   mkdir -p %{i}/etc/profile.d
80   echo "#!/bin/sh" > %i/etc/profile.d/dependencies-setup.sh
81   echo "source $P5_LIBWWW_PERL_ROOT/etc/profile.d/init.sh" >> %i/etc/profile.d/dependencies-setup.sh
# Line 82 | Line 84 | echo "source $P5_LIBWWW_PERL_ROOT/etc/pr
84  
85   chmod 755 %instroot/bin/scram
86   perl -p -i -e "s|#!.*perl|#!/usr/bin/env perl|" $(find %{i})
87 + ln -sf %{i}/etc/profile.d/init.sh  %{instroot}/%{cmsplatf}/etc/profile.d/S00SCRAM.sh
88 + ln -sf %{i}/etc/profile.d/init.csh %{instroot}/%{cmsplatf}/etc/profile.d/S00SCRAM.csh
89 + ln -sf scram %{instroot}/bin/scramv0
90 +
91   %files
92   %i
93 < %instroot/bin/scram
94 < %instroot/share/scramdb
93 > %{instroot}/bin/scram
94 > %{instroot}/bin/scramv0
95 > %{instroot}/share/scramdbv0
96 > %{instroot}/%{cmsplatf}/etc/profile.d/S00SCRAM.sh
97 > %{instroot}/%{cmsplatf}/etc/profile.d/S00SCRAM.csh
98 > %exclude %instroot/share/scramdbv0/project.lookup
99 > %exclude %i/scripts/DrDOC.sh
100   %post
101   %{relocateConfig}etc/profile.d/dependencies-setup.sh
102   %{relocateConfig}etc/profile.d/dependencies-setup.csh
92
103   perl -p -i -e "s|%instroot|$RPM_INSTALL_PREFIX|g" $RPM_INSTALL_PREFIX/bin/scram
104 + ln -sf $RPM_INSTALL_PREFIX/%pkgrel/etc/profile.d/init.sh $RPM_INSTALL_PREFIX/%{cmsplatf}/etc/profile.d/S00SCRAM.sh
105 + ln -sf $RPM_INSTALL_PREFIX/%pkgrel/etc/profile.d/init.csh $RPM_INSTALL_PREFIX/%{cmsplatf}/etc/profile.d/S00SCRAM.csh
106 + #

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines