1 |
### RPM cms webtools-apps 1
|
2 |
Requires: prodrequest sitedb dbs-web
|
3 |
Source: none
|
4 |
|
5 |
%prep
|
6 |
cd %_builddir
|
7 |
mkdir webtools-apps-dummy
|
8 |
cd webtools-apps-dummy
|
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
|