2012-08-16 15:55:36 +00:00
|
|
|
#
|
|
|
|
# spec file for package libguestfs
|
|
|
|
#
|
2021-01-11 22:42:53 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2011-10-02 18:45:11 +00: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.
|
|
|
|
|
2020-10-06 20:23:44 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-08-16 15:55:36 +00:00
|
|
|
#
|
2016-05-25 12:44:28 +00:00
|
|
|
# needsbinariesforbuild
|
2011-10-02 18:45:11 +00:00
|
|
|
|
2013-08-19 21:24:42 +00:00
|
|
|
|
2021-04-14 08:09:18 +00:00
|
|
|
Version: 1.44.1
|
2013-08-19 21:24:42 +00:00
|
|
|
Release: 0
|
2021-07-19 09:02:47 +00:00
|
|
|
%{?ocaml_preserve_bytecode}
|
2013-03-25 14:22:09 +00: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 20:35:53 +00:00
|
|
|
%bcond_with p2v
|
2016-06-22 19:08:28 +00:00
|
|
|
|
2013-08-20 12:43:18 +00:00
|
|
|
%bcond_without bash_completion
|
2012-09-24 18:22:22 +00:00
|
|
|
# The following defines are overridden in the individual subpackages
|
2012-09-13 18:22:57 +00:00
|
|
|
%define _configure_fuse --disable-fuse
|
2012-11-19 16:25:26 +00:00
|
|
|
%define _configure_lua --disable-lua
|
2012-09-13 18:22:57 +00:00
|
|
|
%define _configure_ocaml --disable-ocaml
|
|
|
|
%define _configure_perl --disable-perl
|
|
|
|
%define _configure_python --disable-python
|
|
|
|
%define _configure_ruby --disable-ruby
|
2012-08-16 15:55:36 +00:00
|
|
|
|
2013-08-05 15:48:49 +00:00
|
|
|
%define udevrulesdir /usr/lib/udev/rules.d
|
2013-01-03 13:02:54 +00:00
|
|
|
#
|
2014-07-07 08:21:47 +00: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 10:54:55 +00:00
|
|
|
%ifarch ppc64le
|
|
|
|
%define kvm_binary /usr/bin/qemu-system-ppc64
|
|
|
|
%endif
|
2014-07-07 08:21:47 +00: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 16:31:29 +00:00
|
|
|
%define guestfs_docdir %{_defaultdocdir}/%{name}
|
|
|
|
#
|
2011-10-02 18:45:11 +00:00
|
|
|
Name: libguestfs
|
2013-01-03 15:53:24 +00:00
|
|
|
%if "%{?_ignore_exclusive_arch}" == ""
|
2016-06-27 07:28:20 +00:00
|
|
|
ExclusiveArch: x86_64 ppc64 ppc64le s390x aarch64
|
2013-01-02 18:34:59 +00:00
|
|
|
%endif
|
2012-10-29 08:06:34 +00:00
|
|
|
BuildRequires: aaa_base
|
2012-08-29 14:48:35 +00:00
|
|
|
BuildRequires: attr-devel
|
2013-11-26 10:30:37 +00:00
|
|
|
BuildRequires: augeas-devel >= 1.0.0
|
2012-08-16 15:55:36 +00:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2013-08-20 12:43:18 +00:00
|
|
|
%if %{with bash_completion}
|
|
|
|
BuildRequires: bash-completion >= 2.0
|
2016-05-25 12:44:28 +00:00
|
|
|
%if 0%{?suse_version} >= 1330
|
|
|
|
BuildRequires: bash-completion-devel >= 2.0
|
|
|
|
%endif
|
2013-08-20 12:43:18 +00:00
|
|
|
%endif
|
2014-03-28 14:19:16 +00:00
|
|
|
BuildRequires: bison
|
2012-08-29 14:36:23 +00:00
|
|
|
BuildRequires: file-devel
|
2014-03-28 14:19:16 +00:00
|
|
|
BuildRequires: flex
|
2012-08-16 15:55:36 +00:00
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gperf
|
2013-03-25 14:22:09 +00:00
|
|
|
BuildRequires: libacl-devel
|
2012-11-23 19:21:05 +00:00
|
|
|
BuildRequires: libcap-devel
|
2012-08-29 14:17:14 +00:00
|
|
|
BuildRequires: libconfig-devel
|
2012-08-16 15:55:36 +00:00
|
|
|
BuildRequires: libtool
|
2018-02-09 21:05:17 +00:00
|
|
|
BuildRequires: libvirt-devel >= 1.2.20
|
2013-08-19 21:51:11 +00:00
|
|
|
BuildRequires: libxml2-devel
|
2012-08-16 15:55:36 +00:00
|
|
|
BuildRequires: ncurses-devel
|
2018-04-19 09:47:36 +00:00
|
|
|
BuildRequires: pkgconfig(libtirpc)
|
2013-03-25 14:22:09 +00:00
|
|
|
%if %{with perl_bindings}
|
2016-05-25 12:44:28 +00:00
|
|
|
BuildRequires: perl(Module::Build)
|
2013-03-25 14:22:09 +00:00
|
|
|
%endif
|
2016-05-25 12:44:28 +00:00
|
|
|
BuildRequires: db48-utils
|
|
|
|
BuildRequires: dhcp-client
|
2020-05-06 20:58:16 +00:00
|
|
|
BuildRequires: libjansson-devel
|
2012-08-16 15:55:36 +00:00
|
|
|
BuildRequires: pcre-devel
|
|
|
|
BuildRequires: pkg-config
|
2021-07-19 09:02:47 +00:00
|
|
|
BuildRequires: pkgconfig(python3)
|
2016-05-25 12:44:28 +00:00
|
|
|
BuildRequires: qemu-tools
|
2012-08-16 15:55:36 +00:00
|
|
|
BuildRequires: readline-devel
|
2016-05-25 12:44:28 +00:00
|
|
|
BuildRequires: supermin >= 5.1.6
|
2017-05-30 12:54:35 +00:00
|
|
|
BuildRequires: pkgconfig(dbus-1)
|
2012-11-13 14:45:14 +00:00
|
|
|
# Required to build tools, its independent from bindings
|
2016-05-25 12:44:28 +00: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 20:35:53 +00:00
|
|
|
BuildRequires: ocaml >= 4.01
|
2012-11-13 14:45:14 +00: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 20:35:53 +00:00
|
|
|
BuildRequires: ocaml-gettext-devel
|
|
|
|
BuildRequires: ocaml-gettext-stub-devel
|
|
|
|
BuildRequires: ocaml-hivex-devel
|
|
|
|
BuildRequires: ocaml-libvirt-devel
|
2016-05-25 12:44:28 +00:00
|
|
|
|
|
|
|
#
|
2021-04-21 13:09:58 +00:00
|
|
|
BuildRequires: ocaml-rpm-macros
|
2016-05-25 12:44:28 +00:00
|
|
|
%if %{with ocaml_bindings}
|
2012-11-13 15:26:04 +00:00
|
|
|
%define _configure_ocaml --enable-ocaml
|
2012-11-13 14:45:14 +00:00
|
|
|
%endif
|
|
|
|
#
|
2013-03-25 14:22:09 +00:00
|
|
|
%if %{with fuse}
|
2012-08-29 12:41:50 +00:00
|
|
|
BuildRequires: fuse-devel
|
|
|
|
%define _configure_fuse --enable-fuse
|
2012-08-15 18:06:38 +00:00
|
|
|
%endif
|
2012-11-13 14:45:14 +00:00
|
|
|
#
|
2013-03-25 14:22:09 +00:00
|
|
|
%if %{with hivex}
|
2014-10-14 08:35:35 +00:00
|
|
|
BuildRequires: glibc-locale
|
2016-05-25 12:44:28 +00:00
|
|
|
BuildRequires: hivex
|
2012-09-24 13:08:21 +00:00
|
|
|
BuildRequires: hivex-devel
|
|
|
|
%endif
|
2012-08-15 18:06:38 +00:00
|
|
|
#
|
2016-06-22 19:08:28 +00:00
|
|
|
%if %{with p2v}
|
2016-05-25 12:44:28 +00:00
|
|
|
BuildRequires: gtk2-devel
|
|
|
|
%endif
|
|
|
|
#
|
2020-10-06 20:23:44 +00:00
|
|
|
URL: http://libguestfs.org/
|
2011-10-02 18:45:11 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-09-13 18:07:18 +00:00
|
|
|
Summary: Compatibility package for guestfs-tools
|
2018-02-28 12:33:26 +00:00
|
|
|
# Upstream patches
|
2019-04-09 09:30:12 +00:00
|
|
|
License: GPL-2.0-only
|
2011-10-02 18:45:11 +00:00
|
|
|
Group: System/Filesystems
|
2020-01-21 18:57:34 +00:00
|
|
|
|
2018-02-28 12:33:26 +00: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 06:26:49 +00:00
|
|
|
Patch100: appliance.patch
|
2019-08-31 07:24:06 +00:00
|
|
|
Patch101: netconfig.patch
|
2021-04-14 08:36:39 +00:00
|
|
|
Patch102: libguestfs.env.patch
|
2016-05-25 12:44:28 +00:00
|
|
|
|
2021-01-12 12:42:37 +00:00
|
|
|
Source0: https://download.libguestfs.org/1.44-stable/libguestfs-%{version}.tar.gz
|
2020-05-06 20:58:16 +00:00
|
|
|
Source3: libguestfs.rpmlintrc
|
2016-07-21 06:26:49 +00:00
|
|
|
Source100: mount-rootfs-and-chroot.sh
|
2017-09-21 09:01:23 +00:00
|
|
|
Source101: README
|
2013-06-04 12:02:49 +00:00
|
|
|
Source789653: Pod-Simple-3.23.tar.xz
|
2014-01-22 10:15:09 +00:00
|
|
|
#
|
|
|
|
Source10001: libguestfs.test.simple.run-libugestfs-test-tool.sh
|
|
|
|
Source10002: libguestfs.test.simple.create-opensuse-guest.sh
|
2014-01-22 16:49:58 +00:00
|
|
|
Source10003: libguestfs.test.simple.create-opensuse-guest-crypt-on-lvm.sh
|
2014-02-04 21:58:08 +00:00
|
|
|
Source10004: libguestfs.test.simple.create-sles12-guest.sh
|
|
|
|
Source10005: libguestfs.test.simple.create-sles12-guest-crypt-on-lvm.sh
|
|
|
|
|
2014-01-22 10:15:09 +00:00
|
|
|
#
|
2012-09-13 18:07:18 +00:00
|
|
|
Requires: guestfs-tools
|
2019-09-09 17:04:40 +00:00
|
|
|
Requires: lvm2
|
2017-07-31 08:31:57 +00:00
|
|
|
Requires: virt-v2v = %{version}
|
2011-10-02 18:45:11 +00: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 18:07:18 +00:00
|
|
|
%package -n guestfs-tools
|
|
|
|
Summary: Tools for accessing and modifying virtual machine disk images
|
2019-04-09 09:30:12 +00:00
|
|
|
License: GPL-2.0-only
|
2012-09-13 18:07:18 +00:00
|
|
|
Group: System/Filesystems
|
|
|
|
Provides: %{name} = %{version}
|
|
|
|
Obsoletes: %{name} < %{version}
|
2016-07-04 12:20:29 +00:00
|
|
|
Requires: libguestfs0 = %{version}
|
2017-12-04 17:20:49 +00:00
|
|
|
Requires: python3-evtx
|
2013-11-26 10:30:37 +00:00
|
|
|
%if %{with bash_completion}
|
|
|
|
Recommends: bash-completion >= 2.0
|
|
|
|
%endif
|
2013-03-25 14:22:09 +00:00
|
|
|
%if %{with perl_bindings}
|
2012-09-13 18:12:48 +00: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 14:22:09 +00:00
|
|
|
%{perl_requires}
|
|
|
|
%if %{with hivex}
|
2012-09-13 18:12:48 +00:00
|
|
|
Requires: perl(Win::Hivex)
|
|
|
|
Requires: perl(Win::Hivex::Regedit)
|
2012-09-24 13:30:42 +00:00
|
|
|
%endif
|
2012-11-29 19:17:06 +00:00
|
|
|
%endif
|
2016-07-28 10:00:45 +00:00
|
|
|
|
|
|
|
%if %{with fuse}
|
|
|
|
Requires: fuse
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# For virt-builder
|
|
|
|
Requires: curl
|
|
|
|
Requires: gpg2
|
|
|
|
Requires: xz
|
2012-12-11 16:56:12 +00:00
|
|
|
Conflicts: libguestfs0 < %{version}
|
2012-09-13 18:07:18 +00: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 16:36:27 +00:00
|
|
|
Summary: Daemon for the libguestfs appliance
|
2019-04-09 09:30:12 +00:00
|
|
|
License: GPL-2.0-only
|
2012-09-01 18:53:34 +00:00
|
|
|
Group: System/Filesystems
|
2013-11-26 10:30:37 +00:00
|
|
|
Conflicts: libaugeas0 < 1.0.0
|
2012-09-01 18:53:34 +00:00
|
|
|
|
2012-09-13 18:07:18 +00:00
|
|
|
%description -n guestfsd
|
|
|
|
guestfsd runs within the libguestfs appliance. It receives commands from the host
|
2012-09-01 18:53:34 +00:00
|
|
|
and performs the requested action by calling the helper binaries.
|
|
|
|
This package is only required for building the appliance.
|
|
|
|
|
2012-09-01 18:26:42 +00:00
|
|
|
#
|
2013-03-25 14:22:09 +00:00
|
|
|
%if %{with ocaml_bindings}
|
2012-09-01 18:26:42 +00:00
|
|
|
%package -n ocaml-libguestfs
|
2017-09-25 09:23:26 +00:00
|
|
|
Summary: OCaml bindings for libguestfs
|
2017-07-16 09:23:54 +00:00
|
|
|
#
|
2019-04-09 09:30:12 +00:00
|
|
|
License: GPL-2.0-only
|
2017-10-13 06:56:20 +00:00
|
|
|
Group: Development/Languages/OCaml
|
2012-09-01 18:26:42 +00:00
|
|
|
|
|
|
|
%description -n ocaml-libguestfs
|
2012-09-03 07:47:14 +00:00
|
|
|
Allows OCaml scripts to directly use libguestfs.
|
2012-09-01 18:26:42 +00:00
|
|
|
|
|
|
|
%package -n ocaml-libguestfs-devel
|
2017-09-25 09:23:26 +00:00
|
|
|
Summary: Development files for libguesfs OCaml bindings
|
2019-04-09 09:30:12 +00:00
|
|
|
License: GPL-2.0-only
|
2017-10-13 06:56:20 +00:00
|
|
|
Group: Development/Languages/OCaml
|
2012-09-01 18:26:42 +00:00
|
|
|
|
|
|
|
%description -n ocaml-libguestfs-devel
|
2012-09-03 07:47:14 +00:00
|
|
|
Allows OCaml scripts to directly use libguestfs.
|
2012-09-01 18:26:42 +00:00
|
|
|
%endif
|
2012-08-15 18:06:38 +00:00
|
|
|
#
|
2013-03-25 14:22:09 +00:00
|
|
|
%if %{with perl_bindings}
|
2012-09-01 12:15:10 +00:00
|
|
|
%package -n perl-Sys-Guestfs
|
2017-09-25 09:23:26 +00:00
|
|
|
Summary: Perl bindings for libguestfs
|
2019-04-09 09:30:12 +00:00
|
|
|
License: GPL-2.0-only
|
2017-09-25 09:23:26 +00:00
|
|
|
Group: Development/Languages/Perl
|
2012-09-13 18:22:57 +00: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 14:22:09 +00:00
|
|
|
%if %{with hivex}
|
2012-09-13 18:22:57 +00:00
|
|
|
BuildRequires: perl(Win::Hivex)
|
|
|
|
BuildRequires: perl(Win::Hivex::Regedit)
|
2012-09-24 13:30:42 +00:00
|
|
|
%endif
|
2012-09-13 18:22:57 +00:00
|
|
|
%define _configure_perl --enable-perl
|
|
|
|
#
|
2012-09-01 19:01:16 +00:00
|
|
|
Provides: libguestfs-perl = %{version}
|
|
|
|
Obsoletes: libguestfs-perl < %{version}
|
2012-11-29 19:17:06 +00:00
|
|
|
Requires: perl(File::Temp)
|
|
|
|
Requires: perl(Locale::TextDomain)
|
2012-09-13 18:11:21 +00:00
|
|
|
%perl_requires
|
2012-08-15 18:06:38 +00:00
|
|
|
|
2012-09-01 12:15:10 +00:00
|
|
|
%description -n perl-Sys-Guestfs
|
2012-09-03 07:47:14 +00:00
|
|
|
Allows Perl scripts to directly use libguestfs.
|
2012-08-15 18:06:38 +00:00
|
|
|
%endif
|
|
|
|
#
|
2013-03-25 14:22:09 +00:00
|
|
|
%if %{with lua_bindings}
|
2012-11-19 16:25:26 +00:00
|
|
|
%package -n lua-libguestfs
|
2017-09-25 09:23:26 +00:00
|
|
|
Summary: Lua bindings for libguestfs
|
2019-04-09 09:30:12 +00:00
|
|
|
License: GPL-2.0-only
|
2017-09-25 09:23:26 +00:00
|
|
|
Group: Development/Languages/Lua
|
2012-11-19 16:25:26 +00:00
|
|
|
BuildRequires: lua-devel
|
|
|
|
%define _configure_lua --enable-lua
|
|
|
|
#
|
|
|
|
|
|
|
|
%description -n lua-libguestfs
|
|
|
|
Allows lua scripts to directly use libguestfs.
|
|
|
|
%endif
|
|
|
|
#
|
2017-09-01 14:44:47 +00:00
|
|
|
|
2013-03-25 14:22:09 +00:00
|
|
|
%if %{with python_bindings}
|
2020-07-21 19:00:34 +00:00
|
|
|
%{?!python_module:%define python_module() python3-%{**}}
|
2017-08-02 16:04:59 +00:00
|
|
|
%package -n python3-libguestfs
|
2017-09-25 09:23:26 +00:00
|
|
|
Summary: Python 3 bindings for libguestfs
|
2019-04-09 09:30:12 +00:00
|
|
|
License: GPL-2.0-only
|
2017-09-25 09:23:26 +00:00
|
|
|
Group: Development/Languages/Python
|
2021-07-19 09:02:47 +00:00
|
|
|
BuildRequires: pkgconfig(python3)
|
2017-08-02 16:04:59 +00: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 18:06:38 +00:00
|
|
|
%endif
|
|
|
|
#
|
2013-03-25 14:22:09 +00:00
|
|
|
%if %{with ruby_bindings}
|
2011-10-02 18:45:11 +00:00
|
|
|
%package -n rubygem-libguestfs
|
|
|
|
Summary: Ruby bindings for libguestfs
|
2019-04-09 09:30:12 +00:00
|
|
|
License: GPL-2.0-only
|
2017-09-25 09:23:26 +00:00
|
|
|
Group: Development/Languages/Ruby
|
2012-09-13 18:22:57 +00:00
|
|
|
BuildRequires: ruby
|
|
|
|
BuildRequires: ruby-devel
|
2019-04-09 09:30:12 +00:00
|
|
|
BuildRequires: rubygem(rake)
|
2012-09-13 18:22:57 +00:00
|
|
|
%define _configure_ruby --enable-ruby
|
|
|
|
#
|
2011-10-02 18:45:11 +00:00
|
|
|
|
|
|
|
%description -n rubygem-libguestfs
|
2012-09-03 07:47:14 +00:00
|
|
|
Allows Ruby scripts to directly use libguestfs.
|
2012-08-15 18:06:38 +00:00
|
|
|
%endif
|
2011-10-02 18:45:11 +00:00
|
|
|
|
2014-01-22 10:15:09 +00:00
|
|
|
%package test
|
|
|
|
Summary: Testcases for libguestfs
|
2019-04-09 09:30:12 +00:00
|
|
|
License: GPL-2.0-only
|
2017-09-25 09:23:26 +00:00
|
|
|
Group: Development/Tools/Other
|
2014-01-22 17:33:16 +00:00
|
|
|
Requires: %{name}
|
2014-01-22 10:15:09 +00:00
|
|
|
|
|
|
|
%description test
|
|
|
|
This package contains testcases to verify libguestfs functionality.
|
|
|
|
|
2012-09-13 18:07:18 +00:00
|
|
|
%package -n guestfs-data
|
2012-09-19 15:53:43 +00:00
|
|
|
BuildRequires: augeas-lenses
|
2014-07-09 08:04:24 +00:00
|
|
|
BuildRequires: bc
|
2012-09-03 18:08:08 +00:00
|
|
|
BuildRequires: btrfsprogs
|
|
|
|
BuildRequires: bzip2
|
|
|
|
BuildRequires: coreutils
|
|
|
|
BuildRequires: cpio
|
|
|
|
BuildRequires: cryptsetup
|
|
|
|
BuildRequires: diffutils
|
2012-09-03 18:10:43 +00:00
|
|
|
BuildRequires: dosfstools
|
2012-09-03 18:08:08 +00:00
|
|
|
BuildRequires: e2fsprogs
|
|
|
|
BuildRequires: file
|
|
|
|
BuildRequires: findutils
|
|
|
|
BuildRequires: gawk
|
2018-02-23 13:14:55 +00:00
|
|
|
%if 0%{?suse_version} >= 1500
|
|
|
|
BuildRequires: mkisofs
|
|
|
|
%else
|
|
|
|
BuildRequires: cdrkit-cdrtools-compat
|
2012-09-03 18:08:08 +00:00
|
|
|
BuildRequires: genisoimage
|
2018-02-23 13:14:55 +00:00
|
|
|
%endif
|
2012-09-03 18:08:08 +00:00
|
|
|
BuildRequires: glibc
|
2014-07-04 07:52:15 +00:00
|
|
|
BuildRequires: gptfdisk
|
2017-05-30 12:54:35 +00:00
|
|
|
BuildRequires: grep
|
2012-09-03 18:08:08 +00:00
|
|
|
BuildRequires: gzip
|
2016-11-30 17:07:51 +00:00
|
|
|
BuildRequires: initviocons
|
2012-09-03 18:08:08 +00:00
|
|
|
BuildRequires: iproute2
|
2012-09-13 05:10:10 +00:00
|
|
|
BuildRequires: jfsutils
|
2012-09-03 18:08:08 +00:00
|
|
|
BuildRequires: lvm2
|
|
|
|
BuildRequires: mdadm
|
|
|
|
BuildRequires: module-init-tools
|
2016-05-25 12:44:28 +00:00
|
|
|
BuildRequires: ncurses-utils
|
2014-01-20 16:32:24 +00:00
|
|
|
BuildRequires: nfs-client
|
2012-09-03 18:08:08 +00:00
|
|
|
BuildRequires: ntfs-3g
|
|
|
|
BuildRequires: ntfsprogs
|
2016-05-25 12:44:28 +00:00
|
|
|
BuildRequires: pam-config
|
2012-09-03 18:08:08 +00:00
|
|
|
BuildRequires: parted
|
2016-05-25 12:44:28 +00:00
|
|
|
BuildRequires: pciutils
|
|
|
|
BuildRequires: pciutils-ids
|
2014-07-04 07:54:14 +00:00
|
|
|
BuildRequires: psmisc
|
2012-09-13 05:10:10 +00:00
|
|
|
BuildRequires: reiserfs
|
2012-09-03 18:08:08 +00:00
|
|
|
BuildRequires: rsync
|
2016-05-25 12:44:28 +00:00
|
|
|
BuildRequires: sg3_utils
|
2012-09-03 18:08:08 +00:00
|
|
|
BuildRequires: strace
|
2014-07-04 07:52:15 +00:00
|
|
|
%ifarch %ix86 x86_64
|
|
|
|
BuildRequires: syslinux
|
|
|
|
%endif
|
2019-04-09 09:30:12 +00:00
|
|
|
BuildRequires: ldmtool
|
2016-05-25 12:44:28 +00:00
|
|
|
BuildRequires: systemd-sysvinit
|
2012-09-03 18:08:08 +00:00
|
|
|
BuildRequires: tar
|
2012-09-07 15:03:24 +00:00
|
|
|
BuildRequires: terminfo-base
|
2016-05-25 12:44:28 +00:00
|
|
|
BuildRequires: tunctl
|
2012-09-03 18:08:08 +00:00
|
|
|
BuildRequires: udev
|
|
|
|
BuildRequires: util-linux
|
2016-05-25 12:44:28 +00:00
|
|
|
BuildRequires: util-linux-lang
|
2012-09-03 18:08:08 +00:00
|
|
|
BuildRequires: xfsprogs
|
|
|
|
BuildRequires: xz
|
2019-08-31 07:24:06 +00:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
2016-07-28 10:00:45 +00:00
|
|
|
|
2016-08-05 14:30:45 +00: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 07:05:45 +00:00
|
|
|
Requires: augeas
|
|
|
|
Requires: augeas-lenses
|
2016-08-05 14:30:45 +00:00
|
|
|
Requires: libaugeas0
|
|
|
|
Requires: libcap2
|
|
|
|
Requires: libhivex0
|
|
|
|
Requires: libpcre1
|
|
|
|
|
2016-08-30 05:31:37 +00: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 13:14:55 +00:00
|
|
|
%if 0%{?suse_version} >= 1500
|
|
|
|
Recommends: mkisofs
|
|
|
|
%else
|
2016-08-30 05:31:37 +00:00
|
|
|
Recommends: genisoimage
|
2018-02-23 13:14:55 +00:00
|
|
|
%endif
|
2017-04-13 08:55:04 +00:00
|
|
|
Recommends: ldmtool
|
2017-09-21 09:01:23 +00:00
|
|
|
Recommends: guestfs-winsupport
|
2016-08-30 05:31:37 +00:00
|
|
|
|
2011-10-02 18:45:11 +00:00
|
|
|
Summary: Virtual machine needed for libguestfs
|
2019-04-09 09:30:12 +00:00
|
|
|
License: GPL-2.0-only
|
2012-08-16 13:03:20 +00:00
|
|
|
Group: System/Filesystems
|
2012-09-13 20:33:27 +00:00
|
|
|
Provides: libguestfs-data = %{version}
|
|
|
|
Obsoletes: libguestfs-data < %{version}
|
2011-10-02 18:45:11 +00:00
|
|
|
|
2012-09-13 18:07:18 +00:00
|
|
|
%description -n guestfs-data
|
2012-11-14 16:36:27 +00: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 18:45:11 +00:00
|
|
|
|
2017-09-21 09:01:23 +00:00
|
|
|
%package -n guestfs-winsupport
|
2017-09-25 09:23:26 +00:00
|
|
|
Summary: Windows guest support in libguestfs
|
2019-04-09 09:30:12 +00:00
|
|
|
License: GPL-2.0-or-later
|
2017-09-21 09:01:23 +00: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.
|
|
|
|
|
2011-10-02 18:45:11 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for libguestfs
|
2019-04-09 09:30:12 +00:00
|
|
|
License: GPL-2.0-only
|
2017-09-25 09:23:26 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-09-13 18:07:18 +00:00
|
|
|
Requires: libguestfs0 = %{version}
|
2011-10-02 18:45:11 +00: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 18:51:52 +00:00
|
|
|
Summary: Runtime library of libguestfs
|
2019-04-09 09:30:12 +00:00
|
|
|
License: LGPL-2.1-only
|
2017-09-25 09:23:26 +00:00
|
|
|
Group: System/Libraries
|
2016-05-25 12:44:28 +00:00
|
|
|
Requires: %{kvm_binary}
|
2017-11-22 16:23:43 +00:00
|
|
|
Requires: db48-utils
|
2017-10-25 13:25:49 +00:00
|
|
|
Requires: guestfs-data >= %{version}
|
2016-05-25 12:44:28 +00:00
|
|
|
Requires: qemu >= 2.0
|
2016-07-28 10:00:45 +00:00
|
|
|
Requires: qemu-tools
|
2016-05-25 12:44:28 +00:00
|
|
|
Requires: supermin >= 5.1.6
|
2011-10-02 18:45:11 +00: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 12:44:28 +00:00
|
|
|
%package -n virt-v2v
|
|
|
|
Summary: Convert a virtual machine to run on KVM
|
2019-04-09 09:30:12 +00:00
|
|
|
License: GPL-2.0-only
|
2016-05-25 12:44:28 +00:00
|
|
|
Group: System/Management
|
|
|
|
Requires: libguestfs0 = %{version}
|
|
|
|
Requires: qemu-block-ssh
|
2017-07-31 08:31:57 +00:00
|
|
|
# Conflicts with the old perl version
|
|
|
|
Conflicts: virt-v2v <= 0.9.1
|
2016-05-25 12:44:28 +00:00
|
|
|
|
|
|
|
%description -n virt-v2v
|
|
|
|
virt-v2v is a tool for converting and importing virtual machines to
|
2019-04-09 09:30:12 +00:00
|
|
|
libvirt-managed KVM. It can import a variety of guest operating systems
|
2016-07-04 12:20:29 +00:00
|
|
|
from libvirt-managed hosts.
|
2011-10-02 18:45:11 +00:00
|
|
|
|
2016-06-22 19:08:28 +00:00
|
|
|
%if %{with p2v}
|
|
|
|
%package -n virt-p2v
|
2016-07-13 16:00:23 +00:00
|
|
|
Summary: Convert a physical machine to run on KVM
|
2019-04-09 09:30:12 +00:00
|
|
|
License: GPL-2.0-only
|
2016-06-22 19:08:28 +00:00
|
|
|
Group: System/Management
|
2016-07-28 10:00:45 +00:00
|
|
|
Requires: gawk
|
2016-06-22 19:08:28 +00:00
|
|
|
Requires: virt-v2v = %{version}
|
|
|
|
|
|
|
|
%description -n virt-p2v
|
2016-07-04 12:20:29 +00: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 19:08:28 +00:00
|
|
|
%endif
|
|
|
|
|
2011-10-02 18:45:11 +00:00
|
|
|
%prep
|
2013-01-03 13:17:53 +00:00
|
|
|
: _ignore_exclusive_arch '%{?_ignore_exclusive_arch}'
|
2021-07-19 15:33:53 +00:00
|
|
|
%autosetup -p1 -a 789653
|
2011-10-02 18:45:11 +00:00
|
|
|
|
|
|
|
%build
|
2019-09-11 14:47:32 +00:00
|
|
|
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
2016-05-25 12:44:28 +00:00
|
|
|
bison --version
|
2012-11-23 16:48:22 +00:00
|
|
|
# [Bug 789653] sles11 perl obsoletes perl-Pod-Simple unconditionally
|
|
|
|
export PERLLIB=`echo $PWD/Pod-Simple-*/lib`
|
2012-08-16 15:44:26 +00: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 08:27:21 +00:00
|
|
|
# With QEMU in environment qemu and kvm packages are not needed at build time.
|
2013-04-08 18:55:30 +00:00
|
|
|
# With SUPERMIN and SUPERMIN_HELPER in environment, supermin package is not needed at build time.
|
2012-08-16 15:44:26 +00:00
|
|
|
export vmchannel_test=no
|
2014-07-07 08:21:47 +00:00
|
|
|
export QEMU="%{kvm_binary}"
|
2013-04-08 18:55:30 +00:00
|
|
|
export SUPERMIN=supermin
|
|
|
|
export SUPERMIN_HELPER=supermin-helper
|
2012-08-16 09:24:11 +00:00
|
|
|
# for configure macro below
|
2017-09-25 09:23:26 +00:00
|
|
|
export CFLAGS="%{optflags} -Wno-unused"
|
|
|
|
export CXXFLAGS="%{optflags} -Wno-unused"
|
2016-06-22 19:08:28 +00:00
|
|
|
autoreconf -fi
|
|
|
|
|
2012-09-13 12:54:57 +00:00
|
|
|
#
|
2012-08-15 18:06:38 +00:00
|
|
|
%configure \
|
|
|
|
--help || :
|
2013-06-29 16:59:15 +00:00
|
|
|
|
2021-01-11 22:42:53 +00:00
|
|
|
# Defines these if using --with-distro=SUSE with configure
|
|
|
|
export HAVE_RPM_TRUE=
|
|
|
|
export HAVE_RPM_FALSE="#"
|
|
|
|
export HAVE_DPKG_TRUE="#"
|
|
|
|
export HAVE_DPKG_FALSE="#"
|
|
|
|
export HAVE_PACMAN_TRUE="#"
|
|
|
|
export HAVE_PACMAN_FALSE="#"
|
|
|
|
|
2012-08-30 08:27:21 +00:00
|
|
|
#sed -i '1 s@^.*@#!/bin/sh -x@' configure
|
2012-08-15 18:06:38 +00:00
|
|
|
%configure \
|
2012-11-14 16:31:29 +00:00
|
|
|
--docdir=%{guestfs_docdir} \
|
2012-08-29 15:27:00 +00:00
|
|
|
--enable-daemon \
|
|
|
|
--enable-install-daemon \
|
2020-07-09 20:09:34 +00:00
|
|
|
--with-guestfs-path=%{_libdir}/guestfs \
|
2012-08-30 08:27:21 +00:00
|
|
|
--with-qemu=$QEMU \
|
|
|
|
--without-java \
|
2016-05-25 12:44:28 +00:00
|
|
|
--with-supermin-packager-config="$PWD/zypper.priv.conf --use-installed --verbose" \
|
2012-08-15 18:06:38 +00:00
|
|
|
--disable-haskell \
|
|
|
|
--disable-php \
|
2012-08-29 12:41:50 +00:00
|
|
|
%{_configure_fuse} \
|
2012-11-19 16:25:26 +00:00
|
|
|
%{_configure_lua} \
|
2012-08-20 08:58:04 +00:00
|
|
|
%{_configure_ocaml} \
|
2012-08-15 18:06:38 +00:00
|
|
|
%{_configure_perl} \
|
|
|
|
%{_configure_python} \
|
|
|
|
%{_configure_ruby} \
|
|
|
|
--disable-rpath \
|
2017-10-26 07:50:17 +00:00
|
|
|
--disable-static \
|
2021-01-11 22:42:53 +00:00
|
|
|
--with-distro=SUSE
|
|
|
|
|
2016-05-25 12:44:28 +00:00
|
|
|
#Workaround an autotools bug
|
|
|
|
make -j1 -C builder index-parse.c
|
2012-08-31 18:20:22 +00:00
|
|
|
# 'INSTALLDIRS' ensures that perl libs are installed in the vendor dir instead of the site dir
|
2021-05-28 10:52:28 +00:00
|
|
|
build_it() {
|
2012-08-31 18:20:22 +00:00
|
|
|
make \
|
|
|
|
INSTALLDIRS=vendor \
|
2012-09-03 09:19:09 +00:00
|
|
|
LD_RUN_PATH= \
|
2021-05-28 10:52:28 +00:00
|
|
|
"$@"
|
|
|
|
}
|
|
|
|
|
|
|
|
build_it %{?_smp_mflags} || build_it
|
2011-10-02 18:45:11 +00:00
|
|
|
|
|
|
|
%install
|
2016-05-25 12:44:28 +00:00
|
|
|
%makeinstall \
|
|
|
|
INSTALLDIRS=vendor \
|
|
|
|
udevrulesdir=%{udevrulesdir}
|
2017-09-25 09:23:26 +00:00
|
|
|
find %{buildroot} -ls
|
|
|
|
mkdir -p %{buildroot}/%{_datadir}/guestfs
|
|
|
|
cp -avLt %{buildroot}/%{_datadir}/guestfs \
|
2014-02-04 21:58:08 +00:00
|
|
|
%{S:10005} \
|
|
|
|
%{S:10004} \
|
2014-01-22 16:49:58 +00:00
|
|
|
%{S:10003} \
|
2014-01-22 10:15:09 +00:00
|
|
|
%{S:10002} \
|
|
|
|
%{S:10001}
|
2017-09-25 09:23:26 +00:00
|
|
|
chmod 0755 %{buildroot}/%{_datadir}/guestfs/*
|
2012-11-13 15:35:37 +00:00
|
|
|
#remove ocaml bindings files if they are disable via rpm macro
|
2013-03-25 14:22:09 +00:00
|
|
|
%if !%{with ocaml_bindings}
|
2017-09-25 09:23:26 +00:00
|
|
|
rm -rfv %{buildroot}/%{_libdir}/ocaml
|
2012-11-13 15:35:37 +00:00
|
|
|
%endif
|
2017-09-25 09:23:26 +00:00
|
|
|
rm -rfv %{buildroot}/%{guestfs_docdir}
|
2019-08-22 13:39:37 +00:00
|
|
|
rm -rfv %{buildroot}/etc/libguestfs-tools.conf
|
2017-09-25 09:23:26 +00:00
|
|
|
find %{buildroot}/ -type f \( \
|
2012-10-03 15:01:35 +00: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 14:22:09 +00:00
|
|
|
%if %{with perl_bindings}
|
2012-09-13 08:18:28 +00:00
|
|
|
# Delete empty perl bootstrap files
|
2017-09-25 09:23:26 +00:00
|
|
|
find %{buildroot}/ -name "*.bs" -size 0c -print -delete
|
2012-09-03 08:27:00 +00:00
|
|
|
%perl_process_packlist
|
2012-09-05 09:29:37 +00: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 15:29:28 +00:00
|
|
|
%endif
|
2017-08-02 16:04:59 +00:00
|
|
|
|
2018-02-11 20:20:53 +00:00
|
|
|
# Don't package the test harness (yet)
|
|
|
|
rm -rf %{buildroot}/%{_libdir}/ocaml/v2v_test_harness
|
|
|
|
|
2012-09-05 09:29:37 +00:00
|
|
|
#
|
2017-09-25 09:23:26 +00:00
|
|
|
find %{buildroot}/ -name "*.la" -print -delete
|
|
|
|
rm -fv %{buildroot}/%{_libdir}/*.a
|
2012-11-19 17:28:37 +00:00
|
|
|
#
|
2012-08-16 08:35:01 +00:00
|
|
|
touch %{name}.lang
|
2011-10-02 18:45:11 +00:00
|
|
|
%find_lang %{name}
|
2016-05-25 12:44:28 +00:00
|
|
|
|
2017-09-21 09:01:23 +00:00
|
|
|
# Appliance NTFS files
|
|
|
|
# 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 15:32:05 +00:00
|
|
|
cat > %{buildroot}%{_libdir}/guestfs/supermin.d/zz-packages-winsupport << EOF
|
|
|
|
libfuse2
|
|
|
|
hwinfo
|
|
|
|
EOF
|
2011-10-02 18:45:11 +00:00
|
|
|
|
2017-09-25 09:23:26 +00: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 06:26:49 +00:00
|
|
|
popd
|
2017-09-25 09:23:26 +00:00
|
|
|
rm -rf %{buildroot}/tmp
|
2016-07-21 06:26:49 +00:00
|
|
|
|
2016-06-22 19:08:28 +00:00
|
|
|
%if %{with p2v}
|
|
|
|
# Remove the kickstart files from p2v package
|
2017-09-25 09:23:26 +00:00
|
|
|
rm %{buildroot}/%{_datadir}/virt-p2v/p2v.ks.in
|
2016-06-22 19:08:28 +00:00
|
|
|
%endif
|
|
|
|
|
2011-10-02 18:45:11 +00:00
|
|
|
%post -n libguestfs0 -p /sbin/ldconfig
|
|
|
|
%postun -n libguestfs0 -p /sbin/ldconfig
|
|
|
|
|
2014-01-22 10:15:09 +00:00
|
|
|
%files test
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_datadir}/guestfs
|
|
|
|
|
2012-09-13 18:07:18 +00:00
|
|
|
%files -n guestfs-data
|
2011-10-02 18:45:11 +00:00
|
|
|
%defattr(-,root,root)
|
2017-09-21 09:01:23 +00: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
|
|
|
|
|
|
|
|
%files -n guestfs-winsupport
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/guestfs/supermin.d/zz-*winsupport*
|
2011-10-02 18:45:11 +00:00
|
|
|
|
2013-03-25 14:22:09 +00:00
|
|
|
%if %{with ocaml_bindings}
|
2012-09-01 18:26:42 +00: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
|
|
|
|
%{_libdir}/ocaml/guestfs/*.cmx
|
|
|
|
%{_libdir}/ocaml/guestfs/*.cmxa
|
|
|
|
%{_libdir}/ocaml/guestfs/*.mli
|
|
|
|
%endif
|
2012-08-15 18:06:38 +00:00
|
|
|
#
|
2013-03-25 14:22:09 +00:00
|
|
|
%if %{with lua_bindings}
|
2012-11-19 16:25:26 +00:00
|
|
|
%files -n lua-libguestfs
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/lua
|
|
|
|
%endif
|
|
|
|
#
|
2013-03-25 14:22:09 +00:00
|
|
|
%if %{with perl_bindings}
|
2012-09-01 12:15:10 +00:00
|
|
|
%post -n perl-Sys-Guestfs -p /sbin/ldconfig
|
2012-08-15 18:06:38 +00:00
|
|
|
|
2012-09-01 12:15:10 +00:00
|
|
|
%postun -n perl-Sys-Guestfs -p /sbin/ldconfig
|
2012-08-15 18:06:38 +00:00
|
|
|
|
2012-09-05 09:29:37 +00:00
|
|
|
%files -n perl-Sys-Guestfs -f %{name}.files
|
2012-08-15 18:06:38 +00:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%endif
|
|
|
|
#
|
2013-03-25 14:22:09 +00:00
|
|
|
%if %{with python_bindings}
|
2017-08-02 16:04:59 +00:00
|
|
|
|
|
|
|
%files -n python3-libguestfs
|
2012-08-15 18:06:38 +00:00
|
|
|
%defattr(-,root,root)
|
2017-08-02 16:04:59 +00:00
|
|
|
%{python3_sitearch}/*
|
2012-08-15 18:06:38 +00:00
|
|
|
%endif
|
|
|
|
#
|
2013-03-25 14:22:09 +00:00
|
|
|
%if %{with ruby_bindings}
|
2011-10-02 18:45:11 +00:00
|
|
|
%files -n rubygem-libguestfs
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/ruby
|
2012-08-15 18:06:38 +00:00
|
|
|
%endif
|
2011-10-02 18:45:11 +00:00
|
|
|
|
|
|
|
%files -n libguestfs0
|
|
|
|
%defattr(-,root,root)
|
2019-04-17 20:59:11 +00:00
|
|
|
%license COPYING.LIB
|
2011-10-02 18:45:11 +00:00
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/*.so
|
2012-07-02 17:58:52 +00:00
|
|
|
%{_libdir}/pkgconfig/*
|
2011-10-02 18:45:11 +00:00
|
|
|
%{_includedir}/guestfs.h
|
2016-05-25 12:44:28 +00:00
|
|
|
%{_includedir}/guestfs-gobject
|
|
|
|
%{_includedir}/guestfs-gobject.h
|
2012-08-18 14:38:57 +00:00
|
|
|
%{_mandir}/man3/*
|
2011-10-02 18:45:11 +00:00
|
|
|
|
2012-09-13 18:07:18 +00:00
|
|
|
%files -n guestfsd
|
2012-09-01 18:53:34 +00:00
|
|
|
%defattr(-,root,root)
|
2016-05-25 12:44:28 +00:00
|
|
|
%{udevrulesdir}
|
2012-09-01 18:53:34 +00:00
|
|
|
%{_sbindir}/guestfsd
|
2012-10-08 10:07:43 +00:00
|
|
|
%{_mandir}/man8/*
|
2012-09-01 18:53:34 +00:00
|
|
|
|
2012-09-13 18:07:18 +00:00
|
|
|
%files -n guestfs-tools -f %{name}.lang
|
2011-10-02 18:45:11 +00:00
|
|
|
%defattr(-,root,root)
|
2019-04-17 20:59:11 +00:00
|
|
|
%license COPYING
|
2016-05-25 12:44:28 +00:00
|
|
|
%{_sbindir}/libguestfs-make-fixed-appliance
|
2011-10-02 18:45:11 +00:00
|
|
|
%{_bindir}/*
|
2014-03-28 14:19:16 +00: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 14:50:12 +00:00
|
|
|
%if %{with bash_completion}
|
|
|
|
%{_datadir}/bash-completion
|
|
|
|
%endif
|
2012-08-18 14:38:57 +00:00
|
|
|
%{_mandir}/man1/*
|
2013-11-26 10:30:37 +00:00
|
|
|
%{_mandir}/man5/*
|
2011-10-02 18:45:11 +00:00
|
|
|
|
|
|
|
%changelog
|