ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/PHEDEX.spec
Revision: 1.117
Committed: Fri Apr 16 09:56:05 2010 UTC (15 years ago) by egeland
Branch: MAIN
CVS Tags: forPHEDEX331pre2
Changes since 1.116: +2 -1 lines
Log Message:
new version 3.3.1.pre2

File Contents

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