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

File Contents

# User Rev Content
1 egeland 1.68 ### RPM cms PHEDEX PHEDEX_2_6_1
2 egeland 1.67 #######
3 wildish 1.56 ## INITENV +PATH PERL5LIB %i/perl_lib
4 eulisse 1.1 Source: cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e&module=%n&export=%n&&tag=-r%{v}&output=/%n.tar.gz
5 egeland 1.61 Requires: oracle oracle-env p5-time-hires p5-text-glob p5-compress-zlib p5-dbi p5-dbd-oracle p5-xml-parser python
6 egeland 1.60 Requires: dbs-client p5-monalisa-apmon
7 rehn 1.42
8 egeland 1.69 # Actually, it is p5-xml-parser that requires this, but it doesn't configure itself correctly
9     # This is so it gets into our dependencies-setup.sh
10     Requires: expat
11    
12 egeland 1.62 # Provided by system perl
13     Provides: perl(HTML::Entities)
14    
15 eulisse 1.1 %prep
16     %setup -n %n
17 rehn 1.39 rm -f Custom/Template/Config.Micro
18 rehn 1.37 rm -f Custom/Template/ConfigPart.CERN*
19     rm -f Custom/Template/ConfigPart.Management
20 rehn 1.38 rm -rf Schema
21 rehn 1.34 rm -rf Toolkit/Infrastructure
22     rm -rf Toolkit/Monitoring
23     rm -rf Toolkit/Workflow
24 rehn 1.37 rm -f Utilities/CMSSWMigrate
25     rm -f Utilities/DBDump
26     rm -f Utilities/DBLoad
27     rm -f Utilities/DBSCheck
28     rm -f Utilities/GrepSites
29     rm -f Utilities/FileDeleteTMDB
30     rm -f Utilities/LinkNew
31     rm -f Utilities/LinkRemove
32     rm -f Utilities/MakeDailyReport
33     rm -f Utilities/MakeDailyStats
34     rm -f Utilities/netmon
35     rm -f Utilities/NodeNew
36     rm -f Utilities/NodeRemove
37     rm -f Utilities/RunTest
38     rm -f Utilities/WordMunger
39 rehn 1.33
40 eulisse 1.1 %build
41 lat 1.4
42 eulisse 1.1 %install
43 lat 1.4 mkdir -p %i/etc
44 lat 1.2 tar -cf - * | (cd %i && tar -xf -)
45 lat 1.4
46 egeland 1.61 # Copy dependencies to dependencies-setup.sh
47 lat 1.4 mkdir -p %i/etc/profile.d
48     for x in %pkgreqs; do
49 lat 1.6 case $x in /* ) continue ;; esac
50 lat 1.4 p=%{instroot}/%{cmsplatf}/$(echo $x | sed 's/\([^+]*\)+\(.*\)+\([A-Z0-9].*\)/\1 \2 \3/' | tr ' ' '/')
51 egeland 1.61 echo ". $p/etc/profile.d/init.sh" >> %i/etc/profile.d/dependencies-setup.sh
52     echo "source $p/etc/profile.d/init.csh" >> %i/etc/profile.d/dependencies-setup.csh
53 lat 1.4 done
54    
55 egeland 1.61 # Make "env.sh" = "init.sh" for legacy configs
56     echo ". %i/etc/profile.d/init.sh" > %i/etc/profile.d/env.sh
57     echo "source %i/etc/profile.d/init.csh" > %i/etc/profile.d/env.csh
58    
59 lat 1.4 %post
60     %{relocateConfig}etc/profile.d/env.sh
61     %{relocateConfig}etc/profile.d/env.csh
62 egeland 1.61 %{relocateConfig}etc/profile.d/dependencies-setup.sh
63     %{relocateConfig}etc/profile.d/dependencies-setup.csh