[rrd-developers] fix for rrdtool.spec so that it can be used out of the box on RHEL4 and RHEL5

Martin Sperl rrdtool at martin.sperl.org
Wed Dec 10 15:29:16 CET 2008


The spec file for building the rrdtool as an RPM that comes with the 
release is not "friendly" to older versions of RHEL and derivatives.

Here the thing needed to fix this:
Index: rrdtool.spec
--- rrdtool.spec        (revision 1705)
+++ rrdtool.spec        (working copy)
@@ -349,8 +349,7 @@
 %files python
 %doc bindings/python/AUTHORS bindings/python/COPYING bindings/python/README

 %if %{with_php}

Also I am wondering if it may not be sensible to include the php 
bindings code with rrdtool itself.
It is currently a separate tar ball, that is needed for building and 
this breaks building via "rpmbuild -ta rrdtool-1.3.99908121014.tar.gz" 
without the option "--define '_without_php 1'"
(I admit that I can not test building the ruby bindings, so I have to 
include "--define '_without_ruby 1'" anyway. So just an idea...)


More information about the rrd-developers mailing list