This commit is contained in:
parent
e9e4eddbe0
commit
695cec464f
@ -24,15 +24,49 @@
|
|||||||
%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 with_ruby_bindings 1
|
%define %bcond_without ruby_bindings
|
||||||
%else
|
%else
|
||||||
%define with_ruby_bindings 0
|
%define %bcond_with ruby_bindings
|
||||||
%endif
|
%endif
|
||||||
%define with_fuse 1
|
%define with_fuse 1
|
||||||
%define with_hivex 1
|
%define with_hivex 1
|
||||||
@ -106,11 +140,7 @@ 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user