Revision: | 1.18 |
Committed: | Mon Apr 14 03:40:17 2008 UTC (17 years ago) by ratnik |
Branch: | MAIN |
CVS Tags: | MotT0_1_0_2, MotT0_1_0_1, MotT0_1_0_0, MotT0_100531_1, MotT0_100528_1, T0Mon_100518_1, T0Mon_100503_1, T0Mon_100316_1, T0Mon_100308_2, T0Mon_100308_1, T0Mon_100216_1, T0Mon_100210_1, T0Mon_100204_4, T0Mon_100204_3, T0Mon_100204_1, T0Mon_100127_1, T0Mon_091111_1, T0Mon_090828_1, T0Mon_090822_1, T0Mon_090715_1, T0Mon_090612_1, T0Mon_090611_1, T0Mon_090610_1, T0Mon_090601_1, T0Mon_090527_2, T0Mon_090527_1, T0Mon_090522_1, T0Mon_090519_2, T0Mon_090519_1, T0Mon_090517_1, T0Mon_090516_1, T0Mon_090515_4, T0Mon_090515_3, T0Mon_090515_2, T0Mon_090515_1, T0Mon_090510_1, T0Mon_090406_1, T0Mon_090326_1, T0Mon_090325_1, T0Mon_090318_1, T0Mon_090315_1, T0Mon_090303_1, testofc, T0Mon_081107_1, T0Mon_081105_1, PRODAGENT_0_12_2, T0Mon_080926_1, T0Mon_080920_2, T0Mon_080920_1, T0Mon_080916_2, T0Mon_080905_1, T0Mon_080905_01, T0Mon_080902_2, T0Mon_080902_1, T0Mon_080824_1, T0Mon_080823_1, buildset_V2_8, nr080714_forCRAB, SiteDB_030608_1, SiteDB_300508_1, nr080528_onl_cmsBuild, SiteDB_280508_1, zx20080509, pe20080508-testcvs, dl080505, CMSSW_2_0_4_ONLINE1, dl080425_for21x, nr080425for204onl1, CMSSW_2_0_0_ONLINE2, nrnr080424for200onl2, CMSSW_2_0_3_ONLINE1, nr080421for203onl, CMSSW_2_0_0_ONLINE1, nr080413 |
Changes since 1.17: | +1 -1 lines |
Log Message: | Updated for CMSSW_2_0_0_ONLINE1 build |
# | Content |
---|---|
1 | ### RPM external gccxml 0.7.0_20070615-CMS20 |
2 | %define gccxmlmajorver %(echo %realversion | cut -f1,2 -d.) |
3 | Requires: cmake |
4 | # The following are needed for 0.6.0 |
5 | #Source: http://www.gccxml.org/files/v0.6/%n-%realversion.tar.gz |
6 | #Patch1: gccxml1 |
7 | #Patch2: gccxml2 |
8 | #Patch3: gccxml3 |
9 | #Patch4: gccxml4 |
10 | # The following are needed for 0.7.0_20070615 |
11 | Source: http://www.gccxml.org/files/v0.6/%n-%realversion.tar.gz |
12 | Patch5: gccxml-0.7.0-version |
13 | |
14 | %prep |
15 | #%setup -n %{n}-%{realversion} # for 0.6.0 |
16 | %setup -n %{n} |
17 | #%patch2 -p1 |
18 | %patch5 -p1 |
19 | |
20 | %build |
21 | cd GCC_XML/Support |
22 | # The following are needed for 0.6.0 |
23 | #patch -p3 <%{_sourcedir}/gccxml1 |
24 | #patch -p3 <%{_sourcedir}/gccxml3 |
25 | #patch -p3 <%{_sourcedir}/gccxml4 |
26 | cd ../../ |
27 | mkdir gccxml-build |
28 | cd gccxml-build |
29 | cmake -DCMAKE_INSTALL_PREFIX:PATH=%i .. |
30 | make %makeprocesses |
31 | |
32 | %install |
33 | cd gccxml-build |
34 | make install |
35 | cd %i |
36 | |
37 | # SCRAM ToolBox toolfile |
38 | mkdir -p %i/etc/scram.d |
39 | cat << \EOF_TOOLFILE >%i/etc/scram.d/%n |
40 | <doc type=BuildSystem::ToolDoc version=1.0> |
41 | <Tool name=%n version=%v> |
42 | <Client> |
43 | <Environment name=GCCXML_BASE default="%i"></Environment> |
44 | </Client> |
45 | <Runtime name=PATH value="$GCCXML_BASE/bin" type=path> |
46 | </Tool> |
47 | EOF_TOOLFILE |
48 | |
49 | %post |
50 | %{relocateConfig}share/gccxml-%{gccxmlmajorver}/gccxml_config |
51 | %{relocateConfig}etc/scram.d/%n |