1 |
< |
### RPM cms PHEDEX-micro PHEDEX_2_6_2-CMS30 |
2 |
< |
# |
1 |
> |
### RPM cms PHEDEX-micro PHEDEX_3_1_2 |
2 |
|
## INITENV +PATH PATH %i/Utilities:%i/Toolkit/DBS:%i/Toolkit/DropBox:%i/Toolkit/Request |
3 |
|
## INITENV +PATH PERL5LIB %i/perl_lib |
4 |
|
%define downloadn %(echo %n | cut -f1 -d-) |
5 |
|
Source: cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e&module=%{downloadn}&export=%{downloadn}&&tag=-r%{v}&output=/%{downloadn}.tar.gz |
6 |
< |
Requires: oracle oracle-env p5-time-hires p5-text-glob p5-compress-zlib p5-dbi p5-dbd-oracle p5-xml-parser python |
7 |
< |
Requires: p5-monalisa-apmon |
8 |
< |
|
6 |
> |
# Oracle libs |
7 |
> |
Requires: oracle oracle-env |
8 |
> |
# perl libs |
9 |
> |
Requires: p5-time-hires p5-text-glob p5-compress-zlib p5-dbi |
10 |
> |
Requires: p5-dbd-oracle p5-xml-parser p5-poe p5-poe-component-child |
11 |
> |
Requires: p5-log-log4perl p5-log-dispatch p5-log-dispatch-filerotate |
12 |
> |
Requires: p5-params-validate p5-monalisa-apmon |
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 |
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 |
+ |
|
27 |
|
%setup -n %{downloadn} |
28 |
|
rm Custom/Template/Config |
29 |
|
rm Custom/Template/ConfigPart.CERN* |
43 |
|
rm -rf Toolkit/Monitoring |
44 |
|
rm -rf Toolkit/Transfer |
45 |
|
rm -rf Toolkit/Workflow |
46 |
< |
find Utilities -type f | egrep -v "OracleConnectId|Master" | xargs rm |
46 |
> |
find Utilities -type f | egrep -v "OracleConnectId|Master|phedex" | xargs rm |
47 |
|
|
48 |
|
%build |
49 |
|
|
51 |
|
mkdir -p %i/etc |
52 |
|
tar -cf - * | (cd %i && tar -xf -) |
53 |
|
|
54 |
+ |
# Set permissions |
55 |
+ |
chmod 755 %i/Toolkit/DBS/* |
56 |
+ |
chmod 755 %i/Utilities/* |
57 |
+ |
|
58 |
|
# Copy dependencies to dependencies-setup.sh |
59 |
|
mkdir -p %i/etc/profile.d |
60 |
|
for x in %pkgreqs; do |