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 1.9-CMS3 |
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 |
5 |
|
|
6 |
|
%prep |
7 |
< |
%setup -n %{n}-%{v} |
7 |
> |
%setup -n %{n}-%{realversion} |
8 |
|
%patch0 -p1 |
9 |
|
|
10 |
|
%build |
18 |
|
--with-jpegincludedir=$LIBPNG_ROOT/include \ |
19 |
|
--with-jpeglibdir=$LIBPNG_ROOT/lib \ |
20 |
|
--without-x \ |
21 |
+ |
--without-tclsh \ |
22 |
+ |
--without-tcl \ |
23 |
+ |
--without-tk \ |
24 |
|
--prefix=%{i} |
25 |
< |
|
25 |
> |
# This is a workaround for the fact that sort from coreutils 5.96 doesn't |
26 |
> |
# like "sort +0 -1", not really something specific to ppc64/ydl5.0 |
27 |
> |
if [ "$(uname -m)" == "ppc64" ] |
28 |
> |
then |
29 |
> |
perl -p -i -e "s|\+0 \-1|-k1,1|g" dotneato/common/Makefile |
30 |
> |
fi |
31 |
|
make |
32 |
+ |
%post |
33 |
+ |
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` |