ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/cppunit.spec
(Generate patch)

Comparing COMP/CMSDIST/cppunit.spec (file contents):
Revision 1.16 by eulisse, Fri Jan 11 13:46:21 2008 UTC vs.
Revision 1.21 by muzaffar, Tue Aug 10 14:50:45 2010 UTC

# Line 1 | Line 1
1 < ### RPM external cppunit 1.10.2-CMS19
1 > ### RPM external cppunit 1.12.1
2   Source0: http://switch.dl.sourceforge.net/sourceforge/%n/%n-%realversion.tar.gz
3   Source1: http://spi.cvs.cern.ch:8180/cgi-bin/spi.cgi/*checkout*/Components/UnitTesting/Tools/CppUnit/CppUnit_testdriver.cpp?rev=1.1
4  
# Line 13 | Line 13 | case %cmsplatf in
13                                                                                                                      config/ltmain.sh
14      ;;
15   esac
16 + case $(uname) in
17 +    Linux )
18 +       # Ugly hack to force -ldl to be linked, which for some reason is
19 +       # not currently happening via configure
20 +       perl -p -i -e 's|LIBS.*LIBS.*lm|LIBS="$LIBS -lm -ldl|' configure
21 +    ;;
22 + esac
23   ./configure --prefix=%i
24   make %makeprocesses
25   %install
26   make install
27   cp %_sourcedir/CppUnit_testdriver.cpp* %i/include/CppUnit_testdriver.cpp
28  
22 # SCRAM ToolBox toolfile
23 mkdir -p %i/etc/scram.d
24 cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
25 <doc type=BuildSystem::ToolDoc version=1.0>
26 <Tool name=%n version=%v>
27 <lib name=cppunit>
28 <Client>
29 <Environment name=CPPUNIT_BASE default="%i"></Environment>
30 <Environment name=LIBDIR default="$CPPUNIT_BASE/lib"></Environment>
31 <Environment name=INCLUDE default="$CPPUNIT_BASE/include"></Environment>
32 </Client>
33 <use name=sockets>
34 </Tool>
35 EOF_TOOLFILE
36
29   %post
30   %{relocateConfig}/bin/cppunit-config
31   %{relocateConfig}/lib/libcppunit.la
40 %{relocateConfig}etc/scram.d/%n

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines