From 5fc60b021808583418f0e18d2c3ba73963e496f5540308119724fdeac9e234c2 Mon Sep 17 00:00:00 2001 From: Pascal Bleser Date: Tue, 28 Dec 2010 03:09:45 +0000 Subject: [PATCH] fix older dists OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/rrdtool?expand=0&rev=14 --- rrdtool.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rrdtool.spec b/rrdtool.spec index 8cff690..0409424 100644 --- a/rrdtool.spec +++ b/rrdtool.spec @@ -61,7 +61,11 @@ pushd cgilib-%{cgilib_version} echo -n > NEWS aclocal --force autoreconf -fiv -CFLAGS="%{optflags} -fPIC -I. -fexcess-precision=fast" \ +CGILIB_CFLAGS="%{optflags} -fPIC -I." +%if 0%{?suse_version} >= 1130 +CGILIB_CFLAGS="$CGILIB_CFLAGS -fexcess-precision=fast" +%endif +CFLAGS="$CGILIB_CFLAGS" \ %configure make %{?jobs:-j %jobs} %__mkdir_p ../lb/include