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.3 by argiro, Fri Feb 10 14:18:09 2006 UTC vs.
Revision 1.16 by eulisse, Wed Jun 21 09:12:35 2006 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
35 + Patch: scram-detect-make
36 + Patch2: scram-no-check-env
37 + Provides: perl(ActiveDoc::UserInterface_basic)
38 + Provides: perl(ActiveDoc::UserQuery)
39 + Provides: perl(ActiveDoc::GroupChecker)
40 + Provides: perl(ObjectStore)
41 + Provides: perl(Utilities::AddDir)
42 + Provides: perl(Utilities::GroupChecker)
43 + Provides: perl(Utilities::SCRAMUtils)
44  
45   %prep
46   %setup -n %n
47 <
47 > pwd
48 > %patch -p1
49 > %patch2 -p1
50 > rm src/URL/test/test_URL_cvsfile.pm
51   %build
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 49 | 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 60 | Line 74 | export PERL5LIB SITENAME SEARCHOVRD LOCT
74  
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
82 + echo "#!/bin/csh" > %i/etc/profile.d/dependencies-setup.csh
83 + echo "source $P5_LIBWWW_PERL_ROOT/etc/profile.d/init.csh" >> %i/etc/profile.d/dependencies-setup.csh
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  
90   %files
91   %i
92 < %instroot/bin/scram
93 < %instroot/share/scramdb
92 > %{instroot}/bin/scram
93 > %{instroot}/share/scramdbv0
94 > %{instroot}/%{cmsplatf}/etc/profile.d
95 > %{instroot}/%{cmsplatf}/etc/profile.d/S00SCRAM.sh
96 > %{instroot}/%{cmsplatf}/etc/profile.d/S00SCRAM.csh
97 > %exclude %instroot/share/scramdbv0/project.lookup
98 > %post
99 > %{relocateConfig}etc/profile.d/dependencies-setup.sh
100 > %{relocateConfig}etc/profile.d/dependencies-setup.csh
101 > perl -p -i -e "s|%instroot|$RPM_INSTALL_PREFIX|g" $RPM_INSTALL_PREFIX/bin/scram
102 > ln -sf $RPM_INSTALL_PREFIX/%pkgrel/etc/profile.d/init.sh $RPM_INSTALL_PREFIX/%{cmsplatf}/etc/profile.d/S00SCRAM.sh
103 > ln -sf $RPM_INSTALL_PREFIX/%pkgrel/etc/profile.d/init.csh $RPM_INSTALL_PREFIX/%{cmsplatf}/etc/profile.d/S00SCRAM.csh
104 > #

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines