ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/PHEDEX.spec
Revision: 1.4
Committed: Fri May 5 18:29:40 2006 UTC (18 years, 11 months ago) by lat
Branch: MAIN
Changes since 1.3: +15 -0 lines
Log Message:
Generate full environ setup scripts.

File Contents

# Content
1 ### RPM cms PHEDEX PHEDEX_2_3_0_pre1
2 Source: cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e&module=%n&export=%n&&tag=-r%{v}&output=/%n.tar.gz
3 Requires: oracle oracle-env p5-time-hires p5-text-glob p5-compress-zlib p5-dbi p5-dbd-oracle p5-xml-parser srmcp python
4 Provides: perl(UtilsMisc) perl(fmonMRs)
5
6 %prep
7 %setup -n %n
8
9 %build
10
11 %install
12 mkdir -p %i/etc
13 tar -cf - * | (cd %i && tar -xf -)
14
15 mkdir -p %i/etc/profile.d
16 for x in %pkgreqs; do
17 p=%{instroot}/%{cmsplatf}/$(echo $x | sed 's/\([^+]*\)+\(.*\)+\([A-Z0-9].*\)/\1 \2 \3/' | tr ' ' '/')
18 [ -d $p ] || continue # filter out /bin/sh and other weird stuff...
19 echo ". $p/etc/profile.d/init.sh" >> %i/etc/profile.d/env.sh
20 echo "source $p/etc/profile.d/init.csh" >> %i/etc/profile.d/env.csh
21 done
22
23 %post
24 %{relocateConfig}etc/profile.d/env.sh
25 %{relocateConfig}etc/profile.d/env.csh