forked from pool/libguestfs
whops
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=193
This commit is contained in:
parent
695cec464f
commit
71cd725388
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user