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.12 by eulisse, Wed May 31 13:40:49 2006 UTC vs.
Revision 1.16 by eulisse, Wed Jun 21 15:47:10 2006 UTC

# Line 52 | Line 52 | Source0: %{cvsrepo}&tag=-r%{v}&module=SC
52   tar -cf - . | tar -C %i -xvvf -
53   rm -rf %i/cgi
54   mkdir -p %instroot/bin %instroot/share/scramdb %i/Installation
55 + touch %instroot/share/scramdb/project.lookup
56  
57   cat Installation/scram.pl.in | sed -e "s|@PERLEXE@|/usr/bin/env perl|;s|@SCRAM_HOME@|%i|;s|@INSTALLDIR@|%i/src|" > %instroot/bin/scramv1
58   cat Installation/SCRAM_SITE.pm.in | sed -e "s|@SCRAM_HOME@|%i|;s|@SCRAM_LOOKUPDB_DIR@|%instroot/share/scramdb/|;s|@PERLEXE@|/usr/bin/env perl|;s|@TT2INSTALLDIR@|$TEMPLATE_TOOLKIT_ROOT/lib|;s|@SITETEMPLATEDIR@|%i/Templates|;s|@SCRAM_SITENAME@|STANDALONE|" > %i/Installation/SCRAM_SITE.pm
# Line 80 | Line 81 | chmod 755 %instroot/bin/scramv1
81   mkdir %i/etc
82   echo $PERL5LIB > %i/etc/perl5lib.env
83  
84 + mkdir -p %{instroot}/%{cmsplatf}/etc/profile.d
85   mkdir -p %{i}/etc/profile.d
86   echo "#!/bin/sh" > %i/etc/profile.d/dependencies-setup.sh
87   echo "source $EXPAT_ROOT/etc/profile.d/init.sh" >> %i/etc/profile.d/dependencies-setup.sh
# Line 97 | Line 99 | echo "source $P5_LIBWWW_PERL_ROOT/etc/pr
99  
100  
101   perl -p -i -e "s|#!.*perl|/usr/bin/env perl|" %{i}/doc/doxygen/DoxyFilt.pl
102 + ln -sf %{i}/etc/profile.d/init.sh  %{instroot}/%{cmsplatf}/etc/profile.d/S00SCRAMV1.sh
103 + ln -sf %{i}/etc/profile.d/init.csh %{instroot}/%{cmsplatf}/etc/profile.d/S00SCRAMV1.csh
104  
105   %post
106   %{relocateConfig}etc/perl5lib.env
# Line 110 | Line 114 | fi
114   %{relocateConfig}etc/profile.d/dependencies-setup.sh
115   %{relocateConfig}etc/profile.d/dependencies-setup.csh
116   perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $RPM_INSTALL_PREFIX/bin/scramv1
117 + ln -sf $RPM_INSTALL_PREFIX/%pkgrel/etc/profile.d/init.sh $RPM_INSTALL_PREFIX/%{cmsplatf}/etc/profile.d/S00SCRAMV1.sh
118 + ln -sf $RPM_INSTALL_PREFIX/%pkgrel/etc/profile.d/init.csh $RPM_INSTALL_PREFIX/%{cmsplatf}/etc/profile.d/S00SCRAMV1.csh
119 +
120   %files
121   %i
122   %instroot/bin/scramv1
123   %instroot/share/scramdb
124 + %{instroot}/%{cmsplatf}/etc/profile.d/S00SCRAMV1.sh
125 + %{instroot}/%{cmsplatf}/etc/profile.d/S00SCRAMV1.csh
126 + %exclude %instroot/share/scramdb/project.lookup

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines