1 |
< |
### RPM external graphviz 1.9 |
2 |
< |
Source: http://service-spi.web.cern.ch/service-spi/external/tarFiles/%{n}-%{v}.tar.gz |
1 |
> |
### RPM external graphviz 2.16.1-CMS19 |
2 |
> |
Source: http://www.graphviz.org/pub/%{n}/ARCHIVE/%{n}-%{realversion}.tar.gz |
3 |
|
Requires: expat zlib libjpg libpng |
4 |
– |
Patch0: graphviz |
4 |
|
|
5 |
|
%prep |
6 |
< |
%setup -n %{n}-%{v} |
8 |
< |
%patch0 -p1 |
6 |
> |
%setup -n %{n}-%{realversion} |
7 |
|
|
8 |
|
%build |
9 |
|
./configure \ |
26 |
|
then |
27 |
|
perl -p -i -e "s|\+0 \-1|-k1,1|g" dotneato/common/Makefile |
28 |
|
fi |
29 |
+ |
# Probably the configure should just be remade on Darwin, but it builds |
30 |
+ |
# as-is with this small cleanup |
31 |
+ |
%ifos darwin |
32 |
+ |
perl -p -i -e "s|-lexpat||g" configure |
33 |
+ |
%endif |
34 |
|
make |
35 |
+ |
|
36 |
+ |
%install |
37 |
+ |
make install |
38 |
+ |
# SCRAM ToolBox toolfile |
39 |
+ |
mkdir -p %i/etc/scram.d |
40 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/%n |
41 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
42 |
+ |
<Tool name=%n version=%v> |
43 |
+ |
<info url="http://www.research.att.com/sw/tools/graphviz/"></info> |
44 |
+ |
<Client> |
45 |
+ |
<Environment name=GRAPHVIZ_BASE default="%i"></Environment> |
46 |
+ |
<Environment name=GRAPHVIZ_BINDIR default="$GRAPHVIZ_BASE/bin"></Environment> |
47 |
+ |
<Environment name=LIBDIR default="$GRAPHVIZ_BASE/lib/graphviz"></Environment> |
48 |
+ |
</Client> |
49 |
+ |
<Runtime name=PATH value="$GRAPHVIZ_BINDIR" type=path> |
50 |
+ |
<Use name=expat> |
51 |
+ |
<Use name=zlib> |
52 |
+ |
<Use name=libjpg> |
53 |
+ |
<use name=libpng> |
54 |
+ |
</Tool> |
55 |
+ |
EOF_TOOLFILE |
56 |
+ |
|
57 |
|
%post |
58 |
< |
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` |
58 |
> |
# It appears one needs to list at least one explicitly as the macro adds |
59 |
> |
# the prefix, but then the find can add it and the others (also with the |
60 |
> |
# prefix) |
61 |
> |
%{relocateConfig}/lib/libgraph.la `find $RPM_INSTALL_PREFIX/%pkgrel/lib -name *.la` |
62 |
> |
%{relocateConfig}etc/scram.d/%n |