ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/PHEDEX.spec
Revision: 1.112
Committed: Tue Oct 20 10:43:48 2009 UTC (15 years, 6 months ago) by wildish
Branch: MAIN
CVS Tags: forPHEDEX328
Changes since 1.111: +1 -1 lines
Log Message:
Bump revision

File Contents

# User Rev Content
1 wildish 1.112 ### RPM cms PHEDEX PHEDEX_3_2_8
2 wildish 1.56 ## INITENV +PATH PERL5LIB %i/perl_lib
3 egeland 1.74 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
4 egeland 1.87 # Oracle libs
5     Requires: oracle oracle-env
6     # perl libs
7     Requires: p5-time-hires p5-text-glob p5-compress-zlib p5-dbi
8     Requires: p5-dbd-oracle p5-xml-parser p5-monalisa-apmon p5-poe
9     Requires: p5-poe-component-child p5-log-log4perl p5-log-dispatch
10     Requires: p5-log-dispatch-filerotate p5-params-validate
11     # CMS libs
12     Requires: dbs-client
13     # Etc.
14     Requires: python
15 egeland 1.69 # Actually, it is p5-xml-parser that requires this, but it doesn't configure itself correctly
16     # This is so it gets into our dependencies-setup.sh
17 egeland 1.87 Requires: expat
18 egeland 1.69
19 egeland 1.62 # Provided by system perl
20     Provides: perl(HTML::Entities)
21 egeland 1.70 Provides: perl(DB_File)
22 egeland 1.86 Provides: perl(Date::Manip)
23     Provides: perl(XML::LibXML)
24 egeland 1.62
25 eulisse 1.1 %prep
26     %setup -n %n
27 rehn 1.39 rm -f Custom/Template/Config.Micro
28 rehn 1.37 rm -f Custom/Template/ConfigPart.CERN*
29     rm -f Custom/Template/ConfigPart.Management
30 rehn 1.38 rm -rf Schema
31 rehn 1.34 rm -rf Toolkit/Infrastructure
32     rm -rf Toolkit/Monitoring
33     rm -rf Toolkit/Workflow
34 rehn 1.37 rm -f Utilities/CMSSWMigrate
35     rm -f Utilities/DBDump
36     rm -f Utilities/DBLoad
37     rm -f Utilities/DBSCheck
38     rm -f Utilities/GrepSites
39     rm -f Utilities/FileDeleteTMDB
40     rm -f Utilities/LinkNew
41     rm -f Utilities/LinkRemove
42     rm -f Utilities/MakeDailyReport
43     rm -f Utilities/MakeDailyStats
44     rm -f Utilities/netmon
45     rm -f Utilities/NodeNew
46     rm -f Utilities/NodeRemove
47     rm -f Utilities/RunTest
48     rm -f Utilities/WordMunger
49 rehn 1.33
50 eulisse 1.1 %build
51 lat 1.4
52 eulisse 1.1 %install
53 lat 1.4 mkdir -p %i/etc
54 lat 1.2 tar -cf - * | (cd %i && tar -xf -)
55 lat 1.4
56 egeland 1.89 # Set permissions
57     chmod 755 %i/Toolkit/DBS/*
58     chmod 755 %i/Utilities/*
59    
60 egeland 1.61 # Copy dependencies to dependencies-setup.sh
61 lat 1.4 mkdir -p %i/etc/profile.d
62     for x in %pkgreqs; do
63 lat 1.6 case $x in /* ) continue ;; esac
64 lat 1.4 p=%{instroot}/%{cmsplatf}/$(echo $x | sed 's/\([^+]*\)+\(.*\)+\([A-Z0-9].*\)/\1 \2 \3/' | tr ' ' '/')
65 egeland 1.61 echo ". $p/etc/profile.d/init.sh" >> %i/etc/profile.d/dependencies-setup.sh
66     echo "source $p/etc/profile.d/init.csh" >> %i/etc/profile.d/dependencies-setup.csh
67 lat 1.4 done
68    
69 egeland 1.61 # Make "env.sh" = "init.sh" for legacy configs
70     echo ". %i/etc/profile.d/init.sh" > %i/etc/profile.d/env.sh
71     echo "source %i/etc/profile.d/init.csh" > %i/etc/profile.d/env.csh
72    
73 lat 1.4 %post
74     %{relocateConfig}etc/profile.d/env.sh
75     %{relocateConfig}etc/profile.d/env.csh
76 egeland 1.61 %{relocateConfig}etc/profile.d/dependencies-setup.sh
77     %{relocateConfig}etc/profile.d/dependencies-setup.csh