From f99fc1e4258c2987b1498ff2e36d401f979feb4615ca77733399a94e2b2566b1 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Tue, 13 Nov 2012 22:41:05 +0000 Subject: [PATCH] - disable python when building for SLES11 OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=150 --- libguestfs.changes | 5 +++++ libguestfs.spec | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/libguestfs.changes b/libguestfs.changes index 553b5f7..7addb05 100644 --- a/libguestfs.changes +++ b/libguestfs.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Nov 13 23:40:45 CET 2012 - ohering@suse.de + +- disable python when building for SLES11 + ------------------------------------------------------------------- Tue Nov 13 15:42:54 CET 2012 - ohering@suse.de diff --git a/libguestfs.spec b/libguestfs.spec index 41be796..cd0f998 100644 --- a/libguestfs.spec +++ b/libguestfs.spec @@ -19,7 +19,7 @@ %define with_ocaml_tools 1 %define with_ocaml_bindings 1 -%define with_python 1 +%define with_python_bindings 1 %define with_perl 1 %define with_ruby 1 %define with_fuse 1 @@ -31,6 +31,7 @@ # leave features enabled in OBS main repo %else %define with_ocaml_bindings 0 +%define with_python_bindings 0 %define with_ruby 0 %define with_hivex 0 %define with_zerofree 0 @@ -233,7 +234,7 @@ Obsoletes: libguestfs-perl < %{version} Allows Perl scripts to directly use libguestfs. %endif # -%if %{with_python} +%if %{with_python_bindings} %package -n python-libguestfs Summary: Provides Python support for libguestfs Group: System/Filesystems @@ -629,7 +630,7 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,root) %endif # -%if %{with_python} +%if %{with_python_bindings} %files -n python-libguestfs %defattr(-,root,root) %{_libdir}/python%{pyver}/site-packages/*