1 |
< |
### RPM configuration cppunit-toolfile 1.10.2 |
2 |
< |
## IMPORT scramtoolbox-common |
3 |
< |
|
4 |
< |
Source: none |
1 |
> |
### RPM external cppunit-toolfile 1.0 |
2 |
|
Requires: cppunit |
3 |
+ |
%prep |
4 |
|
|
5 |
|
%build |
8 |
– |
%install |
9 |
– |
mkdir -p %toolConfDir %toolBoxDir/TestingTools |
6 |
|
|
7 |
< |
cat << \EOF_cppunit_TOOLCONF_FRAGMENT > %toolConfDir/cppunit.conf |
12 |
< |
TOOL:cppunit |
13 |
< |
+CPPUNIT_BASE:${CPPUNIT_ROOT} |
14 |
< |
+PATH:${CPPUNIT_ROOT}/bin |
15 |
< |
+LIBDIR:${CPPUNIT_ROOT}/lib |
16 |
< |
+INCLUDE:${CPPUNIT_ROOT}/include |
17 |
< |
EOF_cppunit_TOOLCONF_FRAGMENT |
7 |
> |
%install |
8 |
|
|
9 |
< |
cat << \EOF_cppunit_TOOLFILE > %toolBoxDir/TestingTools/cppunit |
10 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
11 |
< |
<tool name=%toolname version=%v> |
12 |
< |
<architecture name=macosx> |
13 |
< |
<lib name=cppunit> |
14 |
< |
</architecture> |
15 |
< |
<architecture name=osx> |
16 |
< |
<lib name=cppunit> |
17 |
< |
</architecture> |
18 |
< |
<architecture name=sl> |
29 |
< |
<lib name=cppunit> |
30 |
< |
</architecture> |
31 |
< |
<architecture name=win> |
32 |
< |
<lib name=cppunit_dll> |
33 |
< |
</architecture> |
34 |
< |
<client> |
35 |
< |
<environment name=CPPUNIT_BASE> |
36 |
< |
The top of the CPpUnit distribution. |
37 |
< |
</environment> |
38 |
< |
<environment name=LIBDIR default="$CPPUNIT_BASE/lib" type=lib> |
39 |
< |
Location of CppUnit libraries. |
40 |
< |
</environment> |
41 |
< |
<environment name=INCLUDE default="$CPPUNIT_BASE/include"> |
42 |
< |
Location of CppUnit include files. |
43 |
< |
</environment> |
44 |
< |
</client> |
45 |
< |
<environment name=LD_LIBRARY_PATH value="$LIBDIR" type=Runtime_path></environment> |
46 |
< |
<architecture name=win> |
47 |
< |
<environment name=PATH value="$LIBDIR" type=Runtime_path></environment> |
48 |
< |
</architecture> |
9 |
> |
mkdir -p %i/etc/scram.d |
10 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/cppunit.xml |
11 |
> |
<tool name="cppunit" version="@TOOL_VERSION@"> |
12 |
> |
<lib name="cppunit"/> |
13 |
> |
<client> |
14 |
> |
<environment name="CPPUNIT_BASE" default="@TOOL_ROOT@"/> |
15 |
> |
<environment name="LIBDIR" default="$CPPUNIT_BASE/lib"/> |
16 |
> |
<environment name="INCLUDE" default="$CPPUNIT_BASE/include"/> |
17 |
> |
</client> |
18 |
> |
<use name="sockets"/> |
19 |
|
</tool> |
20 |
< |
EOF_cppunit_TOOLFILE |
21 |
< |
%files |
22 |
< |
%toolBoxDir/TestingTools/cppunit |
53 |
< |
%toolConfDir/cppunit.conf |
20 |
> |
EOF_TOOLFILE |
21 |
> |
|
22 |
> |
## IMPORT scram-tools-post |