1 |
< |
### RPM cms PHEDEX PHEDEX_2_3_6 |
1 |
> |
### RPM cms PHEDEX PHEDEX_3_0_4 |
2 |
> |
# |
3 |
> |
## INITENV +PATH PERL5LIB %i/perl_lib |
4 |
|
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 |
< |
Requires: oracle oracle-env p5-time-hires p5-text-glob p5-compress-zlib p5-dbi p5-dbd-oracle p5-xml-parser srmcp python |
6 |
< |
Provides: perl(UtilsMisc) |
5 |
> |
Requires: oracle oracle-env p5-time-hires p5-text-glob p5-compress-zlib p5-dbi p5-dbd-oracle p5-xml-parser python |
6 |
> |
Requires: dbs-client p5-monalisa-apmon p5-poe p5-poe-component-child |
7 |
|
|
8 |
< |
# Extra requires so we get everything necessary for env.{,c}sh. |
9 |
< |
Requires: zlib expat openssl bz2lib |
8 |
> |
# 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 |
> |
# Provided by system perl |
13 |
> |
Provides: perl(HTML::Entities) |
14 |
> |
Provides: perl(DB_File) |
15 |
> |
Provides: perl(Date::Manip) |
16 |
> |
Provides: perl(XML::LibXML) |
17 |
|
|
18 |
|
%prep |
19 |
|
%setup -n %n |
20 |
+ |
rm -f Custom/Template/Config.Micro |
21 |
+ |
rm -f Custom/Template/ConfigPart.CERN* |
22 |
+ |
rm -f Custom/Template/ConfigPart.Management |
23 |
+ |
rm -rf Schema |
24 |
+ |
rm -rf Toolkit/Infrastructure |
25 |
+ |
rm -rf Toolkit/Monitoring |
26 |
+ |
rm -rf Toolkit/Workflow |
27 |
+ |
rm -f Utilities/CMSSWMigrate |
28 |
+ |
rm -f Utilities/DBDump |
29 |
+ |
rm -f Utilities/DBLoad |
30 |
+ |
rm -f Utilities/DBSCheck |
31 |
+ |
rm -f Utilities/GrepSites |
32 |
+ |
rm -f Utilities/FileDeleteTMDB |
33 |
+ |
rm -f Utilities/LinkNew |
34 |
+ |
rm -f Utilities/LinkRemove |
35 |
+ |
rm -f Utilities/MakeDailyReport |
36 |
+ |
rm -f Utilities/MakeDailyStats |
37 |
+ |
rm -f Utilities/netmon |
38 |
+ |
rm -f Utilities/NodeNew |
39 |
+ |
rm -f Utilities/NodeRemove |
40 |
+ |
rm -f Utilities/RunTest |
41 |
+ |
rm -f Utilities/WordMunger |
42 |
|
|
43 |
|
%build |
44 |
|
|
46 |
|
mkdir -p %i/etc |
47 |
|
tar -cf - * | (cd %i && tar -xf -) |
48 |
|
|
49 |
+ |
# Copy dependencies to dependencies-setup.sh |
50 |
|
mkdir -p %i/etc/profile.d |
51 |
|
for x in %pkgreqs; do |
52 |
|
case $x in /* ) continue ;; esac |
53 |
|
p=%{instroot}/%{cmsplatf}/$(echo $x | sed 's/\([^+]*\)+\(.*\)+\([A-Z0-9].*\)/\1 \2 \3/' | tr ' ' '/') |
54 |
< |
echo ". $p/etc/profile.d/init.sh" >> %i/etc/profile.d/env.sh |
55 |
< |
echo "source $p/etc/profile.d/init.csh" >> %i/etc/profile.d/env.csh |
54 |
> |
echo ". $p/etc/profile.d/init.sh" >> %i/etc/profile.d/dependencies-setup.sh |
55 |
> |
echo "source $p/etc/profile.d/init.csh" >> %i/etc/profile.d/dependencies-setup.csh |
56 |
|
done |
57 |
|
|
58 |
+ |
# Make "env.sh" = "init.sh" for legacy configs |
59 |
+ |
echo ". %i/etc/profile.d/init.sh" > %i/etc/profile.d/env.sh |
60 |
+ |
echo "source %i/etc/profile.d/init.csh" > %i/etc/profile.d/env.csh |
61 |
+ |
|
62 |
|
%post |
63 |
|
%{relocateConfig}etc/profile.d/env.sh |
64 |
|
%{relocateConfig}etc/profile.d/env.csh |
65 |
+ |
%{relocateConfig}etc/profile.d/dependencies-setup.sh |
66 |
+ |
%{relocateConfig}etc/profile.d/dependencies-setup.csh |