ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/webtools-apps.spec
Revision: 1.2
Committed: Wed Mar 26 15:46:52 2008 UTC (17 years, 1 month ago) by valya
Branch: MAIN
CVS Tags: WEBTOOLS-APPS_20080326_2
Changes since 1.1: +19 -0 lines
Log Message:
Added dependency setup and post-install

File Contents

# Content
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