2012-08-16 17:55:36 +02:00
|
|
|
#
|
|
|
|
# spec file for package libguestfs
|
|
|
|
#
|
2019-04-09 11:30:12 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-10-02 20:45:11 +02:00
|
|
|
# Copyright (c) 2011 Michal Hrusecky <mhrusecky@novell.com>
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-04-09 11:30:12 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-08-16 17:55:36 +02:00
|
|
|
#
|
2016-05-25 14:44:28 +02:00
|
|
|
# needsbinariesforbuild
|
2011-10-02 20:45:11 +02:00
|
|
|
|
2013-08-19 23:24:42 +02:00
|
|
|
|
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
2018-02-09 21:35:53 +01:00
|
|
|
Version: 1.38.0
|
2013-08-19 23:24:42 +02:00
|
|
|
Release: 0
|
2017-05-30 14:54:35 +02:00
|
|
|
%{ocaml_preserve_bytecode}
|
2013-03-25 15:22:09 +01:00
|
|
|
|
|
|
|
%bcond_without ocaml_bindings
|
|
|
|
%bcond_without lua_bindings
|
|
|
|
%bcond_without python_bindings
|
|
|
|
%bcond_without perl_bindings
|
|
|
|
%bcond_without hivex
|
|
|
|
|
|
|
|
%bcond_without fuse
|
|
|
|
|
|
|
|
%bcond_without ruby_bindings
|
|
|
|
|
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
2018-02-09 21:35:53 +01:00
|
|
|
%bcond_with p2v
|
2016-06-22 21:08:28 +02:00
|
|
|
|
2013-08-20 14:43:18 +02:00
|
|
|
%bcond_without bash_completion
|
2012-09-24 20:22:22 +02:00
|
|
|
# The following defines are overridden in the individual subpackages
|
2012-09-13 20:22:57 +02:00
|
|
|
%define _configure_fuse --disable-fuse
|
2012-11-19 17:25:26 +01:00
|
|
|
%define _configure_lua --disable-lua
|
2012-09-13 20:22:57 +02:00
|
|
|
%define _configure_ocaml --disable-ocaml
|
|
|
|
%define _configure_perl --disable-perl
|
|
|
|
%define _configure_python --disable-python
|
|
|
|
%define _configure_ruby --disable-ruby
|
2012-08-16 17:55:36 +02:00
|
|
|
|
2013-08-05 17:48:49 +02:00
|
|
|
%define udevrulesdir /usr/lib/udev/rules.d
|
2013-01-03 14:02:54 +01:00
|
|
|
#
|
2014-07-07 10:21:47 +02:00
|
|
|
# use 'env LIBGUESTFS_HV=/path/to/kvm libguestfs-test-tool' to verify
|
|
|
|
%define kvm_binary /bin/false
|
|
|
|
%ifarch aarch64
|
|
|
|
%define kvm_binary /usr/bin/qemu-system-aarch64
|
|
|
|
%endif
|
2014-07-08 12:54:55 +02:00
|
|
|
%ifarch ppc64le
|
|
|
|
%define kvm_binary /usr/bin/qemu-system-ppc64
|
|
|
|
%endif
|
2014-07-07 10:21:47 +02:00
|
|
|
%ifarch ppc64
|
|
|
|
%define kvm_binary /usr/bin/qemu-system-ppc64
|
|
|
|
%endif
|
|
|
|
%ifarch s390x
|
|
|
|
%define kvm_binary /usr/bin/qemu-system-s390x
|
|
|
|
%endif
|
|
|
|
%ifarch x86_64
|
|
|
|
%define kvm_binary /usr/bin/qemu-system-x86_64
|
|
|
|
%endif
|
|
|
|
#
|
2012-11-14 17:31:29 +01:00
|
|
|
%define guestfs_docdir %{_defaultdocdir}/%{name}
|
|
|
|
#
|
2011-10-02 20:45:11 +02:00
|
|
|
Name: libguestfs
|
2013-01-03 16:53:24 +01:00
|
|
|
%if "%{?_ignore_exclusive_arch}" == ""
|
2016-06-27 09:28:20 +02:00
|
|
|
ExclusiveArch: x86_64 ppc64 ppc64le s390x aarch64
|
2013-01-02 19:34:59 +01:00
|
|
|
%endif
|
2012-10-29 09:06:34 +01:00
|
|
|
BuildRequires: aaa_base
|
2012-08-29 16:48:35 +02:00
|
|
|
BuildRequires: attr-devel
|
2013-11-26 11:30:37 +01:00
|
|
|
BuildRequires: augeas-devel >= 1.0.0
|
2012-08-16 17:55:36 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2013-08-20 14:43:18 +02:00
|
|
|
%if %{with bash_completion}
|
|
|
|
BuildRequires: bash-completion >= 2.0
|
2016-05-25 14:44:28 +02:00
|
|
|
%if 0%{?suse_version} >= 1330
|
|
|
|
BuildRequires: bash-completion-devel >= 2.0
|
|
|
|
%endif
|
2013-08-20 14:43:18 +02:00
|
|
|
%endif
|
2014-03-28 15:19:16 +01:00
|
|
|
BuildRequires: bison
|
2012-08-29 16:36:23 +02:00
|
|
|
BuildRequires: file-devel
|
2014-03-28 15:19:16 +01:00
|
|
|
BuildRequires: flex
|
2012-08-16 17:55:36 +02:00
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gperf
|
2013-03-25 15:22:09 +01:00
|
|
|
BuildRequires: libacl-devel
|
2012-11-23 20:21:05 +01:00
|
|
|
BuildRequires: libcap-devel
|
2012-08-29 16:17:14 +02:00
|
|
|
BuildRequires: libconfig-devel
|
2012-08-16 17:55:36 +02:00
|
|
|
BuildRequires: libtool
|
2018-02-09 22:05:17 +01:00
|
|
|
BuildRequires: libvirt-devel >= 1.2.20
|
2013-08-19 23:51:11 +02:00
|
|
|
BuildRequires: libxml2-devel
|
2012-08-16 17:55:36 +02:00
|
|
|
BuildRequires: ncurses-devel
|
2018-04-19 11:47:36 +02:00
|
|
|
BuildRequires: pkgconfig(libtirpc)
|
2013-03-25 15:22:09 +01:00
|
|
|
%if %{with perl_bindings}
|
2016-05-25 14:44:28 +02:00
|
|
|
BuildRequires: perl(Module::Build)
|
2013-03-25 15:22:09 +01:00
|
|
|
%endif
|
2016-05-25 14:44:28 +02:00
|
|
|
BuildRequires: db48-utils
|
|
|
|
BuildRequires: dhcp-client
|
2012-08-16 17:55:36 +02:00
|
|
|
BuildRequires: pcre-devel
|
|
|
|
BuildRequires: pkg-config
|
2016-05-25 14:44:28 +02:00
|
|
|
BuildRequires: qemu-tools
|
2012-08-16 17:55:36 +02:00
|
|
|
BuildRequires: readline-devel
|
2016-05-25 14:44:28 +02:00
|
|
|
BuildRequires: supermin >= 5.1.6
|
2017-05-30 14:54:35 +02:00
|
|
|
BuildRequires: pkgconfig(dbus-1)
|
|
|
|
BuildRequires: pkgconfig(yajl) >= 2.0.4
|
2012-11-13 15:45:14 +01:00
|
|
|
# Required to build tools, its independent from bindings
|
2016-05-25 14:44:28 +02:00
|
|
|
BuildRequires: glib2-devel
|
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
2018-02-09 21:35:53 +01:00
|
|
|
BuildRequires: ocaml >= 4.01
|
2012-11-13 15:45:14 +01:00
|
|
|
BuildRequires: ocaml-findlib
|
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
2018-02-09 21:35:53 +01:00
|
|
|
BuildRequires: ocaml-gettext-devel
|
|
|
|
BuildRequires: ocaml-gettext-stub-devel
|
|
|
|
BuildRequires: ocaml-hivex-devel
|
|
|
|
BuildRequires: ocaml-libvirt-devel
|
2016-05-25 14:44:28 +02:00
|
|
|
|
|
|
|
#
|
2017-05-30 14:54:35 +02:00
|
|
|
BuildRequires: ocaml-rpm-macros >= 4.03
|
2016-05-25 14:44:28 +02:00
|
|
|
%if %{with ocaml_bindings}
|
2012-11-13 16:26:04 +01:00
|
|
|
%define _configure_ocaml --enable-ocaml
|
2012-11-13 15:45:14 +01:00
|
|
|
%endif
|
|
|
|
#
|
2013-03-25 15:22:09 +01:00
|
|
|
%if %{with fuse}
|
2012-08-29 14:41:50 +02:00
|
|
|
BuildRequires: fuse-devel
|
|
|
|
%define _configure_fuse --enable-fuse
|
2012-08-15 20:06:38 +02:00
|
|
|
%endif
|
2012-11-13 15:45:14 +01:00
|
|
|
#
|
2013-03-25 15:22:09 +01:00
|
|
|
%if %{with hivex}
|
2014-10-14 10:35:35 +02:00
|
|
|
BuildRequires: glibc-locale
|
2016-05-25 14:44:28 +02:00
|
|
|
BuildRequires: hivex
|
2012-09-24 15:08:21 +02:00
|
|
|
BuildRequires: hivex-devel
|
|
|
|
%endif
|
2012-08-15 20:06:38 +02:00
|
|
|
#
|
2016-06-22 21:08:28 +02:00
|
|
|
%if %{with p2v}
|
2016-05-25 14:44:28 +02:00
|
|
|
BuildRequires: gtk2-devel
|
|
|
|
%endif
|
|
|
|
#
|
2011-10-02 20:45:11 +02:00
|
|
|
Url: http://libguestfs.org/
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-09-13 20:07:18 +02:00
|
|
|
Summary: Compatibility package for guestfs-tools
|
2018-02-28 13:33:26 +01:00
|
|
|
# Upstream patches
|
2019-04-09 11:30:12 +02:00
|
|
|
License: GPL-2.0-only
|
2011-10-02 20:45:11 +02:00
|
|
|
Group: System/Filesystems
|
2019-04-09 11:30:12 +02:00
|
|
|
Patch0: d0e5a819-python-Fix-missing-additional-backslashes.patch
|
2018-02-28 13:33:26 +01:00
|
|
|
Patch1: 0a55098f-builder-repository-fix-compute_short_id-for-sles-X.0.patch
|
2019-04-09 11:30:12 +02:00
|
|
|
Patch2: fd43730e-error-with-uninstall-option-on-SUSE.patch
|
2019-04-17 22:59:11 +02:00
|
|
|
Patch3: 70407cd622-inspection-Parse-os-release-opensuse-leap-as-opensus.patch
|
|
|
|
Patch4: 28bd06227b-inspect-handle-os-release-opensuse-tumbleweed-as-ope.patch
|
2018-02-28 13:33:26 +01:00
|
|
|
# Pending upstram review
|
|
|
|
Patch50: 0001-Introduce-a-wrapper-around-xmlParseURI.patch
|
|
|
|
Patch51: 0002-common-extract-UTF-8-conversion-function.patch
|
|
|
|
Patch52: 0003-inspector-rpm-summary-and-description-may-not-be-utf.patch
|
|
|
|
# Our patches
|
2016-07-21 08:26:49 +02:00
|
|
|
Patch100: appliance.patch
|
2016-05-25 14:44:28 +02:00
|
|
|
|
2018-02-09 22:05:17 +01:00
|
|
|
Source0: http://download.libguestfs.org/1.38-stable/libguestfs-%{version}.tar.gz
|
2015-07-31 09:45:51 +02:00
|
|
|
Source1: libguestfs.rpmlintrc
|
2016-07-21 08:26:49 +02:00
|
|
|
Source100: mount-rootfs-and-chroot.sh
|
2017-09-21 11:01:23 +02:00
|
|
|
Source101: README
|
2013-06-04 14:02:49 +02:00
|
|
|
Source789653: Pod-Simple-3.23.tar.xz
|
2014-01-22 11:15:09 +01:00
|
|
|
#
|
|
|
|
Source10001: libguestfs.test.simple.run-libugestfs-test-tool.sh
|
|
|
|
Source10002: libguestfs.test.simple.create-opensuse-guest.sh
|
2014-01-22 17:49:58 +01:00
|
|
|
Source10003: libguestfs.test.simple.create-opensuse-guest-crypt-on-lvm.sh
|
2014-02-04 22:58:08 +01:00
|
|
|
Source10004: libguestfs.test.simple.create-sles12-guest.sh
|
|
|
|
Source10005: libguestfs.test.simple.create-sles12-guest-crypt-on-lvm.sh
|
|
|
|
|
2014-01-22 11:15:09 +01:00
|
|
|
#
|
2012-09-13 20:07:18 +02:00
|
|
|
Requires: guestfs-tools
|
2017-07-31 10:31:57 +02:00
|
|
|
Requires: virt-v2v = %{version}
|
2011-10-02 20:45:11 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
libguestfs is a set of tools for accessing and modifying virtual machine (VM)
|
|
|
|
disk images. You can use this for viewing and editing files inside guests,
|
|
|
|
scripting changes to VMs, monitoring disk used/free statistics, P2V, V2V,
|
|
|
|
performing partial backups, cloning VMs, and much else besides.
|
|
|
|
|
2012-09-13 20:07:18 +02:00
|
|
|
%package -n guestfs-tools
|
|
|
|
Summary: Tools for accessing and modifying virtual machine disk images
|
2019-04-09 11:30:12 +02:00
|
|
|
License: GPL-2.0-only
|
2012-09-13 20:07:18 +02:00
|
|
|
Group: System/Filesystems
|
|
|
|
Provides: %{name} = %{version}
|
|
|
|
Obsoletes: %{name} < %{version}
|
2016-07-04 14:20:29 +02:00
|
|
|
Requires: libguestfs0 = %{version}
|
2017-12-04 18:20:49 +01:00
|
|
|
Requires: python3-evtx
|
2013-11-26 11:30:37 +01:00
|
|
|
%if %{with bash_completion}
|
|
|
|
Recommends: bash-completion >= 2.0
|
|
|
|
%endif
|
2013-03-25 15:22:09 +01:00
|
|
|
%if %{with perl_bindings}
|
2012-09-13 20:12:48 +02:00
|
|
|
Requires: perl(Data::Dumper)
|
|
|
|
Requires: perl(File::Basename)
|
|
|
|
Requires: perl(File::Temp)
|
|
|
|
Requires: perl(Getopt::Long)
|
|
|
|
Requires: perl(Locale::TextDomain)
|
|
|
|
Requires: perl(Pod::Usage)
|
|
|
|
Requires: perl(String::ShellQuote)
|
|
|
|
Requires: perl(Sys::Guestfs)
|
2013-03-25 15:22:09 +01:00
|
|
|
%{perl_requires}
|
|
|
|
%if %{with hivex}
|
2012-09-13 20:12:48 +02:00
|
|
|
Requires: perl(Win::Hivex)
|
|
|
|
Requires: perl(Win::Hivex::Regedit)
|
2012-09-24 15:30:42 +02:00
|
|
|
%endif
|
2012-11-29 20:17:06 +01:00
|
|
|
%endif
|
2016-07-28 12:00:45 +02:00
|
|
|
|
|
|
|
%if %{with fuse}
|
|
|
|
Requires: fuse
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# For virt-builder
|
|
|
|
Requires: curl
|
|
|
|
Requires: gpg2
|
|
|
|
Requires: xz
|
2012-12-11 17:56:12 +01:00
|
|
|
Conflicts: libguestfs0 < %{version}
|
2012-09-13 20:07:18 +02:00
|
|
|
|
|
|
|
%description -n guestfs-tools
|
|
|
|
libguestfs is a set of tools for accessing and modifying virtual machine (VM)
|
|
|
|
disk images. You can use this for viewing and editing files inside guests,
|
|
|
|
scripting changes to VMs, monitoring disk used/free statistics, P2V, V2V,
|
|
|
|
performing partial backups, cloning VMs, and much else besides.
|
|
|
|
|
|
|
|
libguestfs can access nearly any type of filesystem including: all known types
|
|
|
|
of Linux filesystem (ext2/3/4, XFS, btrfs etc), any Windows filesystem (VFAT
|
|
|
|
and NTFS), any Mac OS X and BSD filesystems, LVM2 volume management, MBR and
|
|
|
|
GPT disk partitions, raw disks, qcow2, VirtualBox VDI, VMWare VMDK, CD and DVD
|
|
|
|
ISOs, SD cards, and dozens more. libguestfs doesn't need root permissions.
|
|
|
|
|
|
|
|
All this functionality is available through a convenient shell called
|
|
|
|
guestfish, or use virt-rescue to get a rescue shell for fixing unbootable
|
|
|
|
virtual machines.
|
|
|
|
|
|
|
|
%package -n guestfsd
|
2012-11-14 17:36:27 +01:00
|
|
|
Summary: Daemon for the libguestfs appliance
|
2019-04-09 11:30:12 +02:00
|
|
|
License: GPL-2.0-only
|
2012-09-01 20:53:34 +02:00
|
|
|
Group: System/Filesystems
|
2013-11-26 11:30:37 +01:00
|
|
|
Conflicts: libaugeas0 < 1.0.0
|
2012-09-01 20:53:34 +02:00
|
|
|
|
2012-09-13 20:07:18 +02:00
|
|
|
%description -n guestfsd
|
|
|
|
guestfsd runs within the libguestfs appliance. It receives commands from the host
|
2012-09-01 20:53:34 +02:00
|
|
|
and performs the requested action by calling the helper binaries.
|
|
|
|
This package is only required for building the appliance.
|
|
|
|
|
2012-09-01 20:26:42 +02:00
|
|
|
#
|
2013-03-25 15:22:09 +01:00
|
|
|
%if %{with ocaml_bindings}
|
2012-09-01 20:26:42 +02:00
|
|
|
%package -n ocaml-libguestfs
|
2017-09-25 11:23:26 +02:00
|
|
|
Summary: OCaml bindings for libguestfs
|
2017-07-16 11:23:54 +02:00
|
|
|
#
|
2019-04-09 11:30:12 +02:00
|
|
|
License: GPL-2.0-only
|
2017-10-13 08:56:20 +02:00
|
|
|
Group: Development/Languages/OCaml
|
2012-09-01 20:26:42 +02:00
|
|
|
|
|
|
|
%description -n ocaml-libguestfs
|
2012-09-03 09:47:14 +02:00
|
|
|
Allows OCaml scripts to directly use libguestfs.
|
2012-09-01 20:26:42 +02:00
|
|
|
|
|
|
|
%package -n ocaml-libguestfs-devel
|
2017-09-25 11:23:26 +02:00
|
|
|
Summary: Development files for libguesfs OCaml bindings
|
2019-04-09 11:30:12 +02:00
|
|
|
License: GPL-2.0-only
|
2017-10-13 08:56:20 +02:00
|
|
|
Group: Development/Languages/OCaml
|
2012-09-01 20:26:42 +02:00
|
|
|
|
|
|
|
%description -n ocaml-libguestfs-devel
|
2012-09-03 09:47:14 +02:00
|
|
|
Allows OCaml scripts to directly use libguestfs.
|
2012-09-01 20:26:42 +02:00
|
|
|
%endif
|
2012-08-15 20:06:38 +02:00
|
|
|
#
|
2013-03-25 15:22:09 +01:00
|
|
|
%if %{with perl_bindings}
|
2012-09-01 14:15:10 +02:00
|
|
|
%package -n perl-Sys-Guestfs
|
2017-09-25 11:23:26 +02:00
|
|
|
Summary: Perl bindings for libguestfs
|
2019-04-09 11:30:12 +02:00
|
|
|
License: GPL-2.0-only
|
2017-09-25 11:23:26 +02:00
|
|
|
Group: Development/Languages/Perl
|
2012-09-13 20:22:57 +02:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl(Data::Dumper)
|
|
|
|
BuildRequires: perl(Getopt::Long)
|
|
|
|
BuildRequires: perl(Locale::TextDomain)
|
|
|
|
BuildRequires: perl(Pod::Usage)
|
|
|
|
BuildRequires: perl(String::ShellQuote)
|
|
|
|
BuildRequires: perl(Sys::Virt)
|
2013-03-25 15:22:09 +01:00
|
|
|
%if %{with hivex}
|
2012-09-13 20:22:57 +02:00
|
|
|
BuildRequires: perl(Win::Hivex)
|
|
|
|
BuildRequires: perl(Win::Hivex::Regedit)
|
2012-09-24 15:30:42 +02:00
|
|
|
%endif
|
2012-09-13 20:22:57 +02:00
|
|
|
%define _configure_perl --enable-perl
|
|
|
|
#
|
2012-09-01 21:01:16 +02:00
|
|
|
Provides: libguestfs-perl = %{version}
|
|
|
|
Obsoletes: libguestfs-perl < %{version}
|
2012-11-29 20:17:06 +01:00
|
|
|
Requires: perl(File::Temp)
|
|
|
|
Requires: perl(Locale::TextDomain)
|
2012-09-13 20:11:21 +02:00
|
|
|
%perl_requires
|
2012-08-15 20:06:38 +02:00
|
|
|
|
2012-09-01 14:15:10 +02:00
|
|
|
%description -n perl-Sys-Guestfs
|
2012-09-03 09:47:14 +02:00
|
|
|
Allows Perl scripts to directly use libguestfs.
|
2012-08-15 20:06:38 +02:00
|
|
|
%endif
|
|
|
|
#
|
2013-03-25 15:22:09 +01:00
|
|
|
%if %{with lua_bindings}
|
2012-11-19 17:25:26 +01:00
|
|
|
%package -n lua-libguestfs
|
2017-09-25 11:23:26 +02:00
|
|
|
Summary: Lua bindings for libguestfs
|
2019-04-09 11:30:12 +02:00
|
|
|
License: GPL-2.0-only
|
2017-09-25 11:23:26 +02:00
|
|
|
Group: Development/Languages/Lua
|
2012-11-19 17:25:26 +01:00
|
|
|
BuildRequires: lua-devel
|
|
|
|
%define _configure_lua --enable-lua
|
|
|
|
#
|
|
|
|
|
|
|
|
%description -n lua-libguestfs
|
|
|
|
Allows lua scripts to directly use libguestfs.
|
|
|
|
%endif
|
|
|
|
#
|
2017-09-01 16:44:47 +02:00
|
|
|
|
2013-03-25 15:22:09 +01:00
|
|
|
%if %{with python_bindings}
|
2017-08-02 18:04:59 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
%package -n python2-libguestfs
|
2017-09-25 11:23:26 +02:00
|
|
|
Summary: Python 2 bindings for libguestfs
|
2019-04-09 11:30:12 +02:00
|
|
|
License: GPL-2.0-only
|
2017-09-25 11:23:26 +02:00
|
|
|
Group: Development/Languages/Python
|
2017-08-02 18:04:59 +02:00
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2012-09-13 20:22:57 +02:00
|
|
|
BuildRequires: python
|
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
2018-02-09 21:35:53 +01:00
|
|
|
BuildRequires: python-devel
|
2017-08-02 18:04:59 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
2012-09-13 20:22:57 +02:00
|
|
|
%define _configure_python --enable-python
|
|
|
|
#
|
2012-09-01 21:01:16 +02:00
|
|
|
Obsoletes: libguestfs-python < %{version}
|
2017-08-02 18:04:59 +02:00
|
|
|
Obsoletes: python-libguestfs < %{version}
|
|
|
|
Provides: python-libguestfs = %{version}
|
2012-08-15 20:06:38 +02:00
|
|
|
|
2017-08-02 18:04:59 +02:00
|
|
|
%description -n python2-libguestfs
|
|
|
|
Allows Python 2 scripts to directly use libguestfs.
|
|
|
|
|
|
|
|
%package -n python3-libguestfs
|
2017-09-25 11:23:26 +02:00
|
|
|
Summary: Python 3 bindings for libguestfs
|
2019-04-09 11:30:12 +02:00
|
|
|
License: GPL-2.0-only
|
2017-09-25 11:23:26 +02:00
|
|
|
Group: Development/Languages/Python
|
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
2018-02-09 21:35:53 +01:00
|
|
|
BuildRequires: python3
|
|
|
|
BuildRequires: python3-devel
|
2017-08-02 18:04:59 +02:00
|
|
|
%define _configure_python --enable-python
|
|
|
|
#
|
|
|
|
Obsoletes: libguestfs-python < %{version}
|
|
|
|
Obsoletes: python-libguestfs < %{version}
|
|
|
|
Provides: python-libguestfs = %{version}
|
|
|
|
|
|
|
|
%description -n python3-libguestfs
|
|
|
|
Allows Python 3 scripts to directly use libguestfs.
|
2012-08-15 20:06:38 +02:00
|
|
|
%endif
|
|
|
|
#
|
2013-03-25 15:22:09 +01:00
|
|
|
%if %{with ruby_bindings}
|
2011-10-02 20:45:11 +02:00
|
|
|
%package -n rubygem-libguestfs
|
|
|
|
Summary: Ruby bindings for libguestfs
|
2019-04-09 11:30:12 +02:00
|
|
|
License: GPL-2.0-only
|
2017-09-25 11:23:26 +02:00
|
|
|
Group: Development/Languages/Ruby
|
2012-09-13 20:22:57 +02:00
|
|
|
BuildRequires: ruby
|
|
|
|
BuildRequires: ruby-devel
|
2019-04-09 11:30:12 +02:00
|
|
|
BuildRequires: rubygem(rake)
|
2012-09-13 20:22:57 +02:00
|
|
|
%define _configure_ruby --enable-ruby
|
|
|
|
#
|
2011-10-02 20:45:11 +02:00
|
|
|
|
|
|
|
%description -n rubygem-libguestfs
|
2012-09-03 09:47:14 +02:00
|
|
|
Allows Ruby scripts to directly use libguestfs.
|
2012-08-15 20:06:38 +02:00
|
|
|
%endif
|
2011-10-02 20:45:11 +02:00
|
|
|
|
2014-01-22 11:15:09 +01:00
|
|
|
%package test
|
|
|
|
Summary: Testcases for libguestfs
|
2019-04-09 11:30:12 +02:00
|
|
|
License: GPL-2.0-only
|
2017-09-25 11:23:26 +02:00
|
|
|
Group: Development/Tools/Other
|
2014-01-22 18:33:16 +01:00
|
|
|
Requires: %{name}
|
2014-01-22 11:15:09 +01:00
|
|
|
|
|
|
|
%description test
|
|
|
|
This package contains testcases to verify libguestfs functionality.
|
|
|
|
|
2012-09-13 20:07:18 +02:00
|
|
|
%package -n guestfs-data
|
2012-09-19 17:53:43 +02:00
|
|
|
BuildRequires: augeas-lenses
|
2014-07-09 10:04:24 +02:00
|
|
|
BuildRequires: bc
|
2012-09-03 20:08:08 +02:00
|
|
|
BuildRequires: btrfsprogs
|
|
|
|
BuildRequires: bzip2
|
|
|
|
BuildRequires: coreutils
|
|
|
|
BuildRequires: cpio
|
|
|
|
BuildRequires: cryptsetup
|
|
|
|
BuildRequires: diffutils
|
2012-09-03 20:10:43 +02:00
|
|
|
BuildRequires: dosfstools
|
2012-09-03 20:08:08 +02:00
|
|
|
BuildRequires: e2fsprogs
|
|
|
|
BuildRequires: file
|
|
|
|
BuildRequires: findutils
|
|
|
|
BuildRequires: gawk
|
2018-02-23 14:14:55 +01:00
|
|
|
%if 0%{?suse_version} >= 1500
|
|
|
|
BuildRequires: mkisofs
|
|
|
|
%else
|
|
|
|
BuildRequires: cdrkit-cdrtools-compat
|
2012-09-03 20:08:08 +02:00
|
|
|
BuildRequires: genisoimage
|
2018-02-23 14:14:55 +01:00
|
|
|
%endif
|
2012-09-03 20:08:08 +02:00
|
|
|
BuildRequires: glibc
|
2014-07-04 09:52:15 +02:00
|
|
|
BuildRequires: gptfdisk
|
2017-05-30 14:54:35 +02:00
|
|
|
BuildRequires: grep
|
2012-09-03 20:08:08 +02:00
|
|
|
BuildRequires: gzip
|
2016-11-30 18:07:51 +01:00
|
|
|
BuildRequires: initviocons
|
2012-09-03 20:08:08 +02:00
|
|
|
BuildRequires: iproute2
|
2012-09-13 07:10:10 +02:00
|
|
|
BuildRequires: jfsutils
|
2012-09-03 20:08:08 +02:00
|
|
|
BuildRequires: lvm2
|
|
|
|
BuildRequires: mdadm
|
|
|
|
BuildRequires: module-init-tools
|
2016-05-25 14:44:28 +02:00
|
|
|
BuildRequires: ncurses-utils
|
2014-01-20 17:32:24 +01:00
|
|
|
BuildRequires: nfs-client
|
2012-09-03 20:08:08 +02:00
|
|
|
BuildRequires: ntfs-3g
|
|
|
|
BuildRequires: ntfsprogs
|
2016-05-25 14:44:28 +02:00
|
|
|
BuildRequires: pam-config
|
2012-09-03 20:08:08 +02:00
|
|
|
BuildRequires: parted
|
2016-05-25 14:44:28 +02:00
|
|
|
BuildRequires: pciutils
|
|
|
|
BuildRequires: pciutils-ids
|
2014-07-04 09:54:14 +02:00
|
|
|
BuildRequires: psmisc
|
2012-09-13 07:10:10 +02:00
|
|
|
BuildRequires: reiserfs
|
2012-09-03 20:08:08 +02:00
|
|
|
BuildRequires: rsync
|
2016-05-25 14:44:28 +02:00
|
|
|
BuildRequires: sg3_utils
|
2012-09-03 20:08:08 +02:00
|
|
|
BuildRequires: strace
|
2014-07-04 09:52:15 +02:00
|
|
|
%ifarch %ix86 x86_64
|
|
|
|
BuildRequires: syslinux
|
|
|
|
%endif
|
2019-04-09 11:30:12 +02:00
|
|
|
BuildRequires: ldmtool
|
2019-06-26 09:40:54 +02:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
2016-05-25 14:44:28 +02:00
|
|
|
BuildRequires: systemd-sysvinit
|
2012-09-03 20:08:08 +02:00
|
|
|
BuildRequires: tar
|
2012-09-07 17:03:24 +02:00
|
|
|
BuildRequires: terminfo-base
|
2016-05-25 14:44:28 +02:00
|
|
|
BuildRequires: tunctl
|
2012-09-03 20:08:08 +02:00
|
|
|
BuildRequires: udev
|
|
|
|
BuildRequires: util-linux
|
2016-05-25 14:44:28 +02:00
|
|
|
BuildRequires: util-linux-lang
|
2012-09-03 20:08:08 +02:00
|
|
|
BuildRequires: xfsprogs
|
|
|
|
BuildRequires: xz
|
2016-07-28 12:00:45 +02:00
|
|
|
|
2016-08-05 16:30:45 +02:00
|
|
|
# Needed by guestfsd which is burried in the appliance
|
|
|
|
#
|
|
|
|
# The problem with this design is that rpm can't find the
|
|
|
|
# library dependencies from the guestfsd hidden in the
|
|
|
|
# daemon.tar.gz tarball.Supermin will compute an appliance
|
|
|
|
# at runtime based on the packages it will find on the host.
|
|
|
|
# Thus if there is no libaugeas, libhivex, etc on the host,
|
|
|
|
# the appliance will fail to start the guestfsd.
|
2017-07-17 09:05:45 +02:00
|
|
|
Requires: augeas
|
|
|
|
Requires: augeas-lenses
|
2016-08-05 16:30:45 +02:00
|
|
|
Requires: libaugeas0
|
|
|
|
Requires: libcap2
|
|
|
|
Requires: libhivex0
|
|
|
|
Requires: libpcre1
|
|
|
|
|
2016-08-30 07:31:37 +02:00
|
|
|
# For core disk features
|
|
|
|
Requires: qemu-tools
|
|
|
|
|
|
|
|
# Optional packages that could be picked up by supermin
|
|
|
|
Recommends: btrfsprogs
|
|
|
|
Recommends: dosfstools
|
|
|
|
Recommends: e2fsprogs
|
|
|
|
Recommends: cryptsetup
|
|
|
|
Recommends: gptfdisk
|
|
|
|
Recommends: jfsutils
|
|
|
|
Recommends: reiserfs
|
|
|
|
Recommends: xfsprogs
|
|
|
|
Recommends: mdadm
|
|
|
|
Recommends: parted
|
|
|
|
Recommends: zerofree
|
2018-02-23 14:14:55 +01:00
|
|
|
%if 0%{?suse_version} >= 1500
|
|
|
|
Recommends: mkisofs
|
|
|
|
%else
|
2016-08-30 07:31:37 +02:00
|
|
|
Recommends: genisoimage
|
2018-02-23 14:14:55 +01:00
|
|
|
%endif
|
2017-04-13 10:55:04 +02:00
|
|
|
Recommends: ldmtool
|
2017-11-30 11:54:44 +01:00
|
|
|
%if ! 0%{?is_opensuse}
|
2017-09-21 11:01:23 +02:00
|
|
|
Recommends: guestfs-winsupport
|
|
|
|
%endif
|
2016-08-30 07:31:37 +02:00
|
|
|
|
2011-10-02 20:45:11 +02:00
|
|
|
Summary: Virtual machine needed for libguestfs
|
2019-04-09 11:30:12 +02:00
|
|
|
License: GPL-2.0-only
|
2012-08-16 15:03:20 +02:00
|
|
|
Group: System/Filesystems
|
2012-09-13 22:33:27 +02:00
|
|
|
Provides: libguestfs-data = %{version}
|
|
|
|
Obsoletes: libguestfs-data < %{version}
|
2011-10-02 20:45:11 +02:00
|
|
|
|
2012-09-13 20:07:18 +02:00
|
|
|
%description -n guestfs-data
|
2012-11-14 17:36:27 +01:00
|
|
|
libguestfs needs for it's run a virtual machine image.
|
|
|
|
This package provides such an image, an initrd and a kernel.
|
2011-10-02 20:45:11 +02:00
|
|
|
|
2017-11-30 11:54:44 +01:00
|
|
|
%if ! 0%{?is_opensuse}
|
2017-09-21 11:01:23 +02:00
|
|
|
%package -n guestfs-winsupport
|
2017-09-25 11:23:26 +02:00
|
|
|
Summary: Windows guest support in libguestfs
|
2019-04-09 11:30:12 +02:00
|
|
|
License: GPL-2.0-or-later
|
2017-09-21 11:01:23 +02:00
|
|
|
Group: System/Filesystems
|
|
|
|
Requires: libguestfs >= 1.32
|
|
|
|
BuildRequires: ntfs-3g
|
|
|
|
BuildRequires: ntfsprogs
|
|
|
|
BuildRequires: rsync
|
|
|
|
|
|
|
|
%description -n guestfs-winsupport
|
|
|
|
Provides the needed pieces for libguestfs to handle Windows guests.
|
|
|
|
|
|
|
|
%endif
|
2011-10-02 20:45:11 +02:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for libguestfs
|
2019-04-09 11:30:12 +02:00
|
|
|
License: GPL-2.0-only
|
2017-09-25 11:23:26 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-09-13 20:07:18 +02:00
|
|
|
Requires: libguestfs0 = %{version}
|
2011-10-02 20:45:11 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development files for libguestfs.
|
|
|
|
|
|
|
|
libguestfs is a set of tools for accessing and modifying virtual machine (VM)
|
|
|
|
disk images. You can use this for viewing and editing files inside guests,
|
|
|
|
scripting changes to VMs, monitoring disk used/free statistics, P2V, V2V,
|
|
|
|
performing partial backups, cloning VMs, and much else besides.
|
|
|
|
|
|
|
|
%package -n libguestfs0
|
2013-03-22 19:51:52 +01:00
|
|
|
Summary: Runtime library of libguestfs
|
2019-04-09 11:30:12 +02:00
|
|
|
License: LGPL-2.1-only
|
2017-09-25 11:23:26 +02:00
|
|
|
Group: System/Libraries
|
2016-05-25 14:44:28 +02:00
|
|
|
Requires: %{kvm_binary}
|
2017-11-22 17:23:43 +01:00
|
|
|
Requires: db48-utils
|
2017-10-25 15:25:49 +02:00
|
|
|
Requires: guestfs-data >= %{version}
|
2016-05-25 14:44:28 +02:00
|
|
|
Requires: qemu >= 2.0
|
2016-07-28 12:00:45 +02:00
|
|
|
Requires: qemu-tools
|
2016-05-25 14:44:28 +02:00
|
|
|
Requires: supermin >= 5.1.6
|
2011-10-02 20:45:11 +02:00
|
|
|
|
|
|
|
%description -n libguestfs0
|
|
|
|
Library for libguestfs.
|
|
|
|
|
|
|
|
libguestfs is a set of tools for accessing and modifying virtual machine (VM)
|
|
|
|
disk images. You can use this for viewing and editing files inside guests,
|
|
|
|
scripting changes to VMs, monitoring disk used/free statistics, P2V, V2V,
|
|
|
|
performing partial backups, cloning VMs, and much else besides.
|
|
|
|
|
|
|
|
libguestfs can access nearly any type of filesystem including: all known types
|
|
|
|
of Linux filesystem (ext2/3/4, XFS, btrfs etc), any Windows filesystem (VFAT
|
|
|
|
and NTFS), any Mac OS X and BSD filesystems, LVM2 volume management, MBR and
|
|
|
|
GPT disk partitions, raw disks, qcow2, VirtualBox VDI, VMWare VMDK, CD and DVD
|
|
|
|
ISOs, SD cards, and dozens more. libguestfs doesn't need root permissions.
|
|
|
|
|
|
|
|
All this functionality is available through a convenient shell called
|
|
|
|
guestfish, or use virt-rescue to get a rescue shell for fixing unbootable
|
|
|
|
virtual machines.
|
|
|
|
|
|
|
|
|
2016-05-25 14:44:28 +02:00
|
|
|
%package -n virt-v2v
|
|
|
|
Summary: Convert a virtual machine to run on KVM
|
2019-04-09 11:30:12 +02:00
|
|
|
License: GPL-2.0-only
|
2016-05-25 14:44:28 +02:00
|
|
|
Group: System/Management
|
|
|
|
Requires: libguestfs0 = %{version}
|
|
|
|
Requires: qemu-block-ssh
|
2017-07-31 10:31:57 +02:00
|
|
|
# Conflicts with the old perl version
|
|
|
|
Conflicts: virt-v2v <= 0.9.1
|
2016-05-25 14:44:28 +02:00
|
|
|
|
|
|
|
%description -n virt-v2v
|
|
|
|
virt-v2v is a tool for converting and importing virtual machines to
|
2019-04-09 11:30:12 +02:00
|
|
|
libvirt-managed KVM. It can import a variety of guest operating systems
|
2016-07-04 14:20:29 +02:00
|
|
|
from libvirt-managed hosts.
|
2011-10-02 20:45:11 +02:00
|
|
|
|
2016-06-22 21:08:28 +02:00
|
|
|
%if %{with p2v}
|
|
|
|
%package -n virt-p2v
|
2016-07-13 18:00:23 +02:00
|
|
|
Summary: Convert a physical machine to run on KVM
|
2019-04-09 11:30:12 +02:00
|
|
|
License: GPL-2.0-only
|
2016-06-22 21:08:28 +02:00
|
|
|
Group: System/Management
|
2016-07-28 12:00:45 +02:00
|
|
|
Requires: gawk
|
2016-06-22 21:08:28 +02:00
|
|
|
Requires: virt-v2v = %{version}
|
|
|
|
|
|
|
|
%description -n virt-p2v
|
2016-07-04 14:20:29 +02:00
|
|
|
virt-p2v is a tool for converting physical machines into libvirt-managed KVM machines.
|
|
|
|
It can import a variety of guest operating systems from libvirt-managed hosts.
|
2016-06-22 21:08:28 +02:00
|
|
|
%endif
|
|
|
|
|
2011-10-02 20:45:11 +02:00
|
|
|
%prep
|
2013-01-03 14:17:53 +01:00
|
|
|
: _ignore_exclusive_arch '%{?_ignore_exclusive_arch}'
|
2016-05-25 14:44:28 +02:00
|
|
|
%setup -q -a 789653
|
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
2018-02-09 21:35:53 +01:00
|
|
|
%patch0 -p1
|
2018-02-28 13:33:26 +01:00
|
|
|
%patch1 -p1
|
2019-04-09 11:30:12 +02:00
|
|
|
%patch2 -p1
|
2019-04-17 22:59:11 +02:00
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
2018-02-28 13:33:26 +01:00
|
|
|
%patch50 -p1
|
|
|
|
%patch51 -p1
|
|
|
|
%patch52 -p1
|
2016-07-21 08:26:49 +02:00
|
|
|
%patch100 -p1
|
2011-10-02 20:45:11 +02:00
|
|
|
|
|
|
|
%build
|
2016-05-25 14:44:28 +02:00
|
|
|
bison --version
|
2012-11-23 17:48:22 +01:00
|
|
|
# [Bug 789653] sles11 perl obsoletes perl-Pod-Simple unconditionally
|
|
|
|
export PERLLIB=`echo $PWD/Pod-Simple-*/lib`
|
2012-08-16 17:44:26 +02:00
|
|
|
# disable qemu test.
|
|
|
|
# If the package is built within kvm the configure test will fail because it starts kvm within kvm
|
2012-08-30 10:27:21 +02:00
|
|
|
# With QEMU in environment qemu and kvm packages are not needed at build time.
|
2013-04-08 20:55:30 +02:00
|
|
|
# With SUPERMIN and SUPERMIN_HELPER in environment, supermin package is not needed at build time.
|
2012-08-16 17:44:26 +02:00
|
|
|
export vmchannel_test=no
|
2014-07-07 10:21:47 +02:00
|
|
|
export QEMU="%{kvm_binary}"
|
2013-04-08 20:55:30 +02:00
|
|
|
export SUPERMIN=supermin
|
|
|
|
export SUPERMIN_HELPER=supermin-helper
|
2012-08-16 11:24:11 +02:00
|
|
|
# for configure macro below
|
2017-09-25 11:23:26 +02:00
|
|
|
export CFLAGS="%{optflags} -Wno-unused"
|
|
|
|
export CXXFLAGS="%{optflags} -Wno-unused"
|
2016-06-22 21:08:28 +02:00
|
|
|
autoreconf -fi
|
|
|
|
|
2012-09-13 14:54:57 +02:00
|
|
|
#
|
2012-08-15 20:06:38 +02:00
|
|
|
%configure \
|
|
|
|
--help || :
|
2013-06-29 18:59:15 +02:00
|
|
|
|
2013-06-29 19:34:19 +02:00
|
|
|
if python --version && ! pkg-config python
|
2013-06-29 18:59:15 +02:00
|
|
|
then
|
|
|
|
export PYTHON_LIBS="-lpython`python -c 'import distutils.sysconfig; print (distutils.sysconfig.get_python_version ());'`"
|
|
|
|
export PYTHON_CFLAGS="-I`python -c 'import distutils.sysconfig; print (distutils.sysconfig.get_python_inc ());'`"
|
2013-07-02 11:28:20 +02:00
|
|
|
export PYTHON_EXT_SUFFIX=.so
|
2013-06-29 18:59:15 +02:00
|
|
|
fi
|
|
|
|
|
2012-08-30 10:27:21 +02:00
|
|
|
#sed -i '1 s@^.*@#!/bin/sh -x@' configure
|
2012-08-15 20:06:38 +02:00
|
|
|
%configure \
|
2012-11-14 17:31:29 +01:00
|
|
|
--docdir=%{guestfs_docdir} \
|
2012-08-29 17:27:00 +02:00
|
|
|
--enable-daemon \
|
|
|
|
--enable-install-daemon \
|
2012-08-30 10:27:21 +02:00
|
|
|
--with-qemu=$QEMU \
|
|
|
|
--without-java \
|
2016-05-25 14:44:28 +02:00
|
|
|
--with-supermin-packager-config="$PWD/zypper.priv.conf --use-installed --verbose" \
|
2012-08-15 20:06:38 +02:00
|
|
|
--disable-haskell \
|
|
|
|
--disable-php \
|
2012-08-29 14:41:50 +02:00
|
|
|
%{_configure_fuse} \
|
2012-11-19 17:25:26 +01:00
|
|
|
%{_configure_lua} \
|
2012-08-20 10:58:04 +02:00
|
|
|
%{_configure_ocaml} \
|
2012-08-15 20:06:38 +02:00
|
|
|
%{_configure_perl} \
|
|
|
|
%{_configure_python} \
|
|
|
|
%{_configure_ruby} \
|
|
|
|
--disable-rpath \
|
2017-10-26 09:50:17 +02:00
|
|
|
--disable-static \
|
2019-04-09 11:30:12 +02:00
|
|
|
--with-distro=SUSE
|
2016-05-25 14:44:28 +02:00
|
|
|
#Workaround an autotools bug
|
|
|
|
make -j1 -C builder index-parse.c
|
2012-08-31 20:20:22 +02:00
|
|
|
# 'INSTALLDIRS' ensures that perl libs are installed in the vendor dir instead of the site dir
|
|
|
|
make \
|
|
|
|
INSTALLDIRS=vendor \
|
2012-09-03 11:19:09 +02:00
|
|
|
LD_RUN_PATH= \
|
2013-11-26 11:30:37 +01:00
|
|
|
%{?_smp_mflags}
|
2011-10-02 20:45:11 +02:00
|
|
|
|
|
|
|
%install
|
2016-05-25 14:44:28 +02:00
|
|
|
%makeinstall \
|
|
|
|
INSTALLDIRS=vendor \
|
|
|
|
udevrulesdir=%{udevrulesdir}
|
2017-09-25 11:23:26 +02:00
|
|
|
find %{buildroot} -ls
|
|
|
|
mkdir -p %{buildroot}/%{_datadir}/guestfs
|
|
|
|
cp -avLt %{buildroot}/%{_datadir}/guestfs \
|
2014-02-04 22:58:08 +01:00
|
|
|
%{S:10005} \
|
|
|
|
%{S:10004} \
|
2014-01-22 17:49:58 +01:00
|
|
|
%{S:10003} \
|
2014-01-22 11:15:09 +01:00
|
|
|
%{S:10002} \
|
|
|
|
%{S:10001}
|
2017-09-25 11:23:26 +02:00
|
|
|
chmod 0755 %{buildroot}/%{_datadir}/guestfs/*
|
2012-11-13 16:35:37 +01:00
|
|
|
#remove ocaml bindings files if they are disable via rpm macro
|
2013-03-25 15:22:09 +01:00
|
|
|
%if !%{with ocaml_bindings}
|
2017-09-25 11:23:26 +02:00
|
|
|
rm -rfv %{buildroot}/%{_libdir}/ocaml
|
2012-11-13 16:35:37 +01:00
|
|
|
%endif
|
2017-09-25 11:23:26 +02:00
|
|
|
rm -rfv %{buildroot}/%{guestfs_docdir}
|
2019-08-22 15:39:37 +02:00
|
|
|
rm -rfv %{buildroot}/etc/libguestfs-tools.conf
|
2017-09-25 11:23:26 +02:00
|
|
|
find %{buildroot}/ -type f \( \
|
2012-10-03 17:01:35 +02:00
|
|
|
-name "virt-list-filesystems" -o -name "virt-list-filesystems.*" -o \
|
|
|
|
-name "virt-list-partitions" -o -name "virt-list-partitions.*" -o \
|
|
|
|
-name "virt-tar" -o -name "virt-tar.*" \
|
|
|
|
\) -print -delete
|
2013-03-25 15:22:09 +01:00
|
|
|
%if %{with perl_bindings}
|
2012-09-13 10:18:28 +02:00
|
|
|
# Delete empty perl bootstrap files
|
2017-09-25 11:23:26 +02:00
|
|
|
find %{buildroot}/ -name "*.bs" -size 0c -print -delete
|
2012-09-03 10:27:00 +02:00
|
|
|
%perl_process_packlist
|
2012-09-05 11:29:37 +02:00
|
|
|
%perl_gen_filelist
|
|
|
|
# the macro above packages everything, here only the perl files are desrired
|
|
|
|
grep "%perl_vendorarch/" %{name}.files | tee t
|
|
|
|
mv t %{name}.files
|
2012-09-24 17:29:28 +02:00
|
|
|
%endif
|
2017-08-02 18:04:59 +02:00
|
|
|
|
|
|
|
%if %{with python_bindings}
|
|
|
|
pushd python
|
2017-09-25 11:23:26 +02:00
|
|
|
sed -i -e "s:libraries=:library_dirs=['%{buildroot}/%{_libdir}'], libraries=:" setup.py
|
2017-08-02 18:04:59 +02:00
|
|
|
make stamp-extra-files
|
|
|
|
# Build needs libguestfs library to be installed
|
2017-09-07 10:20:20 +02:00
|
|
|
|
|
|
|
# HACKY! Change config.h for python2
|
|
|
|
echo '#define HAVE_PYSTRING_ASSTRING 1' >> config.h
|
|
|
|
%python2_build
|
|
|
|
%python2_install
|
|
|
|
|
|
|
|
# HACKY! Change config.h for python3
|
|
|
|
sed 's/\(#define HAVE_PYSTRING_ASSTRING 1\)/\/* \1 *\//' -i config.h
|
|
|
|
%python3_build
|
|
|
|
%python3_install
|
2017-08-02 18:04:59 +02:00
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
2018-02-11 21:20:53 +01:00
|
|
|
# Don't package the test harness (yet)
|
|
|
|
rm -rf %{buildroot}/%{_libdir}/ocaml/v2v_test_harness
|
|
|
|
|
2012-09-05 11:29:37 +02:00
|
|
|
#
|
2017-09-25 11:23:26 +02:00
|
|
|
find %{buildroot}/ -name "*.la" -print -delete
|
|
|
|
rm -fv %{buildroot}/%{_libdir}/*.a
|
2012-11-19 18:28:37 +01:00
|
|
|
#
|
2012-08-16 10:35:01 +02:00
|
|
|
touch %{name}.lang
|
2011-10-02 20:45:11 +02:00
|
|
|
%find_lang %{name}
|
2016-05-25 14:44:28 +02:00
|
|
|
|
2017-09-21 11:01:23 +02:00
|
|
|
# Appliance NTFS files
|
2017-11-30 11:54:44 +01:00
|
|
|
%if 0%{?is_opensuse}
|
2017-09-25 11:23:26 +02:00
|
|
|
mkdir -p %{buildroot}/tmp/etc/alternatives
|
|
|
|
pushd %{buildroot}/tmp/etc/alternatives
|
2016-05-25 14:44:28 +02:00
|
|
|
ln -s /sbin/mount.ntfs-3g mount.ntfs
|
2015-03-09 14:59:16 +01:00
|
|
|
popd
|
2017-09-25 11:23:26 +02:00
|
|
|
pushd %{buildroot}/tmp
|
|
|
|
tar -czf %{buildroot}/%{_libdir}/guestfs/supermin.d/zz-ntfs-symlink.tar.gz etc
|
2016-05-25 14:44:28 +02:00
|
|
|
popd
|
2017-09-25 11:23:26 +02:00
|
|
|
rm -rf %{buildroot}/tmp
|
2017-09-21 11:01:23 +02:00
|
|
|
%else
|
|
|
|
# Just copy the content of the ntfs packages
|
|
|
|
mkdir winsupport
|
|
|
|
for pkg in $(rpm -qa | grep ntfs); do
|
|
|
|
rpm -ql $pkg > $pkg.list
|
|
|
|
rsync -av --files-from $pkg.list / winsupport
|
|
|
|
done
|
|
|
|
|
|
|
|
cp %{S:101} winsupport
|
|
|
|
|
|
|
|
pushd winsupport
|
|
|
|
tar zcf %{buildroot}%{_libdir}/guestfs/supermin.d/zz-winsupport.tar.gz .
|
|
|
|
popd
|
|
|
|
|
2017-12-05 16:32:05 +01:00
|
|
|
cat > %{buildroot}%{_libdir}/guestfs/supermin.d/zz-packages-winsupport << EOF
|
|
|
|
libfuse2
|
|
|
|
hwinfo
|
|
|
|
EOF
|
2017-09-21 11:01:23 +02:00
|
|
|
%endif
|
2011-10-02 20:45:11 +02:00
|
|
|
|
2017-09-25 11:23:26 +02:00
|
|
|
mkdir -p %{buildroot}/tmp/usr/bin
|
|
|
|
cp %{S:100} %{buildroot}/tmp/usr/bin
|
|
|
|
chmod a+x %{buildroot}/tmp/usr/bin/*
|
|
|
|
pushd %{buildroot}/tmp
|
|
|
|
tar -czf %{buildroot}/%{_libdir}/guestfs/supermin.d/zz-scripts.tar.gz usr
|
2016-07-21 08:26:49 +02:00
|
|
|
popd
|
2017-09-25 11:23:26 +02:00
|
|
|
rm -rf %{buildroot}/tmp
|
2016-07-21 08:26:49 +02:00
|
|
|
|
2016-06-22 21:08:28 +02:00
|
|
|
%if %{with p2v}
|
|
|
|
# Remove the kickstart files from p2v package
|
2017-09-25 11:23:26 +02:00
|
|
|
rm %{buildroot}/%{_datadir}/virt-p2v/p2v.ks.in
|
2016-06-22 21:08:28 +02:00
|
|
|
%endif
|
|
|
|
|
2011-10-02 20:45:11 +02:00
|
|
|
%post -n libguestfs0 -p /sbin/ldconfig
|
|
|
|
%postun -n libguestfs0 -p /sbin/ldconfig
|
|
|
|
|
2014-01-22 11:15:09 +01:00
|
|
|
%files test
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_datadir}/guestfs
|
|
|
|
|
2012-09-13 20:07:18 +02:00
|
|
|
%files -n guestfs-data
|
2011-10-02 20:45:11 +02:00
|
|
|
%defattr(-,root,root)
|
2017-09-21 11:01:23 +02:00
|
|
|
%dir %{_libdir}/guestfs
|
|
|
|
%dir %{_libdir}/guestfs/supermin.d
|
|
|
|
%{_libdir}/guestfs/supermin.d/base.tar.gz
|
|
|
|
%{_libdir}/guestfs/supermin.d/daemon.tar.gz
|
|
|
|
%{_libdir}/guestfs/supermin.d/init.tar.gz
|
|
|
|
%{_libdir}/guestfs/supermin.d/udev-rules.tar.gz
|
|
|
|
%{_libdir}/guestfs/supermin.d/excludefiles
|
|
|
|
%{_libdir}/guestfs/supermin.d/hostfiles
|
|
|
|
%{_libdir}/guestfs/supermin.d/packages
|
|
|
|
%{_libdir}/guestfs/supermin.d/zz-scripts.tar.gz
|
|
|
|
|
2017-11-30 11:54:44 +01:00
|
|
|
%if 0%{?is_opensuse}
|
2017-09-21 11:01:23 +02:00
|
|
|
%{_libdir}/guestfs/supermin.d/zz-ntfs-symlink.tar.gz
|
2017-11-30 11:54:44 +01:00
|
|
|
%else
|
2017-09-21 11:01:23 +02:00
|
|
|
|
|
|
|
%files -n guestfs-winsupport
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/guestfs/supermin.d/zz-*winsupport*
|
|
|
|
%endif
|
2011-10-02 20:45:11 +02:00
|
|
|
|
2013-03-25 15:22:09 +01:00
|
|
|
%if %{with ocaml_bindings}
|
2012-09-01 20:26:42 +02:00
|
|
|
%files -n ocaml-libguestfs
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_libdir}/ocaml
|
|
|
|
%dir %{_libdir}/ocaml/guestfs
|
|
|
|
%{_libdir}/ocaml/guestfs/META
|
|
|
|
%{_libdir}/ocaml/guestfs/*.cmi
|
|
|
|
%{_libdir}/ocaml/guestfs/*.cma
|
|
|
|
%{_libdir}/ocaml/stublibs
|
|
|
|
|
|
|
|
%files -n ocaml-libguestfs-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_libdir}/ocaml
|
|
|
|
%dir %{_libdir}/ocaml/guestfs
|
|
|
|
%{_libdir}/ocaml/guestfs/*.a
|
2017-05-30 14:54:35 +02:00
|
|
|
%if %{ocaml_native_compiler}
|
2012-09-01 20:26:42 +02:00
|
|
|
%{_libdir}/ocaml/guestfs/*.cmx
|
|
|
|
%{_libdir}/ocaml/guestfs/*.cmxa
|
2013-01-16 18:04:26 +01:00
|
|
|
%endif
|
2012-09-01 20:26:42 +02:00
|
|
|
%{_libdir}/ocaml/guestfs/*.mli
|
|
|
|
%endif
|
2012-08-15 20:06:38 +02:00
|
|
|
#
|
2013-03-25 15:22:09 +01:00
|
|
|
%if %{with lua_bindings}
|
2012-11-19 17:25:26 +01:00
|
|
|
%files -n lua-libguestfs
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/lua
|
|
|
|
%endif
|
|
|
|
#
|
2013-03-25 15:22:09 +01:00
|
|
|
%if %{with perl_bindings}
|
2012-09-01 14:15:10 +02:00
|
|
|
%post -n perl-Sys-Guestfs -p /sbin/ldconfig
|
2012-08-15 20:06:38 +02:00
|
|
|
|
2012-09-01 14:15:10 +02:00
|
|
|
%postun -n perl-Sys-Guestfs -p /sbin/ldconfig
|
2012-08-15 20:06:38 +02:00
|
|
|
|
2012-09-05 11:29:37 +02:00
|
|
|
%files -n perl-Sys-Guestfs -f %{name}.files
|
2012-08-15 20:06:38 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%endif
|
|
|
|
#
|
2013-03-25 15:22:09 +01:00
|
|
|
%if %{with python_bindings}
|
2017-08-02 18:04:59 +02:00
|
|
|
%files -n python2-libguestfs
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{python2_sitearch}/*
|
|
|
|
|
|
|
|
%files -n python3-libguestfs
|
2012-08-15 20:06:38 +02:00
|
|
|
%defattr(-,root,root)
|
2017-08-02 18:04:59 +02:00
|
|
|
%{python3_sitearch}/*
|
2012-08-15 20:06:38 +02:00
|
|
|
%endif
|
|
|
|
#
|
2013-03-25 15:22:09 +01:00
|
|
|
%if %{with ruby_bindings}
|
2011-10-02 20:45:11 +02:00
|
|
|
%files -n rubygem-libguestfs
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/ruby
|
2012-08-15 20:06:38 +02:00
|
|
|
%endif
|
2011-10-02 20:45:11 +02:00
|
|
|
|
|
|
|
%files -n libguestfs0
|
|
|
|
%defattr(-,root,root)
|
2019-04-17 22:59:11 +02:00
|
|
|
%license COPYING.LIB
|
2011-10-02 20:45:11 +02:00
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/*.so
|
2012-07-02 19:58:52 +02:00
|
|
|
%{_libdir}/pkgconfig/*
|
2011-10-02 20:45:11 +02:00
|
|
|
%{_includedir}/guestfs.h
|
2016-05-25 14:44:28 +02:00
|
|
|
%{_includedir}/guestfs-gobject
|
|
|
|
%{_includedir}/guestfs-gobject.h
|
2012-08-18 16:38:57 +02:00
|
|
|
%{_mandir}/man3/*
|
2011-10-02 20:45:11 +02:00
|
|
|
|
2012-09-13 20:07:18 +02:00
|
|
|
%files -n guestfsd
|
2012-09-01 20:53:34 +02:00
|
|
|
%defattr(-,root,root)
|
2016-05-25 14:44:28 +02:00
|
|
|
%{udevrulesdir}
|
2012-09-01 20:53:34 +02:00
|
|
|
%{_sbindir}/guestfsd
|
2012-10-08 12:07:43 +02:00
|
|
|
%{_mandir}/man8/*
|
2012-09-01 20:53:34 +02:00
|
|
|
|
2012-09-13 20:07:18 +02:00
|
|
|
%files -n guestfs-tools -f %{name}.lang
|
2011-10-02 20:45:11 +02:00
|
|
|
%defattr(-,root,root)
|
2019-04-17 22:59:11 +02:00
|
|
|
%license COPYING
|
2016-05-25 14:44:28 +02:00
|
|
|
%{_sbindir}/libguestfs-make-fixed-appliance
|
2011-10-02 20:45:11 +02:00
|
|
|
%{_bindir}/*
|
2016-05-25 14:44:28 +02:00
|
|
|
%exclude %{_bindir}/virt-v2v
|
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
2018-02-09 21:35:53 +01:00
|
|
|
%if %{with p2v}
|
2016-06-22 21:08:28 +02:00
|
|
|
%exclude %{_bindir}/virt-p2v-*
|
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
2018-02-09 21:35:53 +01:00
|
|
|
%endif
|
2014-03-28 15:19:16 +01:00
|
|
|
/etc/virt-builder
|
|
|
|
%dir /etc/xdg/virt-builder
|
|
|
|
%dir /etc/xdg/virt-builder/repos.d
|
|
|
|
%config /etc/xdg/virt-builder/repos.d/*
|
2013-08-20 16:50:12 +02:00
|
|
|
%if %{with bash_completion}
|
|
|
|
%{_datadir}/bash-completion
|
2016-05-25 14:44:28 +02:00
|
|
|
%exclude %{_datadir}/bash-completion/*/virt-v2v
|
2013-08-20 16:50:12 +02:00
|
|
|
%endif
|
2012-08-18 16:38:57 +02:00
|
|
|
%{_mandir}/man1/*
|
2016-05-25 14:44:28 +02:00
|
|
|
%exclude %{_mandir}/man1/virt-v2v.*
|
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
2018-02-09 21:35:53 +01:00
|
|
|
%if %{with p2v}
|
2016-06-22 21:08:28 +02:00
|
|
|
%exclude %{_mandir}/man1/virt-p2v*
|
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
2018-02-09 21:35:53 +01:00
|
|
|
%endif
|
2013-11-26 11:30:37 +01:00
|
|
|
%{_mandir}/man5/*
|
2011-10-02 20:45:11 +02:00
|
|
|
|
2016-05-25 14:44:28 +02:00
|
|
|
%files -n virt-v2v
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/virt-v2v
|
|
|
|
%{_datadir}/bash-completion/*/virt-v2v
|
|
|
|
%{_mandir}/man1/virt-v2v.*
|
2016-06-22 21:08:28 +02:00
|
|
|
|
|
|
|
%if %{with p2v}
|
|
|
|
%files -n virt-p2v
|
|
|
|
%defattr(-,root,root)
|
2017-05-30 14:54:35 +02:00
|
|
|
%{_libdir}/virt-p2v
|
2016-05-25 14:44:28 +02:00
|
|
|
%{_datadir}/virt-p2v
|
2016-06-22 21:08:28 +02:00
|
|
|
%{_bindir}/virt-p2v-make-kiwi
|
|
|
|
%{_bindir}/virt-p2v-make-disk
|
|
|
|
%{_mandir}/man1/virt-p2v-make-kiwi*
|
|
|
|
%{_mandir}/man1/virt-p2v-make-disk*
|
2016-05-25 14:44:28 +02:00
|
|
|
%endif
|
|
|
|
|
2011-10-02 20:45:11 +02:00
|
|
|
%changelog
|