rpms/rrdtool/devel rrdtool.spec,1.36,1.37
Jarod Wilson (jwilson)
fedora-extras-commits at redhat.com
Mon May 21 15:08:50 UTC 2007
Author: jwilson
Update of /cvs/pkgs/rpms/rrdtool/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15152
Modified Files:
rrdtool.spec
Log Message:
Build ruby bindings
Index: rrdtool.spec
===================================================================
RCS file: /cvs/pkgs/rpms/rrdtool/devel/rrdtool.spec,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- rrdtool.spec 3 May 2007 21:36:42 -0000 1.36
+++ rrdtool.spec 21 May 2007 15:08:15 -0000 1.37
@@ -1,13 +1,14 @@
%define with_python %{?_without_python: 0} %{?!_without_python: 1}
%define with_php %{?_without_php: 0} %{?!_without_php: 1}
%define with_tcl %{?_without_tcl: 0} %{?!_without_tcl: 1}
+%define with_ruby %{?_without_ruby: 0} %{?!_without_ruby: 1}
%define php_rrd_svn 839
%define php_extdir %(php-config --extension-dir 2>/dev/null || echo %{_libdir}/php4)
Summary: Round Robin Database Tool to store and display time-series data
Name: rrdtool
Version: 1.2.23
-Release: 3%{?dist}
+Release: 4%{?dist}
License: GPL
Group: Applications/Databases
URL: http://people.ee.ethz.ch/~oetiker/webtools/%{name}/
@@ -112,6 +113,20 @@
The %{name}-tcl package includes RRDtool bindings for Tcl.
%endif
+%if %{with_ruby}
+%{!?ruby_sitearch: %define ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]')}
+
+%package ruby
+Summary: Ruby RRDtool bindings
+Group: Development/Languages
+BuildRequires: ruby-devel
+Requires: ruby(abi) = 1.8
+Requires: %{name} = %{version}-%{release}
+
+%description ruby
+The %{name}-ruby package includes RRDtool bindings for Ruby.
+%endif
+
%prep
%setup -q
%setup -q -T -D -a 1
@@ -144,6 +159,9 @@
%else
--disable-python \
%endif
+%if %{with_ruby}
+ --enable-ruby \
+%endif
--disable-static \
--with-pic
@@ -277,7 +295,17 @@
%{_libdir}/rrdtool/*.tcl
%endif
+%if %{with_ruby}
+%files ruby
+%defattr(-,root,root,-)
+%doc bindings/ruby/README
+%{ruby_sitearch}/RRD.so
+%endif
+
%changelog
+* Mon May 21 2007 Jarod Wilson <jwilson at redhat.com> 1.2.23-4
+- Build ruby bindings
+
* Thu May 03 2007 Jarod Wilson <jwilson at redhat.com> 1.2.23-3
- Disable php bits on ppc64 for now, they fail to build
More information about the scm-commits
mailing list