9 |
|
cp -f %_sourcedir/none . |
10 |
|
%build |
11 |
|
%install |
12 |
+ |
mkdir -p %{i}/bin |
13 |
+ |
mkdir -p %{i}/lib |
14 |
+ |
mkdir -p %{i}/etc/profile.d |
15 |
+ |
|
16 |
+ |
(echo "#!/bin/sh"; \ |
17 |
+ |
echo "source $DBS_WEB_ROOT/etc/profile.d/init.sh"; \ |
18 |
+ |
echo "source $SITEDB_ROOT/etc/profile.d/init.sh"; \ |
19 |
+ |
echo "source $PRODREQUEST_ROOT/etc/profile.d/init.sh"; \ |
20 |
+ |
) > %{i}/etc/profile.d/dependencies-setup.sh |
21 |
+ |
|
22 |
+ |
(echo "#!/bin/tcsh"; \ |
23 |
+ |
echo "source $DBS_WEB_ROOT/etc/profile.d/init.sh"; \ |
24 |
+ |
echo "source $SITEDB_ROOT/etc/profile.d/init.sh"; \ |
25 |
+ |
echo "source $PRODREQUEST_ROOT/etc/profile.d/init.sh"; \ |
26 |
+ |
) > %{i}/etc/profile.d/dependencies-setup.csh |
27 |
+ |
|
28 |
+ |
%post |
29 |
+ |
%{relocateConfig}etc/profile.d/dependencies-setup.sh |
30 |
+ |
%{relocateConfig}etc/profile.d/dependencies-setup.csh |