13 |
|
%install |
14 |
|
mkdir -p %{i}/bin |
15 |
|
mkdir -p %{i}/lib |
16 |
+ |
mkdir -p %{i}/etc/profile.d |
17 |
|
cp -r Clients/Python/* %{i}/lib/ |
18 |
|
|
19 |
+ |
(echo "#!/bin/sh"; \ |
20 |
+ |
echo "source $PYTHON_ROOT/etc/profile.d/init.sh"; \ |
21 |
+ |
) > %{i}/etc/profile.d/dependencies-setup.sh |
22 |
+ |
|
23 |
+ |
(echo "#!/bin/tcsh"; \ |
24 |
+ |
echo "source $PYTHON_ROOT/etc/profile.d/init.csh"; \ |
25 |
+ |
) > %{i}/etc/profile.d/dependencies-setup.csh |
26 |
+ |
|
27 |
+ |
%post |
28 |
+ |
%{relocateConfig}etc/profile.d/dependencies-setup.sh |
29 |
+ |
%{relocateConfig}etc/profile.d/dependencies-setup.csh |