contrib/redhat/collectd.spec: added bison and flex
authorTagir Bakirov <tagir.bakirov@iqser.com>
Thu, 11 Jun 2015 10:26:51 +0000 (12:26 +0200)
committerFlorian Forster <octo@collectd.org>
Thu, 11 Jun 2015 16:32:36 +0000 (17:32 +0100)
Current .spec does not work due to missing bison and flex dependencies.
This fix lets install bison and flex into the build environment as well as
define YACC and YFLAGS environment variables.

contrib/redhat/collectd.spec

index 9d491ff..1e32b27 100644 (file)
@@ -224,7 +224,7 @@ Source:             http://collectd.org/files/%{name}-%{version}.tar.bz2
 License:       GPLv2
 Group:         System Environment/Daemons
 BuildRoot:     %{_tmppath}/%{name}-%{version}-root
-BuildRequires: libgcrypt-devel, kernel-headers, libtool-ltdl-devel, libcap-devel
+BuildRequires: libgcrypt-devel, kernel-headers, libtool-ltdl-devel, libcap-devel, flex, bison
 Vendor:                collectd development team <collectd@verplant.org>
 
 %if 0%{?el7:1}
@@ -1577,6 +1577,9 @@ Collectd utilities
 %define _with_zookeeper --disable-zookeeper
 %endif
 
+export YACC=bison
+export YFLAGS=-y
+
 %configure CFLAGS="%{optflags} -DLT_LAZY_OR_NOW=\"RTLD_LAZY|RTLD_GLOBAL\"" \
        --disable-static \
        --without-included-ltdl \