1 |
< |
### RPM external graphviz 2.16.1-CMS19 |
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 |
|
|
9 |
|
which gcc |
10 |
|
LIB64_SUFFIX= |
11 |
|
case %cmsplatf in |
12 |
< |
*_ia32_* ) |
12 |
> |
slc*_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_* ) |
16 |
> |
slc*_amd64_* ) |
17 |
|
LIB64_SUFFIX=64 |
18 |
|
ADDITIONAL_OPTIONS="--with-freetype2=no --disable-shared --enable-static --disable-ltdl" |
19 |
|
;; |
26 |
|
--with-expatincludedir=$EXPAT_ROOT/include \ |
27 |
|
--with-zincludedir=$ZLIB_ROOT/include \ |
28 |
|
--with-zlibdir=$ZLIB_ROOT/lib \ |
29 |
< |
--with-pngincludedir=$LIBJPG_ROOT/include \ |
30 |
< |
--with-pnglibdir=$LIBJPG_ROOT/lib \ |
31 |
< |
--with-jpegincludedir=$LIBPNG_ROOT/include \ |
32 |
< |
--with-jpeglibdir=$LIBPNG_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 \ |
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 |
66 |
> |
# make %makeprocesses |
67 |
> |
make |
68 |
|
|
69 |
|
%install |
70 |
|
make install |
71 |
|
# To match configure options above |
72 |
|
case %cmsplatf in |
73 |
< |
*_ia32_* | *_amd64_*) |
73 |
> |
slc*_ia32_* | slc*_amd64_*) |
74 |
|
ln -s dot_static %i/bin/dot |
75 |
|
;; |
76 |
|
esac |
77 |
|
|
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 |
– |
|
78 |
|
%post |
79 |
< |
# 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 |
79 |
> |
%{relocateCmsFiles} `find $RPM_INSTALL_PREFIX/%pkgrel/lib -name *.la` |