1 |
< |
### RPM cms PHEDEX PHEDEX_2_3_0_pre1 |
1 |
> |
### RPM cms PHEDEX PHEDEX_3_1_2 |
2 |
> |
## INITENV +PATH PERL5LIB %i/perl_lib |
3 |
|
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 |
< |
Requires: oracle oracle-env p5-time-hires p5-text-glob p5-compress-zlib p5-dbi p5-dbd-oracle p5-xml-parser srmcp python |
5 |
< |
Provides: perl(UtilsMisc) perl(fmonMRs) |
4 |
> |
# 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 |
> |
# 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 |
> |
Requires: expat |
18 |
> |
|
19 |
> |
# Provided by system perl |
20 |
> |
Provides: perl(HTML::Entities) |
21 |
> |
Provides: perl(DB_File) |
22 |
> |
Provides: perl(Date::Manip) |
23 |
> |
Provides: perl(XML::LibXML) |
24 |
|
|
25 |
|
%prep |
26 |
|
%setup -n %n |
27 |
+ |
rm -f Custom/Template/Config.Micro |
28 |
+ |
rm -f Custom/Template/ConfigPart.CERN* |
29 |
+ |
rm -f Custom/Template/ConfigPart.Management |
30 |
+ |
rm -rf Schema |
31 |
+ |
rm -rf Toolkit/Infrastructure |
32 |
+ |
rm -rf Toolkit/Monitoring |
33 |
+ |
rm -rf Toolkit/Workflow |
34 |
+ |
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 |
+ |
|
50 |
|
%build |
51 |
+ |
|
52 |
|
%install |
53 |
+ |
mkdir -p %i/etc |
54 |
|
tar -cf - * | (cd %i && tar -xf -) |
55 |
+ |
|
56 |
+ |
# Set permissions |
57 |
+ |
chmod 755 %i/Toolkit/DBS/* |
58 |
+ |
chmod 755 %i/Utilities/* |
59 |
+ |
|
60 |
+ |
# Copy dependencies to dependencies-setup.sh |
61 |
+ |
mkdir -p %i/etc/profile.d |
62 |
+ |
for x in %pkgreqs; do |
63 |
+ |
case $x in /* ) continue ;; esac |
64 |
+ |
p=%{instroot}/%{cmsplatf}/$(echo $x | sed 's/\([^+]*\)+\(.*\)+\([A-Z0-9].*\)/\1 \2 \3/' | tr ' ' '/') |
65 |
+ |
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 |
+ |
done |
68 |
+ |
|
69 |
+ |
# 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 |
+ |
%post |
74 |
+ |
%{relocateConfig}etc/profile.d/env.sh |
75 |
+ |
%{relocateConfig}etc/profile.d/env.csh |
76 |
+ |
%{relocateConfig}etc/profile.d/dependencies-setup.sh |
77 |
+ |
%{relocateConfig}etc/profile.d/dependencies-setup.csh |