7 |
|
%setup -n %n-%realversion |
8 |
|
%patch0 -p1 |
9 |
|
|
10 |
+ |
%ifos darwin |
11 |
+ |
# OS X does not support -D option |
12 |
+ |
sed -ibak 's/install -p -D/install -p/g' bin/install.sh |
13 |
+ |
%endif |
14 |
+ |
|
15 |
|
%build |
16 |
|
make %makeprocesses |
17 |
|
|
18 |
|
%install |
19 |
+ |
mkdir -p %i/bin |
20 |
|
make PREFIX=%i BIN_DIR=%i/bin install |
15 |
– |
# SCRAM ToolBox toolfile |
16 |
– |
mkdir -p %i/etc/scram.d |
17 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/%n.xml |
18 |
– |
<tool name="lcov" version="%v"> |
19 |
– |
<info url="http://ltp.sourceforge.net/coverage/lcov.php"/> |
20 |
– |
<client> |
21 |
– |
<environment name="LCOV_BASE" default="%i"/> |
22 |
– |
</client> |
23 |
– |
<runtime name="PATH" value="$LCOV_BASE/bin" type="path"/> |
24 |
– |
</tool> |
25 |
– |
EOF_TOOLFILE |
26 |
– |
|
27 |
– |
%post |
28 |
– |
%{relocateConfig}etc/scram.d/%n.xml |