From 71cd725388c984efa328bac08140e5dee8a854a8692804da24c34c1f529b2cfe Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 18 Mar 2013 13:19:51 +0000 Subject: [PATCH] whops OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=193 --- libguestfs.spec | 44 +++++++------------------------------------- 1 file changed, 7 insertions(+), 37 deletions(-) diff --git a/libguestfs.spec b/libguestfs.spec index f716b1e..6ee5bbe 100644 --- a/libguestfs.spec +++ b/libguestfs.spec @@ -24,49 +24,15 @@ %undefine _build_create_debug %endif - -# disable certain features for a SLES11 build -%if %suse_version == 1110 -%bcond_with ocaml_bindings -%bcond_with lua_bindings -%bcond_with python_bindings -%bcond_with perl_bindings -%bcond_with ruby_bindings -%bcond_with hivex -%bcond_with zerofree -%else -%bcond_without ocaml_tools -%bcond_without ocaml_bindings -%bcond_without lua_bindings -%bcond_without python_bindings -%bcond_without perl_bindings - - -%define with_ocaml_bindings 0 -%define with_lua_bindings 0 -%define with_perl_bindings 0 -%define with_python_bindings 0 -%define with_ruby_bindings 0 -%define with_hivex 0 -%define with_zerofree 0 - - - -%bcond_without ocaml_tools -%bcond_without ocaml_bindings -%bcond_without lua_bindings -%bcond_without python_bindings -%bcond_without perl_bindings - - +%define with_ocaml_tools 1 %define with_ocaml_bindings 1 %define with_lua_bindings 1 %define with_python_bindings 1 %define with_perl_bindings 1 %if %suse_version > 1210 -%define %bcond_without ruby_bindings +%define with_ruby_bindings 1 %else -%define %bcond_with ruby_bindings +%define with_ruby_bindings 0 %endif %define with_fuse 1 %define with_hivex 1 @@ -140,7 +106,11 @@ BuildRequires: perl-macros BuildRequires: pcre-devel BuildRequires: pkg-config BuildRequires: readline-devel +# %if %{with_ocaml_bindings} +%define with_ocaml_tools 1 +%endif +%if %{with_ocaml_tools} # Required to build tools, its independent from bindings BuildRequires: ocaml BuildRequires: ocaml-findlib