ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/PHEDEX-admin.spec
Revision: 1.27
Committed: Sun Dec 2 16:43:48 2007 UTC (17 years, 4 months ago) by egeland
Branch: MAIN
Changes since 1.26: +1 -1 lines
Log Message:
require monalisa-apmon

File Contents

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