7 |
|
|
8 |
|
%build |
9 |
|
case %cmsplatf in |
10 |
< |
osx105* ) perl -p -i -e 's|rm(.*)conftest|rm -fr $1 conftest|g' configure \ |
11 |
< |
aclocal.m4 \ |
12 |
< |
libtool \ |
13 |
< |
config/ltmain.sh |
10 |
> |
osx* ) perl -p -i -e 's|rm(.*)conftest|rm -fr $1 conftest|g' configure \ |
11 |
> |
aclocal.m4 \ |
12 |
> |
libtool \ |
13 |
> |
config/ltmain.sh |
14 |
|
;; |
15 |
< |
esac |
16 |
< |
case $(uname) in |
17 |
< |
Linux ) |
15 |
> |
slc* ) |
16 |
|
# Ugly hack to force -ldl to be linked, which for some reason is |
17 |
|
# not currently happening via configure |
18 |
|
perl -p -i -e 's|LIBS.*LIBS.*lm|LIBS="$LIBS -lm -ldl|' configure |
24 |
|
make install |
25 |
|
cp %_sourcedir/CppUnit_testdriver.cpp* %i/include/CppUnit_testdriver.cpp |
26 |
|
|
29 |
– |
# SCRAM ToolBox toolfile |
30 |
– |
mkdir -p %i/etc/scram.d |
31 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/%n.xml |
32 |
– |
<tool name="%n" version="%v"> |
33 |
– |
<lib name="cppunit"/> |
34 |
– |
<client> |
35 |
– |
<environment name="CPPUNIT_BASE" default="%i"/> |
36 |
– |
<environment name="LIBDIR" default="$CPPUNIT_BASE/lib"/> |
37 |
– |
<environment name="INCLUDE" default="$CPPUNIT_BASE/include"/> |
38 |
– |
</client> |
39 |
– |
<use name="sockets"/> |
40 |
– |
</tool> |
41 |
– |
EOF_TOOLFILE |
42 |
– |
|
27 |
|
%post |
28 |
|
%{relocateConfig}/bin/cppunit-config |
29 |
|
%{relocateConfig}/lib/libcppunit.la |
46 |
– |
%{relocateConfig}etc/scram.d/%n.xml |