forked from pool/rrdtool
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
This commit is contained in:
parent
af74277f94
commit
0d675ce3ac
12
rrdtool.spec
12
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
|
||||
|
Loading…
Reference in New Issue
Block a user