rpms/rrdtool/FC-6 rrdtool.spec,1.30,1.31
Jarod Wilson (jwilson)
fedora-extras-commits at redhat.com
Fri Jun 1 18:51:14 UTC 2007
Author: jwilson
Update of /cvs/pkgs/rpms/rrdtool/FC-6
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv14102
Modified Files:
rrdtool.spec
Log Message:
Build rrdtool ruby bindings
Index: rrdtool.spec
===================================================================
RCS file: /cvs/pkgs/rpms/rrdtool/FC-6/rrdtool.spec,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- rrdtool.spec 4 May 2007 13:39:10 -0000 1.30
+++ rrdtool.spec 1 Jun 2007 18:50:37 -0000 1.31
@@ -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: 5%{?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, 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,20 @@
%{_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-5
+- BR: ruby so %%ruby_sitearch gets set
+
+* 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 fedora-extras-commits
mailing list