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/*