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 |
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 |
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 |
127 |
+ |
# |