ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/graphviz.spec
Revision: 1.25
Committed: Tue May 19 09:01:05 2009 UTC (15 years, 11 months ago) by andreasp
Branch: MAIN
CVS Tags: dg20091203-comp-base, CMSSW_3_3_3_onlpatch5_ONLINE, CMSSW_3_3_3_onlpatch4_ONLINE, CMSSW_3_3_3_onlpatch2_ONLINE, CMSSW_3_3_3_onlpatch3_ONLINE, CMSSW_3_3_3_ONLINE, fw20091114b, fw20091114a, fw20091114, apFor333v0_sl5igcc4, apFor333v0_sl4igcc4, CMSSW_3_3_2_ONLINE-slc5, sm091112c-slc5onl, sm091112b-slc5onl, sm091112a-slc5onl, sm091112-slc5onl, CMSSW_3_3_2_onlpatch2_ONLINE, CMSSW_3_3_2_ONLINE, CMSSW_3_3_2_onlpatch1_ONLINE, ap20091107-slc5onl, CMSSW_3_4_0_pre5-slc5-gcc434, CMSSW_3_4_0_pre5-slc4-gcc432, CMSSW_3_4_0_pre4-slc4-gcc432, CMSSW_3_4_0_pre5-slc4_gcc432, dl091106, ap-20091103a-slc5onl-bootstrap, ap-20091103-slc5onl-bootstrap, CMSSW_3_3_2_FWLITE-slc5-gcc434, apFor332fwlv1-slc5-gcc434, apFor332fwlv0, eskFor340p4, CMSSW_3_3_2-slc5-gcc434, CMSSW_3_3_2-slc4-gcc432, apFor332v0_sl4igcc4, apFor332v0_sl5igcc4, CMSSW_3_4_0_pre3, CouchDB_0_10_0, eskFor340p3, apFor331fwlv1-slc5gcc434, sm091023b-slc5onl, sm091023a-slc5onl, CMSSW_3_3_1-slc5-gcc434, CMSSW_3_3_1-slc4-gcc432, CMSSW_3_3_0_onlpatch2_ONLINE, CMSSW_3_2_7_onlpatch6_ONLINE, for330op2, for327op6, pe20091022a-ports, pe20091022a-ports5, CMSSW_3_3_0_onlpatch1_ONLINE, pe20091021a-ports5, pe20091021a-ports, CMSSW_3_2_7_onlpatch5_ONLINE, CMSSW_3_2_7_onlpatch4_ONLINE, CMSSW_3_4_0_pre2-432, CMSSW_3_4_0_pre1-432, pe20091018a-ports5, ge20091019, sm327op4, CERNOIDv01, ge20091015-comp-bootstrap, CMSSW_3_3_0-slc5, CMSSW_3_3_0-432, WMCORE-before-refactor, CMSSW_3_3_0_ONLINE, sm091013a, sm091012c, sm091012b, sm091012a, CMSSW_3_2_7_onlpatch3_ONLINE, pe20091008d-ports5, pe20091008d-ports, pe20091008c-ports5, ge20091008-fix-rpm-relocation, pe20091008b-ports5, pe20091008a-ports5, sm091007a, ge20091010-bootstrap, pe20091006e-ports5, ge20091006-bootstrap-3, pe20091006d-ports5, ge20091006-bootstrap-2, CMSSW_3_3_0_pre6-432, pe20091006c-ports5, ge20091006, pe20091006b-ports5, pe20091006a-ports5, pe20091006a-ports, PerfSuiteDB_20090930, pe20090929a-ports, ge20090929-amd64, ge20090929-ia32, ap20090929a-ports, CMSSW_3_3_0_pre5-432, CMSSW_3_2_7_onlpatch2_ONLINE, sm090928a, pe20090925a-ports, pe20090924a-ports, pe20090923b-ports, CMSSW_3_2_7_onlpatch1_ONLINE, CMSSW_3_2_7_ONLINE, sm090923a, pe20090923a-ports, pe20090922e-ports, pe20090922d-ports, pe20090922c-ports, pe20090922b-ports, pe20090922a-ports, ge20090922-ports, sm090922a, pe20090921d-ports, ge20090921-ports, pe20090921c-ports, PerfSuiteDB_20090916, pe20090912a-ports-xdaq, pe20090911a-ports-xdaq, pe20090907a-ports, apFor330pre2v0, PerfSuiteDB_20090904_almost_stable, pe20090904a-ports, PerfSuiteDB_20090904, pe20090903b-ports, pe20090903a-ports, PerfSuiteDB_20090901, CMSSW_3_2_1_onlpatch6_ONLINE, sm090829a, forHEARTBEATr04, pe20090827a-ports, CMSSW_3_2_1_onlpatch5_ONLINE, pe20090826a-ports, RPMVERIFY_0_2, sm090826a, forHEARTBEATr01, CMSSW_3_2_1_onlpatch4_ONLINE, sm090818a, CMSSW_3_2_4_ONLINE, sm090813e, sm090813d, sm090813c, sm090813b, sm090813a, CMSSW_3_2_1_onlpatch3_ONLINE, sm090810a, CMSSW_3_2_1_onlpatch2_ONLINE, sm090806a, CMSSW_3_2_1_onlpatch1_ONLINE, apFor321onlp1v1, apFor321onlp1v0, CMSSW_3_2_1-432, pe20090722b-31Xports-432, pe20090722a-31Xports-432, CMSSW_3_2_1_ONLINE, sm090721b, sm090721a, sm090720b, sm090720a, apFor320onlv1, CMSSW_3_1_1_onlpatch3_ONLINE, sm090716a, CMSSW_3_1_1_onlpatch2_ONLINE, sm090715c, sm090715b, sm090715a, CMSSW_3_ONLINE_BOOTSTRAP, sm090709a, CMSSW_3_1_1_onlpatch1_ONLINE, sm090708g, CMSSW_3_1_1_ONLINE, sm090708f, sm090708e, sm090708d, sm090708c, sm090708b, CMSSW_3_1_0_ONLINE2, sm090708a, pe20090707c-31Xports-432, pe20090707b-31Xports-432, pe20090707a-31Xports-432, pe20090706b-31Xports-432, pe20090706a-31Xports-432, CMSSW_3_1_0_onlpatch1_ONLINE, sm090703a, pe20090701a-31Xports-432, CMSSW_3_1_0_ONLINE, sm090701b, sm090701a, CMSSW_3_1_0_pre10_ONLINE, sm090621b, sm090621a, sm090620b, sm090620a, sm090619e, sm090619d, sm090619c, sm090619b, sm090619a, sm090618a, CMSSW_3_1_0_pre10-432, pe20090616a-31Xports-432, pe20090615a-31Xports-432, pe20090611c-31Xports-432, pe20090611b-31Xports-432, pe20090611a-31Xports-432, pe20090610d-31Xports-432, pe20090610c-31Xports-432, pe20090610b-31Xports-432, pe20090610a-31Xports-432, pe20090604a-31Xports-432, pe20090526a-31Xports-432, pe20090525b-31Xports-432, ap20090520-osx105, ap20090519-osx105
Changes since 1.24: +3 -2 lines
Log Message:
updates for building on mac os x 10.5 (leopard)

File Contents

# User Rev Content
1 andreasp 1.25 ### RPM external graphviz 2.16.1-CMS19
2 elmer 1.17 Source: http://www.graphviz.org/pub/%{n}/ARCHIVE/%{n}-%{realversion}.tar.gz
3 ratnik 1.4 Requires: expat zlib libjpg libpng
4 eulisse 1.1
5     %prep
6 elmer 1.12 %setup -n %{n}-%{realversion}
7 eulisse 1.1
8     %build
9 eulisse 1.19 which gcc
10     LIB64_SUFFIX=
11 eulisse 1.18 case %cmsplatf in
12 eulisse 1.19 *_ia32_* )
13 eulisse 1.18 export LD_LIBRARY_PATH=`echo $LD_LIBRARY_PATH | sed -e 's|lib64|lib|g'`
14 elmer 1.22 ADDITIONAL_OPTIONS="--with-freetype2=no --disable-shared --enable-static --disable-libtdl"
15 eulisse 1.19 ;;
16     *_amd64_* )
17     LIB64_SUFFIX=64
18 elmer 1.22 ADDITIONAL_OPTIONS="--with-freetype2=no --disable-shared --enable-static --disable-ltdl"
19 eulisse 1.19 ;;
20     osx* )
21 elmer 1.22 ADDITIONAL_OPTIONS="--with-freetype2=no"
22 eulisse 1.18 ;;
23     esac
24 ratnik 1.4 ./configure \
25 eulisse 1.19 --with-expatlibdir=$EXPAT_ROOT/lib$LIB64_SUFFIX \
26 ratnik 1.4 --with-expatincludedir=$EXPAT_ROOT/include \
27     --with-zincludedir=$ZLIB_ROOT/include \
28 eulisse 1.20 --with-zlibdir=$ZLIB_ROOT/lib \
29 elmer 1.23 --with-pngincludedir=$LIBPNG_ROOT/include \
30     --with-pnglibdir=$LIBPNG_ROOT/lib \
31     --with-jpegincludedir=$LIBJPG_ROOT/include \
32     --with-jpeglibdir=$LIBJPG_ROOT/lib \
33 ratnik 1.4 --without-x \
34 elmer 1.9 --without-tclsh \
35 eulisse 1.5 --without-tcl \
36 eulisse 1.18 --without-fontconfig \
37 argiro 1.6 --without-tk \
38 eulisse 1.18 --without-perl \
39     --without-python \
40     --without-ruby \
41     --disable-ruby \
42     --disable-perl \
43     --without-pangocairo \
44     --without-fontconfig \
45     --without-gdk-pixbuf \
46     --disable-sharp \
47     --disable-guile \
48     --disable-java \
49     --disable-lua \
50     --disable-ocaml \
51     --disable-perl \
52     --disable-php \
53     --disable-python \
54 eulisse 1.19 --prefix=%{i} \
55     $ADDITIONAL_OPTIONS
56    
57 elmer 1.8 # This is a workaround for the fact that sort from coreutils 5.96 doesn't
58     # like "sort +0 -1", not really something specific to ppc64/ydl5.0
59     if [ "$(uname -m)" == "ppc64" ]
60     then
61     perl -p -i -e "s|\+0 \-1|-k1,1|g" dotneato/common/Makefile
62     fi
63 elmer 1.17 # Probably the configure should just be remade on Darwin, but it builds
64     # as-is with this small cleanup
65     perl -p -i -e "s|-lexpat||g" configure
66 andreasp 1.25 # make %makeprocesses
67     make
68 muzaffar 1.14
69     %install
70     make install
71 elmer 1.22 # To match configure options above
72     case %cmsplatf in
73     *_ia32_* | *_amd64_*)
74     ln -s dot_static %i/bin/dot
75     ;;
76     esac
77 eulisse 1.20
78 muzaffar 1.14 # SCRAM ToolBox toolfile
79     mkdir -p %i/etc/scram.d
80     cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
81     <doc type=BuildSystem::ToolDoc version=1.0>
82     <Tool name=%n version=%v>
83     <info url="http://www.research.att.com/sw/tools/graphviz/"></info>
84     <Client>
85     <Environment name=GRAPHVIZ_BASE default="%i"></Environment>
86     <Environment name=GRAPHVIZ_BINDIR default="$GRAPHVIZ_BASE/bin"></Environment>
87     <Environment name=LIBDIR default="$GRAPHVIZ_BASE/lib/graphviz"></Environment>
88     </Client>
89     <Runtime name=PATH value="$GRAPHVIZ_BINDIR" type=path>
90     <Use name=expat>
91     <Use name=zlib>
92     <Use name=libjpg>
93     <use name=libpng>
94     </Tool>
95     EOF_TOOLFILE
96    
97 eulisse 1.7 %post
98 elmer 1.17 # It appears one needs to list at least one explicitly as the macro adds
99     # the prefix, but then the find can add it and the others (also with the
100     # prefix)
101     %{relocateConfig}/lib/libgraph.la `find $RPM_INSTALL_PREFIX/%pkgrel/lib -name *.la`
102 muzaffar 1.14 %{relocateConfig}etc/scram.d/%n