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.8 by ratnik, Wed Apr 18 23:46:01 2007 UTC vs.
Revision 1.15 by eulisse, Wed Jan 9 17:13:26 2008 UTC

# Line 1 | Line 1
1 < ### RPM external cppunit 1.10.2
2 < Requires: gcc-wrapper
3 < Source0: http://switch.dl.sourceforge.net/sourceforge/%n/%n-%v.tar.gz
1 > ### RPM external cppunit 1.10.2-CMS19
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 +
5 + %prep
6 + %setup -n %n-%realversion
7 +
8   %build
9 < ## IMPORT gcc-wrapper
9 > perl -p -i -e 's|rm(.*)conftest|rm -fr $1 conftest|g' configure \
10 >                                                                                                  aclocal.m4 \
11 >                                                                                                  libtool \
12 >                                                                                                  config/ltmain.sh
13   ./configure --prefix=%i
14   make %makeprocesses
15   %install
16   make install
17   cp %_sourcedir/CppUnit_testdriver.cpp* %i/include/CppUnit_testdriver.cpp
18 +
19 + # SCRAM ToolBox toolfile
20 + mkdir -p %i/etc/scram.d
21 + cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
22 + <doc type=BuildSystem::ToolDoc version=1.0>
23 + <Tool name=%n version=%v>
24 + <lib name=cppunit>
25 + <Client>
26 + <Environment name=CPPUNIT_BASE default="%i"></Environment>
27 + <Environment name=LIBDIR default="$CPPUNIT_BASE/lib"></Environment>
28 + <Environment name=INCLUDE default="$CPPUNIT_BASE/include"></Environment>
29 + </Client>
30 + <use name=sockets>
31 + </Tool>
32 + EOF_TOOLFILE
33 +
34   %post
35   %{relocateConfig}/bin/cppunit-config
36   %{relocateConfig}/lib/libcppunit.la
37 + %{relocateConfig}etc/scram.d/%n

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines