Build ruby bindings
This commit is contained in:
parent
818645ae23
commit
8475f31636
30
rrdtool.spec
30
rrdtool.spec
@ -1,13 +1,14 @@
|
|||||||
%define with_python %{?_without_python: 0} %{?!_without_python: 1}
|
%define with_python %{?_without_python: 0} %{?!_without_python: 1}
|
||||||
%define with_php %{?_without_php: 0} %{?!_without_php: 1}
|
%define with_php %{?_without_php: 0} %{?!_without_php: 1}
|
||||||
%define with_tcl %{?_without_tcl: 0} %{?!_without_tcl: 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_rrd_svn 839
|
||||||
%define php_extdir %(php-config --extension-dir 2>/dev/null || echo %{_libdir}/php4)
|
%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
|
Summary: Round Robin Database Tool to store and display time-series data
|
||||||
Name: rrdtool
|
Name: rrdtool
|
||||||
Version: 1.2.23
|
Version: 1.2.23
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: Applications/Databases
|
Group: Applications/Databases
|
||||||
URL: http://people.ee.ethz.ch/~oetiker/webtools/%{name}/
|
URL: http://people.ee.ethz.ch/~oetiker/webtools/%{name}/
|
||||||
@ -112,6 +113,20 @@ Provides: tcl-%{name} = %{version}-%{release}
|
|||||||
The %{name}-tcl package includes RRDtool bindings for Tcl.
|
The %{name}-tcl package includes RRDtool bindings for Tcl.
|
||||||
%endif
|
%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
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%setup -q -T -D -a 1
|
%setup -q -T -D -a 1
|
||||||
@ -143,6 +158,9 @@ The %{name}-tcl package includes RRDtool bindings for Tcl.
|
|||||||
--enable-python \
|
--enable-python \
|
||||||
%else
|
%else
|
||||||
--disable-python \
|
--disable-python \
|
||||||
|
%endif
|
||||||
|
%if %{with_ruby}
|
||||||
|
--enable-ruby \
|
||||||
%endif
|
%endif
|
||||||
--disable-static \
|
--disable-static \
|
||||||
--with-pic
|
--with-pic
|
||||||
@ -277,7 +295,17 @@ find examples/ -type f -exec chmod 0644 {} \;
|
|||||||
%{_libdir}/rrdtool/*.tcl
|
%{_libdir}/rrdtool/*.tcl
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if %{with_ruby}
|
||||||
|
%files ruby
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc bindings/ruby/README
|
||||||
|
%{ruby_sitearch}/RRD.so
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon May 21 2007 Jarod Wilson <jwilson@redhat.com> 1.2.23-4
|
||||||
|
- Build ruby bindings
|
||||||
|
|
||||||
* Thu May 03 2007 Jarod Wilson <jwilson@redhat.com> 1.2.23-3
|
* Thu May 03 2007 Jarod Wilson <jwilson@redhat.com> 1.2.23-3
|
||||||
- Disable php bits on ppc64 for now, they fail to build
|
- Disable php bits on ppc64 for now, they fail to build
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user