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 |
+ |
ln -sf scram %{instroot}/bin/scramv0 |
90 |
|
|
91 |
|
%files |
92 |
|
%i |
93 |
|
%{instroot}/bin/scram |
94 |
+ |
%{instroot}/bin/scramv0 |
95 |
|
%{instroot}/share/scramdbv0 |
94 |
– |
%{instroot}/%{cmsplatf}/etc/profile.d |
96 |
|
%{instroot}/%{cmsplatf}/etc/profile.d/S00SCRAM.sh |
97 |
|
%{instroot}/%{cmsplatf}/etc/profile.d/S00SCRAM.csh |
98 |
|
%exclude %instroot/share/scramdbv0/project.lookup |
99 |
+ |
%exclude %i/scripts/DrDOC.sh |
100 |
|
%post |
101 |
|
%{relocateConfig}etc/profile.d/dependencies-setup.sh |
102 |
|
%{relocateConfig}etc/profile.d/dependencies-setup.csh |
103 |
|
perl -p -i -e "s|%instroot|$RPM_INSTALL_PREFIX|g" $RPM_INSTALL_PREFIX/bin/scram |
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 |
106 |
+ |
# |