ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/PHEDEX-admin.spec
Revision: 1.13
Committed: Wed May 9 11:18:35 2007 UTC (17 years, 11 months ago) by rehn
Branch: MAIN
Changes since 1.12: +1 -4 lines
Log Message:
Bump revision.

File Contents

# User Rev Content
1 rehn 1.10 ### RPM cms PHEDEX-admin PHEDEX_2_5_2
2 eulisse 1.3 %define downloadn %(echo %n | cut -f1 -d-)
3     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
4 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
5     Requires: py2-cx-oracle
6 egeland 1.7 Requires: dls dbs-client
7 rehn 1.5 Provides: perl(UtilsMisc)
8 rehn 1.1
9     # Extra requires so we get everything necessary for env.{,c}sh.
10     Requires: zlib expat openssl bz2lib py2-pyxml py2-zsi py2-mysqldb mysql
11    
12     %prep
13 eulisse 1.3 %setup -n %{downloadn}
14 rehn 1.13 rm -rf Testbed/T0FeedTest
15 rehn 1.1
16     %build
17    
18     %install
19     mkdir -p %i/etc
20     tar -cf - * | (cd %i && tar -xf -)
21    
22     mkdir -p %i/etc/profile.d
23     for x in %pkgreqs; do
24     case $x in /* ) continue ;; esac
25     p=%{instroot}/%{cmsplatf}/$(echo $x | sed 's/\([^+]*\)+\(.*\)+\([A-Z0-9].*\)/\1 \2 \3/' | tr ' ' '/')
26     echo ". $p/etc/profile.d/init.sh" >> %i/etc/profile.d/env.sh
27     echo "source $p/etc/profile.d/init.csh" >> %i/etc/profile.d/env.csh
28     done
29    
30     %post
31     %{relocateConfig}etc/profile.d/env.sh
32     %{relocateConfig}etc/profile.d/env.csh