1 |
< |
### RPM cms PHEDEX PHEDEX_2_3_0_pre1 |
1 |
> |
### RPM cms PHEDEX PHEDEX_3_0_0_pre14 |
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 |
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 |
7 |
> |
|
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 |
|
|
16 |
|
%prep |
17 |
|
%setup -n %n |
18 |
+ |
rm -f Custom/Template/Config.Micro |
19 |
+ |
rm -f Custom/Template/ConfigPart.CERN* |
20 |
+ |
rm -f Custom/Template/ConfigPart.Management |
21 |
+ |
rm -rf Schema |
22 |
+ |
rm -rf Toolkit/Infrastructure |
23 |
+ |
rm -rf Toolkit/Monitoring |
24 |
+ |
rm -rf Toolkit/Workflow |
25 |
+ |
rm -f Utilities/CMSSWMigrate |
26 |
+ |
rm -f Utilities/DBDump |
27 |
+ |
rm -f Utilities/DBLoad |
28 |
+ |
rm -f Utilities/DBSCheck |
29 |
+ |
rm -f Utilities/GrepSites |
30 |
+ |
rm -f Utilities/FileDeleteTMDB |
31 |
+ |
rm -f Utilities/LinkNew |
32 |
+ |
rm -f Utilities/LinkRemove |
33 |
+ |
rm -f Utilities/MakeDailyReport |
34 |
+ |
rm -f Utilities/MakeDailyStats |
35 |
+ |
rm -f Utilities/netmon |
36 |
+ |
rm -f Utilities/NodeNew |
37 |
+ |
rm -f Utilities/NodeRemove |
38 |
+ |
rm -f Utilities/RunTest |
39 |
+ |
rm -f Utilities/WordMunger |
40 |
+ |
|
41 |
|
%build |
42 |
+ |
|
43 |
|
%install |
44 |
< |
(cd %_sourcedir/%n && tar -cf - * | (cd %i && tar -xf -) |
44 |
> |
mkdir -p %i/etc |
45 |
> |
tar -cf - * | (cd %i && tar -xf -) |
46 |
> |
|
47 |
> |
# Copy dependencies to dependencies-setup.sh |
48 |
> |
mkdir -p %i/etc/profile.d |
49 |
> |
for x in %pkgreqs; do |
50 |
> |
case $x in /* ) continue ;; esac |
51 |
> |
p=%{instroot}/%{cmsplatf}/$(echo $x | sed 's/\([^+]*\)+\(.*\)+\([A-Z0-9].*\)/\1 \2 \3/' | tr ' ' '/') |
52 |
> |
echo ". $p/etc/profile.d/init.sh" >> %i/etc/profile.d/dependencies-setup.sh |
53 |
> |
echo "source $p/etc/profile.d/init.csh" >> %i/etc/profile.d/dependencies-setup.csh |
54 |
> |
done |
55 |
> |
|
56 |
> |
# Make "env.sh" = "init.sh" for legacy configs |
57 |
> |
echo ". %i/etc/profile.d/init.sh" > %i/etc/profile.d/env.sh |
58 |
> |
echo "source %i/etc/profile.d/init.csh" > %i/etc/profile.d/env.csh |
59 |
> |
|
60 |
> |
%post |
61 |
> |
%{relocateConfig}etc/profile.d/env.sh |
62 |
> |
%{relocateConfig}etc/profile.d/env.csh |
63 |
> |
%{relocateConfig}etc/profile.d/dependencies-setup.sh |
64 |
> |
%{relocateConfig}etc/profile.d/dependencies-setup.csh |