From 0d675ce3acb74a437936f99d684d24e128e3e7612f534aa6ece604d672632ba2 Mon Sep 17 00:00:00 2001 From: Pascal Bleser Date: Tue, 28 Dec 2010 03:18:06 +0000 Subject: [PATCH] only build lua bindings on >= 9.2, and require gettext instead of gettext-tools on SLES_9 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/rrdtool?expand=0&rev=16 --- rrdtool.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/rrdtool.spec b/rrdtool.spec index 7796a76..2a3d951 100644 --- a/rrdtool.spec +++ b/rrdtool.spec @@ -18,9 +18,17 @@ Name: rrdtool -BuildRequires: cairo-devel freetype2-devel gettext-tools glib2-devel intltool libart_lgpl-devel libpng-devel libxml2-devel pango-devel python-devel tcl-devel +BuildRequires: cairo-devel freetype2-devel glib2-devel intltool libart_lgpl-devel libpng-devel libxml2-devel pango-devel python-devel tcl-devel +%if 0%{?suse_version} >= 1100 +BuildRequires: gettext-tools +%else +BuildRequires: gettext +%endif BuildRequires: ruby-devel +%if 0%{?suse_version} >= 920 +%define has_lua 1 BuildRequires: lua-devel +%endif BuildRequires: autoconf automake libtool BuildRequires: tcpd-devel License: GPLv2+ @@ -196,6 +204,7 @@ This package contains the Python bindings %defattr(-, root, root) %{py_sitedir}/* +%if 0%{?has_lua} %package -n lua-rrdtool License: GPLv2+ Summary: Lua bindings for rrdtool @@ -216,5 +225,6 @@ This package contains the Lua bindings %dir %{_libdir}/lua/* %{_libdir}/lua/*/rrd.so %{_libdir}/lua/*/rrd.so.* +%endif %changelog