ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/graphviz.spec
Revision: 1.15
Committed: Fri Nov 2 16:40:18 2007 UTC (17 years, 6 months ago) by elmer
Branch: MAIN
CVS Tags: CMSSW_1_8_4, pe20080405-for184, CMSSW_1_8_3, pe20080326-for183, pe20080325-for183, CMSSW_1_8_2, pe20080324-for182, CMSSW_1_8_1, nr080314_181onl1, pe20080314-for181, CMSSW_1_8_0_ONLINE1, nr080310_180onl1, nr080307onl180onl1, CMSSW_1_8_0, pe20080304a-for180, pe20080303a-for18X, CMSSW_1_8_0_pre10, pe20080226-for180p10, pe20080220a-for18X, CMSSW_1_8_0_pre9, nr080215g491p01dbg, CMSSW_2_0_0_pre1, CMSSW_1_8_0_pre8, dl080202, pe20080126-for180p8, CMSSW_1_8_0_pre7, pe20080122a-for180p7, dl080120, pe20080120a-for180p7, pe20080117b-for180p7, pe20080117-for180p7, dl080115, CMSSW_1_8_0_pre6, NR080108_geant491-dbg-global, sm20080101a-newscram, pe20071127-ports, pe20071226c-for180p6, pe20071226b-for180p6, pe20071226a-for180p6, ge20071224, ge20071223, ge20071221, pe20071220b-for180p6, ge20071220, pe20071220-for180p6, ge20071217, CMSSW_1_8_0_pre5, pe20071216-for180p5, ge20071216, CMSSW_1_8_0_pre4-vg330, ge20071213, ge20071212-perfreport, ge20071212, ge20071211, ge20071210a, ge20071210, pe20071207-for180p4g491c3, NR071206_geant491cand3-global, ge20071207, pe20071206-for180test1, CMSSW_1_8_0_pre4-412, CMSSW_1_8_0_pre4, pe20071205b-for180p4-412, pe20071205b-for180p4, pe20071205-for180p4, ge20071205, CMSSW_1_8_0_pre3a-412, ge20071203, pe20071202-for180p3a-gcc412, CMSSW_1_8_0_pre3a, pe20071201b-for180p3a, pe20071201-for180p3a, V00-06-08, ge20071128, pe20071130-for180p3, pe20071129-for180p3, ge20071127a-leopard, ge20071127-leopard, pe20071127a-ports-412, ge20071126-new-bootstrap, CMSSW_1_8_0_pre2, CMSSW_1_8_0_pre0-amd64, CMSSW_1_8_0_pre0, pe20071123e-ports-412, pe20071123d-ports-412, pe20071123c-ports-422, pe20071123c-ports-412, pe20071123c-ports, pe20071123b-ports-422, pe20071123b-ports-412, pe20071123b-ports, pe20071123a-ports-422, pe20071123a-ports-412, pe20071123a-ports, ge20071122-new-bootstrap, pe20071121a-ports-422, pe20071121a-ports-412, pe20071121a-ports, pe20071112c-ports-422, pe20071112c-ports-412, pe20071112c-ports, pe20071112b-ports-412, pe20071112b-ports, pe20071112a-ports, pe20071105c-ports, pe20071105b-ports, pe20071105a-ports, pe20071103e-ports, pe20071103d-ports, pe20071103c-ports, pe20071103b-ports, pe20071103a-ports, pe20071102b-ports
Changes since 1.14: +1 -1 lines
Log Message:
Update to -CMS18 (first round of these)

File Contents

# User Rev Content
1 elmer 1.15 ### RPM external graphviz 1.9-CMS18
2 elmer 1.12 Source: http://service-spi.web.cern.ch/service-spi/external/tarFiles/%{n}-%{realversion}.tar.gz
3 ratnik 1.4 Requires: expat zlib libjpg libpng
4 elmer 1.3 Patch0: graphviz
5 eulisse 1.1
6     %prep
7 elmer 1.12 %setup -n %{n}-%{realversion}
8 elmer 1.3 %patch0 -p1
9 eulisse 1.1
10     %build
11 ratnik 1.4 ./configure \
12     --with-expatlibdir=$EXPAT_ROOT/lib \
13     --with-expatincludedir=$EXPAT_ROOT/include \
14     --with-zincludedir=$ZLIB_ROOT/include \
15     --with-zlibdir=$ZLIB_ROOT/lib \
16     --with-pngincludedir=$LIBJPG_ROOT/include \
17     --with-pnglibdir=$LIBJPG_ROOT/lib \
18     --with-jpegincludedir=$LIBPNG_ROOT/include \
19     --with-jpeglibdir=$LIBPNG_ROOT/lib \
20     --without-x \
21 elmer 1.9 --without-tclsh \
22 eulisse 1.5 --without-tcl \
23 argiro 1.6 --without-tk \
24 ratnik 1.4 --prefix=%{i}
25 elmer 1.8 # This is a workaround for the fact that sort from coreutils 5.96 doesn't
26     # like "sort +0 -1", not really something specific to ppc64/ydl5.0
27     if [ "$(uname -m)" == "ppc64" ]
28     then
29     perl -p -i -e "s|\+0 \-1|-k1,1|g" dotneato/common/Makefile
30     fi
31 eulisse 1.1 make
32 muzaffar 1.14
33     %install
34     make install
35     # SCRAM ToolBox toolfile
36     mkdir -p %i/etc/scram.d
37     cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
38     <doc type=BuildSystem::ToolDoc version=1.0>
39     <Tool name=%n version=%v>
40     <info url="http://www.research.att.com/sw/tools/graphviz/"></info>
41     <Client>
42     <Environment name=GRAPHVIZ_BASE default="%i"></Environment>
43     <Environment name=GRAPHVIZ_BINDIR default="$GRAPHVIZ_BASE/bin"></Environment>
44     <Environment name=LIBDIR default="$GRAPHVIZ_BASE/lib/graphviz"></Environment>
45     </Client>
46     <Runtime name=PATH value="$GRAPHVIZ_BINDIR" type=path>
47     <Use name=expat>
48     <Use name=zlib>
49     <Use name=libjpg>
50     <use name=libpng>
51     </Tool>
52     EOF_TOOLFILE
53    
54 eulisse 1.7 %post
55 muzaffar 1.14 %{relocateConfig}bin/dotneato-config `find $RPM_INSTALL_PREFIX/%pkgrel/lib/graphviz -name *.la`
56     %{relocateConfig}etc/scram.d/%n