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