ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/PHEDEX-admin.spec
Revision: 1.37
Committed: Wed Feb 13 08:44:31 2008 UTC (17 years, 2 months ago) by egeland
Branch: MAIN
CVS Tags: forPHEDEX261
Changes since 1.36: +4 -0 lines
Log Message:
fake require expat (again)

File Contents

# User Rev Content
1 egeland 1.36 ### RPM cms PHEDEX-admin PHEDEX_2_6_1
2 egeland 1.35 #######
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 egeland 1.29 Requires: oracle oracle-env p5-time-hires p5-text-glob p5-compress-zlib p5-dbi p5-dbd-oracle p5-xml-parser python
7 egeland 1.31 Requires: dls-client dbs-client p5-monalisa-apmon
8 rehn 1.1
9 egeland 1.37 # Actually, it is p5-xml-parser that requires this, but it doesn't configure itself correctly
10     # This is so it gets into our dependencies-setup.sh
11     Requires: expat
12    
13 egeland 1.30 # Provided by system perl
14     Provides: perl(HTML::Entities)
15    
16 rehn 1.1 %prep
17 eulisse 1.3 %setup -n %{downloadn}
18 rehn 1.1
19     %build
20    
21     %install
22     mkdir -p %i/etc
23     tar -cf - * | (cd %i && tar -xf -)
24    
25 egeland 1.29 # Copy dependencies to dependencies-setup.sh
26 rehn 1.1 mkdir -p %i/etc/profile.d
27     for x in %pkgreqs; do
28     case $x in /* ) continue ;; esac
29     p=%{instroot}/%{cmsplatf}/$(echo $x | sed 's/\([^+]*\)+\(.*\)+\([A-Z0-9].*\)/\1 \2 \3/' | tr ' ' '/')
30 egeland 1.29 echo ". $p/etc/profile.d/init.sh" >> %i/etc/profile.d/dependencies-setup.sh
31     echo "source $p/etc/profile.d/init.csh" >> %i/etc/profile.d/dependencies-setup.csh
32 rehn 1.1 done
33    
34 egeland 1.29 # Make "env.sh" = "init.sh" for legacy configs
35     echo ". %i/etc/profile.d/init.sh" > %i/etc/profile.d/env.sh
36     echo "source %i/etc/profile.d/init.csh" > %i/etc/profile.d/env.csh
37    
38 rehn 1.1 %post
39     %{relocateConfig}etc/profile.d/env.sh
40     %{relocateConfig}etc/profile.d/env.csh
41 egeland 1.29 %{relocateConfig}etc/profile.d/dependencies-setup.sh
42     %{relocateConfig}etc/profile.d/dependencies-setup.csh