1 |
< |
### RPM external oval 3_5_0-CMS3 |
1 |
> |
### RPM external oval 3_5_0 |
2 |
|
Source: http://oval.in2p3.fr/%{n}_%{realversion}.tar.gz |
3 |
|
Provides: perl(ActiveDoc::GroupChecker) |
4 |
|
%prep |
9 |
|
tar -cf - . | tar -C %i -xf - |
10 |
|
find %i -type d -name CVS -print | xargs rm -fr |
11 |
|
|
12 |
+ |
# SCRAM ToolBox toolfile |
13 |
+ |
mkdir -p %i/etc/scram.d |
14 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/%n |
15 |
+ |
<doc type=BuildSystem::ToolDoc version=1.1> |
16 |
+ |
<Tool name=OVAL version=%v> |
17 |
+ |
<Client> |
18 |
+ |
<Environment name=OVAL_BASE default="%i"></Environment> |
19 |
+ |
</Client> |
20 |
+ |
EOF_TOOLFILE |
21 |
+ |
|
22 |
+ |
case %cmsplatf in |
23 |
+ |
slc3_* | slc4_* ) |
24 |
+ |
echo '<Runtime name=OVAL_FLAVOR value="Linux">' >> %i/etc/scram.d/%n |
25 |
+ |
;; |
26 |
+ |
osx* ) |
27 |
+ |
echo '<Runtime name=OVAL_FLAVOR value="osx">' >> %i/etc/scram.d/%n |
28 |
+ |
;; |
29 |
+ |
esac |
30 |
+ |
cat << \EOF_TOOLFILE >>%i/etc/scram.d/%n |
31 |
+ |
<runtime name=PATH value="$OVAL_BASE/bin" type=path> |
32 |
+ |
</Tool> |
33 |
+ |
EOF_TOOLFILE |
34 |
+ |
|
35 |
+ |
%post |
36 |
+ |
%{relocateConfig}etc/scram.d/%n |