SHA256
1
0
forked from pool/libguestfs

Accepting request 574839 from home:cbosdonnat:branches:Virtualization

- update to version 1.38.0:
  * Virt-builder-repository is a new tool allowing end users to
    create and update virt-builder repositories. (fate#318952)
  * Virt-rescue has been substantially rewritten, implementing job
    control, -m and -i options, escape keys, etc.
  * Virt-builder planner has been improved so that faster and more
    efficient build plans are chosen for complex cases, especially when
    either the tmpdir or output is on networked storage.
  * Virt-customize now sets a random /etc/machine-id for Linux guests, if
    one is not already set.
  * Virt-df now works correctly on filesystems with block sizes smaller
    than 1K.
  * Virt-dib has further compatibility enhancements with diskimage-builder.
  * Virt-sysprep removes "DHCP_HOSTNAME" from ifcfg-* files.
  * Virt-resize now correctly copies GPT partition attributes from the
    source to the destination. (bsc#1074585)
  * Bash tab completion implemented or enhanced for: virt-win-reg,
    virt-v2v-copy-to-local.
  * Both virt-v2v and virt-p2v are now able to pass through the source CPU
    vendor, model and topology.
  * Virt-v2v now supports encrypted guests.
  * Virt-v2v now detects the special Linux Xen PV-only kernels correctly
  * Virt-v2v -o glance now generates the right properties for UEFI guests
  * Virt-v2v -o null now avoids spooling the guest to a temporary file,
    instead it writes to the qemu "null block device".  This makes it
    faster and use almost no disk space.
  * Virt-v2v -i libvirtxml can now open network disks over http or https.
  * Virt-v2v will now give a warning about host passthrough devices
  * Inspection support was rewritten in OCaml and included inside the
    daemon.  This makes inspection considerably faster, more robust and
    more easily extensible in future.
  * The libguestfs API is now thread-safe (although not parallel).  You can
    call APIs on the same handle from multiple threads without needing to
    take a lock.
- Removed patches:
    531316cc-build-improve-and-simplify-distro-detection.patch
    9d25b4e5-python-add-simple-wrappers-for-PyObject-string-funct.patch
    f3f99a09-python-use-right-func-when-PyString_FromStringAndSiz.patch
- Added patches:
    d0e5a819-python-Fix-missing-additional-backslashes.patch

OBS-URL: https://build.opensuse.org/request/show/574839
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=421
This commit is contained in:
Cédric Bosdonnat
2018-02-09 20:35:53 +00:00
committed by Git OBS Bridge
parent c3c36fd757
commit e6dbb72b99
10 changed files with 144 additions and 423 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package libguestfs
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2011 Michal Hrusecky <mhrusecky@novell.com>
#
# All modifications and additions to the file contributed by third parties
@@ -18,7 +18,7 @@
# needsbinariesforbuild
Version: 1.36.5
Version: 1.38.0
Release: 0
%{ocaml_preserve_bytecode}
@@ -33,7 +33,7 @@ Release: 0
%bcond_without ruby_bindings
%bcond_without p2v
%bcond_with p2v
%bcond_without bash_completion
# The following defines are overridden in the individual subpackages
@@ -109,8 +109,12 @@ BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(yajl) >= 2.0.4
# Required to build tools, its independent from bindings
BuildRequires: glib2-devel
BuildRequires: ocaml
BuildRequires: ocaml >= 4.01
BuildRequires: ocaml-findlib
BuildRequires: ocaml-gettext-devel
BuildRequires: ocaml-gettext-stub-devel
BuildRequires: ocaml-hivex-devel
BuildRequires: ocaml-libvirt-devel
#
BuildRequires: ocaml-rpm-macros >= 4.03
@@ -138,11 +142,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Compatibility package for guestfs-tools
License: GPL-2.0
Group: System/Filesystems
# PATCH-FIX-UPSTREAM - python3 fixes
Patch1: 9d25b4e5-python-add-simple-wrappers-for-PyObject-string-funct.patch
Patch2: f3f99a09-python-use-right-func-when-PyString_FromStringAndSiz.patch
# PATCH-FIX-UPSTREAM - add configure --with-distro parameter
Patch3: 531316cc-build-improve-and-simplify-distro-detection.patch
Patch0: d0e5a819-python-Fix-missing-additional-backslashes.patch
Patch100: appliance.patch
Source0: http://download.libguestfs.org/1.36-stable/libguestfs-%{version}.tar.gz
@@ -302,6 +302,7 @@ Group: Development/Languages/Python
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: python
BuildRequires: python-devel
BuildRequires: python-rpm-macros
%define _configure_python --enable-python
#
@@ -316,6 +317,8 @@ Allows Python 2 scripts to directly use libguestfs.
Summary: Python 3 bindings for libguestfs
License: GPL-2.0
Group: Development/Languages/Python
BuildRequires: python3
BuildRequires: python3-devel
%define _configure_python --enable-python
#
Obsoletes: libguestfs-python < %{version}
@@ -526,6 +529,23 @@ virt-v2v is a tool for converting and importing virtual machines to
libvirt-managed KVM. It can import a variety of guest operating systems
from libvirt-managed hosts.
%package -n ocaml-v2v_test_harness
Summary: V2v test harness
#
License: GPL-2.0
Group: Development/Languages/OCaml
%description -n ocaml-v2v_test_harness
Test harness for virt-v2v
%package -n ocaml-v2v_test_harness-devel
Summary: Development files for virt-v2v test harness
License: GPL-2.0
Group: Development/Languages/OCaml
%description -n ocaml-v2v_test_harness-devel
Development files for the virt-v2v test harness.
%if %{with p2v}
%package -n virt-p2v
Summary: Convert a physical machine to run on KVM
@@ -542,9 +562,7 @@ It can import a variety of guest operating systems from libvirt-managed hosts.
%prep
: _ignore_exclusive_arch '%{?_ignore_exclusive_arch}'
%setup -q -a 789653
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch0 -p1
%patch100 -p1
%build
@@ -797,7 +815,6 @@ rm %{buildroot}/%{_datadir}/virt-p2v/p2v.ks.in
%{_includedir}/guestfs.h
%{_includedir}/guestfs-gobject
%{_includedir}/guestfs-gobject.h
%{_datadir}/gtk-doc/html/guestfs
%{_mandir}/man3/*
%files -n guestfsd
@@ -812,7 +829,9 @@ rm %{buildroot}/%{_datadir}/virt-p2v/p2v.ks.in
%{_sbindir}/libguestfs-make-fixed-appliance
%{_bindir}/*
%exclude %{_bindir}/virt-v2v
%if %{with p2v}
%exclude %{_bindir}/virt-p2v-*
%endif
%config(noreplace) /etc/libguestfs-tools.conf
/etc/virt-builder
%dir /etc/xdg/virt-builder
@@ -824,7 +843,9 @@ rm %{buildroot}/%{_datadir}/virt-p2v/p2v.ks.in
%endif
%{_mandir}/man1/*
%exclude %{_mandir}/man1/virt-v2v.*
%if %{with p2v}
%exclude %{_mandir}/man1/virt-p2v*
%endif
%{_mandir}/man5/*
%files -n virt-v2v
@@ -833,6 +854,24 @@ rm %{buildroot}/%{_datadir}/virt-p2v/p2v.ks.in
%{_datadir}/bash-completion/*/virt-v2v
%{_mandir}/man1/virt-v2v.*
%files -n ocaml-v2v_test_harness
%defattr(-,root,root)
%dir %{_libdir}/ocaml
%dir %{_libdir}/ocaml/v2v_test_harness
%{_libdir}/ocaml/v2v_test_harness/META
%{_libdir}/ocaml/v2v_test_harness/*.cmi
%files -n ocaml-v2v_test_harness-devel
%defattr(-,root,root)
%dir %{_libdir}/ocaml
%dir %{_libdir}/ocaml/v2v_test_harness
%{_libdir}/ocaml/v2v_test_harness/*.a
%if %{ocaml_native_compiler}
%{_libdir}/ocaml/v2v_test_harness/*.cmx
%{_libdir}/ocaml/v2v_test_harness/*.cmxa
%endif
%{_libdir}/ocaml/v2v_test_harness/*.mli
%if %{with p2v}
%files -n virt-p2v
%defattr(-,root,root)