packages: rrdtool/rrdtool.spec - ruby and tcl bconds
jajcus
jajcus at pld-linux.org
Thu Apr 7 15:04:07 CEST 2011
Author: jajcus Date: Thu Apr 7 13:04:08 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- ruby and tcl bconds
---- Files affected:
packages/rrdtool:
rrdtool.spec (1.158 -> 1.159)
---- Diffs:
================================================================
Index: packages/rrdtool/rrdtool.spec
diff -u packages/rrdtool/rrdtool.spec:1.158 packages/rrdtool/rrdtool.spec:1.159
--- packages/rrdtool/rrdtool.spec:1.158 Sun Jan 2 11:32:53 2011
+++ packages/rrdtool/rrdtool.spec Thu Apr 7 15:03:59 2011
@@ -2,6 +2,8 @@
#
# Conditional build:
%bcond_without python # Python binding
+%bcond_without tcl # Tcl binding
+%bcond_without ruby # Ruby binding
#
%include /usr/lib/rpm/macros.perl
%define pdir RRDp
@@ -39,8 +41,8 @@
BuildRequires: rpm-perlprov
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.272
-BuildRequires: ruby-devel
-BuildRequires: tcl-devel
+%{?with_ruby:BuildRequires: ruby-devel}
+%{?with_tcl:BuildRequires: tcl-devel}
Requires: cairo >= 1.4.6
Requires: glib2 >= 1:2.12.12
Requires: libxml2 >= 2.6.31
@@ -252,6 +254,8 @@
%configure \
LUA=/usr/bin/lua51 \
--disable-silent-rules \
+ %{!?with_tcl:--disable-tcl} \
+ %{!?with_ruby:--disable-ruby} \
--with-perl-options="INSTALLDIRS=vendor"
# empty RUBY_MAKE_OPTIONS as workaround for some make weirdness
@@ -332,14 +336,18 @@
%endif
%endif
+%if %{with ruby}
%files -n ruby-rrdtool
%defattr(644,root,root,755)
%attr(755,root,root) %{ruby_archdir}/RRD.so
+%endif
+%if %{with tcl}
%files -n tcl-rrdtool
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/tclrrd%{version}.so
%{_prefix}/lib/tclrrd%{version}
+%endif
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -347,6 +355,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.159 2011/04/07 13:03:59 jajcus
+- ruby and tcl bconds
+
Revision 1.158 2011/01/02 10:32:53 adamg
- updated to 1.4.5
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/rrdtool/rrdtool.spec?r1=1.158&r2=1.159&f=u
More information about the pld-cvs-commit
mailing list