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.23 by eulisse, Tue Jul 25 08:57:03 2006 UTC vs.
Revision 1.26 by ratnik, Wed Apr 18 23:46:01 2007 UTC

# Line 1 | Line 1
1   ### RPM lcg SCRAM V0_20_0
2 + Requires: gcc-wrapper
3   ## INITENV +PATH PATH %instroot/bin
4  
5   # This package is somewhat unusual compared to other packages we
# Line 31 | Line 32
32   %define cvsrepo cvs://:pserver:anonymous@spitools.cvs.cern.ch:2401/cvs/SPITOOLS?passwd=Ah<Z
33  
34   Source0: %{cvsrepo}&tag=-r%{v}&module=%n&output=/source.tar.gz
35 < Requires: p5-libwww-perl
35 > Requires: p5-libwww-perl cms-env
36   Patch: scram-detect-make
37   Patch2: scram-no-check-env
38   Provides: perl(ActiveDoc::UserInterface_basic)
# Line 49 | Line 50 | pwd
50   %patch2 -p1
51   rm src/URL/test/test_URL_cvsfile.pm
52   %build
53 + ## IMPORT gcc-wrapper
54   %install
55   tar -cf - . | tar -C %i -xvvf -
56  
57   mkdir -p %instroot/bin %instroot/share/scramdbv0
58 + mkdir -p %i/bin
59   touch %instroot/share/scramdbv0/project.lookup
60 < cat > %instroot/bin/scramv0 << \EOF
60 > [ -f %i/bin/scramv0 ] && rm %i/bin/scramv0
61 > cat > %i/bin/scramv0 << \EOF
62   #!/bin/sh
63  
64   # FIXME: Handle -re?
# Line 75 | Line 79 | export PERL5LIB SITENAME SEARCHOVRD LOCT
79   exec perl "$SCRAM_HOME/src/scramcli" ${1+"$@"}
80   EOF
81  
82 + [ -f %instroot/bin/scramv0 ] && rm %instroot/bin/scramv0
83 + cat > %instroot/bin/scramv0 << \EOF_BIN_SCRAMV0
84 + #!/bin/sh
85 + source %instroot/`cmsarch`/lcg/%n/%v/etc/profile.d/init.sh
86 + %instroot/`cmsarch`/lcg/%n/%v/bin/scramv0 $@
87 + EOF_BIN_SCRAMV0
88 +
89   mkdir -p %{instroot}/%{cmsplatf}/etc/profile.d
90   mkdir -p %{i}/etc/profile.d
91   echo "#!/bin/sh" > %i/etc/profile.d/dependencies-setup.sh
# Line 83 | Line 94 | echo "#!/bin/csh" > %i/etc/profile.d/dep
94   echo "source $P5_LIBWWW_PERL_ROOT/etc/profile.d/init.csh" >> %i/etc/profile.d/dependencies-setup.csh
95  
96   chmod 755 %instroot/bin/scramv0
97 + chmod 755 %i/bin/scramv0
98   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
99   ln -sf scramv0 %{instroot}/bin/scram
100  
101   %files
# Line 93 | Line 103 | ln -sf scramv0 %{instroot}/bin/scram
103   %{instroot}/bin/scram
104   %{instroot}/bin/scramv0
105   %{instroot}/share/scramdbv0
96 %{instroot}/%{cmsplatf}/etc/profile.d/S00SCRAM.sh
97 %{instroot}/%{cmsplatf}/etc/profile.d/S00SCRAM.csh
106   %exclude %instroot/share/scramdbv0/project.lookup
107   %exclude %i/scripts/DrDOC.sh
108   %post
109   %{relocateConfig}etc/profile.d/dependencies-setup.sh
110   %{relocateConfig}etc/profile.d/dependencies-setup.csh
111 + %{relocateConfig}bin/scramv0
112   perl -p -i -e "s|%instroot|$RPM_INSTALL_PREFIX|g" $RPM_INSTALL_PREFIX/bin/scramv0
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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines