Revision: | 1.24 |
Committed: | Sun Nov 9 23:13:04 2008 UTC (16 years, 5 months ago) by elmer |
Branch: | MAIN |
CVS Tags: | DBS-APP_20100122_slc4, DBS-APP_20100121_slc4, DBS-WEB_20100120_slc4, DBS-APP_20100120_slc4, DBS-APP_20100118_slc4, DBS-WEB_20100118_slc4, DBS-APP_20100114_slc4, DBS-WEB_20100113_slc4, DAS_20091202, FILEMOVER_20091118, DBS-APPS_20090929, pe20091117a-fromDAS_20090709, pe20091116b-fromDAS_20090709, pe20091116a-fromDAS_20090709, DAS_20091104, DBS-WEB_20091021, DAS_20091016, DAS_20091014, DBS-WEB_20091012, DBS-WEB_20090921, pe20090910-fromDAS_20090709, FILEMOVER_20090910, DBS-WEB_20090817, FILEMOVER_20090828, DBS-APPS_20090706, WEBTOOLS_APPS_20090817, DBS-APPS_20090804, DBS-APPS_20090730, DAS_20090709, DAS_20090607, DBS-WEB_20090618, DBS-APPS_20090619, DBS-APPS_20090608, DBS-APPS_20090604_1, DAS_20090604, DBS-APPS_20090604, DAS_20090603, DBS-APPS_20090603, DBS-APPS_20090528, pe20090525a-31Xports-432, DBS_APPS_20090518, DAS_20090514_3, DAS_20090514_2, DAS_20090514_1, DAS_20090514, pe20090514b-31Xports-432, pe20090514a-31Xports-432, DBS-WEB_20090512, pe20090512a-31Xports-432, pe20090511a-31Xports-432, DBS-WEB_20090507, pe20090505b-31Xports-432, pe20090505a-31Xports-432, pe20090504a-31Xports-432, DBS_APPS_20090504, DBS_APPS_20090501, DBS-APPS_20090429_2, DBS-WEB_20090429, DBS-APPS_20090429, DBS-WEB_20090428, DBS-WEB_20090422, DBS-WEB_20090420, DBS-APPS_20090417, DBS-APPS_20090415, pe20090414a-31Xports-432, DBS-APPS_20090410, DAS_20090408, pe20090407a-31Xports-432, DBS-APPS_20090406, pe20090406b-31Xports-432, pe20090406a-31Xports-432, pe20090403a-31Xports-432, DAS_20090330, DBS-APPS_20090326, DAS_20090319_1, DAS_20090319, DBS-APPS_20090318, DBS-APPS_20090316, DAS_20090316, DAS_20090313, COUCHDB_20090313, DBS-APPS_20090310, WEBTOOLS-APPS_20090310_1, WEBTOOLS-APPS_20090310, WEBTOOLS-APPS_20090309, DBS-APPS_20090306, DBS-APPS_20090304_1, DBS-APPS_20090304, pe20090304b-30Xports-432, pe20090304a-30Xports-432, DBS-APPS_20090303_1, DBS-APPS_20090303, DBS-APPS_20090302, pe20090226b-30Xports-432, pe20090226a-30Xports-432, pe20090224b-30Xports-432, pe20090224a-30Xports-432, DBS-APPS_20090220_1, DBS-APPS_20090220, T0M_0_0_5, MEMCACHED_20090219_1, MEMCACHED_20090219, WEBTOOLS-APPS_20090217_1, WEBTOOLS-APPS_20090217, WEBTOOLS-APPS_20090216, WEBTOOLS-APPS_20090212, WEBTOOLS-APPS_20090209_64bit, zx20090209, WEBTOOLS-APPS_20090206, T0M_0_0_4, T0M_0_0_3, WEBTOOLS-APPS_20090203_1, WEBTOOLS-APPS_20090203, T0M_0_0_2, zx20090201, WEBTOOLS-APPS_20090130, WEBTOOLS-APPS_20090129, PRODAGENT_0_12_10_pre3, PRODAGENT_0_12_10_pre2_20090127_V2, PRODAGENT_0_12_10_20090122, PRODAGENT_0_12_10_pre1_MISC, sw_20090115a, sw_20090115, pe20081213c-30Xports-432, pe20081213c-30Xports, pe20081213b-30Xports, pe20081213a-30Xports, pe20081125d-30Xports-432, pe20081125d-30Xports, pe20081125c-30Xports-432, pe20081125c-30Xports, pe20081125b-30Xports, pe20081125b-30Xports-432, pe20081125a-30Xports, pe20081124d-30Xports, pe20081124c-30Xports, pe20081124b-30Xports, pe20081124a-30Xports, pe20081121b-30Xports, pe20081121a-30Xports, testofc |
Changes since 1.23: | +1 -1 lines |
Log Message: | Remove old-style "-CMS19" from version string, no other change. |
# | Content |
---|---|
1 | ### RPM external graphviz 2.16.1 |
2 | Source: http://www.graphviz.org/pub/%{n}/ARCHIVE/%{n}-%{realversion}.tar.gz |
3 | Requires: expat zlib libjpg libpng |
4 | |
5 | %prep |
6 | %setup -n %{n}-%{realversion} |
7 | |
8 | %build |
9 | which gcc |
10 | LIB64_SUFFIX= |
11 | case %cmsplatf in |
12 | *_ia32_* ) |
13 | export LD_LIBRARY_PATH=`echo $LD_LIBRARY_PATH | sed -e 's|lib64|lib|g'` |
14 | ADDITIONAL_OPTIONS="--with-freetype2=no --disable-shared --enable-static --disable-libtdl" |
15 | ;; |
16 | *_amd64_* ) |
17 | LIB64_SUFFIX=64 |
18 | ADDITIONAL_OPTIONS="--with-freetype2=no --disable-shared --enable-static --disable-ltdl" |
19 | ;; |
20 | osx* ) |
21 | ADDITIONAL_OPTIONS="--with-freetype2=no" |
22 | ;; |
23 | esac |
24 | ./configure \ |
25 | --with-expatlibdir=$EXPAT_ROOT/lib$LIB64_SUFFIX \ |
26 | --with-expatincludedir=$EXPAT_ROOT/include \ |
27 | --with-zincludedir=$ZLIB_ROOT/include \ |
28 | --with-zlibdir=$ZLIB_ROOT/lib \ |
29 | --with-pngincludedir=$LIBPNG_ROOT/include \ |
30 | --with-pnglibdir=$LIBPNG_ROOT/lib \ |
31 | --with-jpegincludedir=$LIBJPG_ROOT/include \ |
32 | --with-jpeglibdir=$LIBJPG_ROOT/lib \ |
33 | --without-x \ |
34 | --without-tclsh \ |
35 | --without-tcl \ |
36 | --without-fontconfig \ |
37 | --without-tk \ |
38 | --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 | --prefix=%{i} \ |
55 | $ADDITIONAL_OPTIONS |
56 | |
57 | # 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 | # 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 | make %makeprocesses |
67 | |
68 | %install |
69 | make install |
70 | # To match configure options above |
71 | case %cmsplatf in |
72 | *_ia32_* | *_amd64_*) |
73 | ln -s dot_static %i/bin/dot |
74 | ;; |
75 | esac |
76 | |
77 | # SCRAM ToolBox toolfile |
78 | mkdir -p %i/etc/scram.d |
79 | cat << \EOF_TOOLFILE >%i/etc/scram.d/%n |
80 | <doc type=BuildSystem::ToolDoc version=1.0> |
81 | <Tool name=%n version=%v> |
82 | <info url="http://www.research.att.com/sw/tools/graphviz/"></info> |
83 | <Client> |
84 | <Environment name=GRAPHVIZ_BASE default="%i"></Environment> |
85 | <Environment name=GRAPHVIZ_BINDIR default="$GRAPHVIZ_BASE/bin"></Environment> |
86 | <Environment name=LIBDIR default="$GRAPHVIZ_BASE/lib/graphviz"></Environment> |
87 | </Client> |
88 | <Runtime name=PATH value="$GRAPHVIZ_BINDIR" type=path> |
89 | <Use name=expat> |
90 | <Use name=zlib> |
91 | <Use name=libjpg> |
92 | <use name=libpng> |
93 | </Tool> |
94 | EOF_TOOLFILE |
95 | |
96 | %post |
97 | # It appears one needs to list at least one explicitly as the macro adds |
98 | # the prefix, but then the find can add it and the others (also with the |
99 | # prefix) |
100 | %{relocateConfig}/lib/libgraph.la `find $RPM_INSTALL_PREFIX/%pkgrel/lib -name *.la` |
101 | %{relocateConfig}etc/scram.d/%n |