1 |
### RPM external lcov 1.6
|
2 |
Source: http://heanet.dl.sourceforge.net/sourceforge/ltp/%n-%realversion.tar.gz
|
3 |
Patch0: lcov-merge-files-in-same-dir
|
4 |
|
5 |
%prep
|
6 |
%setup -n %n-%realversion
|
7 |
%patch0 -p1
|
8 |
|
9 |
%build
|
10 |
make %makeprocesses
|
11 |
|
12 |
%install
|
13 |
make PREFIX=%i install
|
14 |
# SCRAM ToolBox toolfile
|
15 |
mkdir -p %i/etc/scram.d
|
16 |
cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
|
17 |
<doc type=BuildSystem::ToolDoc version=1.0>
|
18 |
<Tool name=lcov version=%v>
|
19 |
<Client>
|
20 |
<Environment name=LCOV_BASE default="%i"></Environment>
|
21 |
</Client>
|
22 |
<Runtime name=PATH value="$LCOV_BASE/bin" type=path>
|
23 |
</Tool>
|
24 |
EOF_TOOLFILE
|
25 |
|
26 |
%post
|
27 |
%{relocateConfig}etc/scram.d/%n
|