ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/PHEDEX-admin.spec
Revision: 1.15
Committed: Sun Jun 17 19:04:02 2007 UTC (17 years, 10 months ago) by egeland
Branch: MAIN
CVS Tags: forPHEDEX253
Changes since 1.14: +1 -1 lines
Log Message:
Bump revision

File Contents

# User Rev Content
1 egeland 1.15 ### RPM cms PHEDEX-admin PHEDEX_2_5_3
2 metson 1.14
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