Dirk Mueller 2013-03-18 13:19:51 +00:00 committed by Git OBS Bridge
parent 695cec464f
commit 71cd725388

View File

@ -24,49 +24,15 @@
%undefine _build_create_debug %undefine _build_create_debug
%endif %endif
%define with_ocaml_tools 1
# 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_bindings 1 %define with_ocaml_bindings 1
%define with_lua_bindings 1 %define with_lua_bindings 1
%define with_python_bindings 1 %define with_python_bindings 1
%define with_perl_bindings 1 %define with_perl_bindings 1
%if %suse_version > 1210 %if %suse_version > 1210
%define %bcond_without ruby_bindings %define with_ruby_bindings 1
%else %else
%define %bcond_with ruby_bindings %define with_ruby_bindings 0
%endif %endif
%define with_fuse 1 %define with_fuse 1
%define with_hivex 1 %define with_hivex 1
@ -140,7 +106,11 @@ BuildRequires: perl-macros
BuildRequires: pcre-devel BuildRequires: pcre-devel
BuildRequires: pkg-config BuildRequires: pkg-config
BuildRequires: readline-devel BuildRequires: readline-devel
#
%if %{with_ocaml_bindings} %if %{with_ocaml_bindings}
%define with_ocaml_tools 1
%endif
%if %{with_ocaml_tools}
# Required to build tools, its independent from bindings # Required to build tools, its independent from bindings
BuildRequires: ocaml BuildRequires: ocaml
BuildRequires: ocaml-findlib BuildRequires: ocaml-findlib