From 25af15c1c10ae4e594296d9359f90fba53f14e6f Mon Sep 17 00:00:00 2001 From: ellson Date: Tue, 7 Aug 2007 14:14:01 +0000 Subject: [PATCH] Enforce the graphviz-spec's set of plugins during configure in case we are building rpms on a non-vanilla platform with extra stuff loaded that configure might find. based on patch from: Gareth Armstrong --- graphviz.spec.in | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/graphviz.spec.in b/graphviz.spec.in index 39d7652c8..bf0d9b92f 100644 --- a/graphviz.spec.in +++ b/graphviz.spec.in @@ -411,6 +411,39 @@ Provides some additional PDF and HTML documentation for graphviz. %setup -q %build +%if ! %{SHARP} +%define NO_SHARP --disable-sharp +%endif +%if ! %{GUILE} +%define NO_GUILE --disable-guile +%endif +%if ! %{_IO} +%define NO_IO --disable-io +%endif +%if ! %{JAVA} +%define NO_JAVA --disable-java +%endif +%if ! %{LUA} +%define NO_LUA --disable-lua +%endif +%if ! %{OCAML} +%define NO_OCAML --disable-ocaml +%endif +%if ! %{PERL} +%define NO_PERL --disable-perl +%endif +%if ! %{PHP} +%define NO_PHP --disable-php +%endif +%if ! %{PYTHON} +%define NO_PYTHON --disable-python +%endif +%if ! %{RUBY} +%define NO_RUBY --disable-ruby +%endif +%if ! %{TCL} +%define NO_TCL --disable-tcl +%endif # XXX ix86 only used to have -ffast-math, let's use everywhere %{expand: %%define optflags %{optflags} -ffast-math} # %%configure is broken in RH7.3 rpmbuild @@ -424,7 +457,7 @@ CFLAGS="$RPM_OPT_FLAGS" \ --mandir=%{_mandir} \ --with-x \ --disable-static \ - --disable-dependency-tracking %{MYLIBGD} %{IPSEPCOLA} %{MING} %{PANGOCAIRO} + --disable-dependency-tracking %{MYLIBGD} %{IPSEPCOLA} %{MING} %{PANGOCAIRO} %{?NO_SHARP} %{?NO_GUILE} %{?NO_IO} %{?NO_JAVA} %{?NO_LUA} %{?NO_OCAML} %{?NO_PERL} %{?NO_PHP} %{?NO_PYTHON} %{?NO_RUBY} %{?NO_TCL} %__make %{?_smp_mflags} %install -- 2.40.0