ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/PHEDEX-admin.spec
Revision: 1.22
Committed: Fri Aug 31 14:45:42 2007 UTC (17 years, 8 months ago) by wildish
Branch: MAIN
CVS Tags: ap-20070926, CMSSW_1_7_0_pre4, dl070921t2, dl070921, dl070920, CMSSW_1_7_0_pre3, dl070916, dl070912, dl070812, sm070912b, sm070912a, sm070911a, dl070909p3, dl070909, CMSSW_1_7_0_pre2, dl070906, dl070905, forPHEDEX2535
Changes since 1.21: +1 -1 lines
Log Message:
Bump revision

File Contents

# User Rev Content
1 wildish 1.22 ### RPM cms PHEDEX-admin PHEDEX_2_5_3_5
2 egeland 1.20 ##
3 eulisse 1.3 %define downloadn %(echo %n | cut -f1 -d-)
4     Source: cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e&module=%{downloadn}&export=%{downloadn}&&tag=-r%{v}&output=/%{downloadn}.tar.gz
5 rehn 1.1 Requires: oracle oracle-env p5-time-hires p5-text-glob p5-compress-zlib p5-dbi p5-dbd-oracle p5-xml-parser srmcp python
6     Requires: py2-cx-oracle
7 egeland 1.7 Requires: dls dbs-client
8 rehn 1.5 Provides: perl(UtilsMisc)
9 rehn 1.1
10     # Extra requires so we get everything necessary for env.{,c}sh.
11     Requires: zlib expat openssl bz2lib py2-pyxml py2-zsi py2-mysqldb mysql
12    
13     %prep
14 eulisse 1.3 %setup -n %{downloadn}
15 rehn 1.13 rm -rf Testbed/T0FeedTest
16 rehn 1.1
17     %build
18    
19     %install
20     mkdir -p %i/etc
21     tar -cf - * | (cd %i && tar -xf -)
22    
23     mkdir -p %i/etc/profile.d
24     for x in %pkgreqs; do
25     case $x in /* ) continue ;; esac
26     p=%{instroot}/%{cmsplatf}/$(echo $x | sed 's/\([^+]*\)+\(.*\)+\([A-Z0-9].*\)/\1 \2 \3/' | tr ' ' '/')
27     echo ". $p/etc/profile.d/init.sh" >> %i/etc/profile.d/env.sh
28     echo "source $p/etc/profile.d/init.csh" >> %i/etc/profile.d/env.csh
29     done
30    
31     %post
32     %{relocateConfig}etc/profile.d/env.sh
33     %{relocateConfig}etc/profile.d/env.csh