1 |
< |
### RPM external cppunit 1.10.2 |
2 |
< |
Requires: gcc-wrapper |
3 |
< |
Source0: http://switch.dl.sourceforge.net/sourceforge/%n/%n-%v.tar.gz |
4 |
< |
Source1: http://spi.cvs.cern.ch:8180/cgi-bin/spi.cgi/*checkout*/Components/UnitTesting/Tools/CppUnit/CppUnit_testdriver.cpp?rev=1.1 |
1 |
> |
### RPM external cppunit 1.12.1 |
2 |
> |
Source0: http://switch.dl.sourceforge.net/sourceforge/%n/%n-%realversion.tar.gz |
3 |
> |
Source1: CppUnit_testdriver_cpp |
4 |
> |
|
5 |
> |
%prep |
6 |
> |
%setup -n %n-%realversion |
7 |
> |
|
8 |
|
%build |
9 |
< |
## IMPORT gcc-wrapper |
10 |
< |
./configure --prefix=%i |
9 |
> |
case %cmsplatf in |
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 |
> |
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 |
19 |
> |
;; |
20 |
> |
esac |
21 |
> |
./configure --prefix=%i |
22 |
|
make %makeprocesses |
23 |
|
%install |
24 |
|
make install |
25 |
< |
cp %_sourcedir/CppUnit_testdriver.cpp* %i/include/CppUnit_testdriver.cpp |
25 |
> |
cp %_sourcedir/CppUnit_testdriver_cpp %i/include/CppUnit_testdriver.cpp |
26 |
> |
|
27 |
|
%post |
28 |
|
%{relocateConfig}/bin/cppunit-config |
29 |
|
%{relocateConfig}/lib/libcppunit.la |