1 |
< |
### RPM external graphviz 1.9-CMS3 |
1 |
> |
### RPM external graphviz 1.9-CMS8 |
2 |
|
Source: http://service-spi.web.cern.ch/service-spi/external/tarFiles/%{n}-%{realversion}.tar.gz |
3 |
|
Requires: expat zlib libjpg libpng |
4 |
|
Patch0: graphviz |
29 |
|
perl -p -i -e "s|\+0 \-1|-k1,1|g" dotneato/common/Makefile |
30 |
|
fi |
31 |
|
make |
32 |
+ |
|
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 |
|
%post |
55 |
< |
perl -p -i -e "s|%instroot|$RPM_INSTALL_PREFIX|" $RPM_INSTALL_PREFIX/%pkgrel/bin/dotneato-config `find $RPM_INSTALL_PREFIX/%pkgrel/lib/graphviz -name *.la` |
55 |
> |
%{relocateConfig}bin/dotneato-config `find $RPM_INSTALL_PREFIX/%pkgrel/lib/graphviz -name *.la` |
56 |
> |
%{relocateConfig}etc/scram.d/%n |