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.19 by eulisse, Wed Jun 21 16:20:43 2006 UTC vs.
Revision 1.27 by elmer, Tue May 1 10:57:27 2007 UTC

# Line 31 | Line 31
31   %define cvsrepo cvs://:pserver:anonymous@spitools.cvs.cern.ch:2401/cvs/SPITOOLS?passwd=Ah<Z
32  
33   Source0: %{cvsrepo}&tag=-r%{v}&module=%n&output=/source.tar.gz
34 < Requires: p5-libwww-perl
34 > Requires: p5-libwww-perl cms-env
35   Patch: scram-detect-make
36   Patch2: scram-no-check-env
37   Provides: perl(ActiveDoc::UserInterface_basic)
# Line 53 | Line 53 | rm src/URL/test/test_URL_cvsfile.pm
53   tar -cf - . | tar -C %i -xvvf -
54  
55   mkdir -p %instroot/bin %instroot/share/scramdbv0
56 + mkdir -p %i/bin
57   touch %instroot/share/scramdbv0/project.lookup
58 < cat > %instroot/bin/scram << \EOF
58 > [ -f %i/bin/scramv0 ] && rm %i/bin/scramv0
59 > cat > %i/bin/scramv0 << \EOF
60   #!/bin/sh
61  
62   # FIXME: Handle -re?
# Line 75 | Line 77 | export PERL5LIB SITENAME SEARCHOVRD LOCT
77   exec perl "$SCRAM_HOME/src/scramcli" ${1+"$@"}
78   EOF
79  
80 + [ -f %instroot/bin/scramv0 ] && rm %instroot/bin/scramv0
81 + cat > %instroot/bin/scramv0 << \EOF_BIN_SCRAMV0
82 + #!/bin/sh
83 + source %instroot/`cmsarch`/lcg/%n/%v/etc/profile.d/init.sh
84 + %instroot/`cmsarch`/lcg/%n/%v/bin/scramv0 $@
85 + EOF_BIN_SCRAMV0
86 +
87   mkdir -p %{instroot}/%{cmsplatf}/etc/profile.d
88   mkdir -p %{i}/etc/profile.d
89   echo "#!/bin/sh" > %i/etc/profile.d/dependencies-setup.sh
# Line 82 | Line 91 | echo "source $P5_LIBWWW_PERL_ROOT/etc/pr
91   echo "#!/bin/csh" > %i/etc/profile.d/dependencies-setup.csh
92   echo "source $P5_LIBWWW_PERL_ROOT/etc/profile.d/init.csh" >> %i/etc/profile.d/dependencies-setup.csh
93  
94 < chmod 755 %instroot/bin/scram
94 > chmod 755 %instroot/bin/scramv0
95 > chmod 755 %i/bin/scramv0
96   perl -p -i -e "s|#!.*perl|#!/usr/bin/env perl|" $(find %{i})
97 < 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
97 > ln -sf scramv0 %{instroot}/bin/scram
98  
99   %files
100   %i
101   %{instroot}/bin/scram
102 + %{instroot}/bin/scramv0
103   %{instroot}/share/scramdbv0
94 %{instroot}/%{cmsplatf}/etc/profile.d/S00SCRAM.sh
95 %{instroot}/%{cmsplatf}/etc/profile.d/S00SCRAM.csh
104   %exclude %instroot/share/scramdbv0/project.lookup
105 + %exclude %i/scripts/DrDOC.sh
106   %post
107   %{relocateConfig}etc/profile.d/dependencies-setup.sh
108   %{relocateConfig}etc/profile.d/dependencies-setup.csh
109 < perl -p -i -e "s|%instroot|$RPM_INSTALL_PREFIX|g" $RPM_INSTALL_PREFIX/bin/scram
110 < ln -sf $RPM_INSTALL_PREFIX/%pkgrel/etc/profile.d/init.sh $RPM_INSTALL_PREFIX/%{cmsplatf}/etc/profile.d/S00SCRAM.sh
102 < ln -sf $RPM_INSTALL_PREFIX/%pkgrel/etc/profile.d/init.csh $RPM_INSTALL_PREFIX/%{cmsplatf}/etc/profile.d/S00SCRAM.csh
103 < #
109 > %{relocateConfig}bin/scramv0
110 > perl -p -i -e "s|%instroot|$RPM_INSTALL_PREFIX|g" $RPM_INSTALL_PREFIX/bin/scramv0

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines