Initial import (#1750823).
This commit is contained in:
parent
9b07697e4f
commit
666059434e
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/virt-p2v-1.41.0.tar.gz
|
BIN
libguestfs.keyring
Normal file
BIN
libguestfs.keyring
Normal file
Binary file not shown.
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
||||
SHA512 (virt-p2v-1.41.0.tar.gz) = 27bf57d4596d6220aafcbae5570cdf801f97fbb7f18eee1c106e913aebb12d55bbac7b9fad91cec6e07fa4e8316aaa84985727424550dca7876d966f96870a95
|
17
virt-p2v-1.41.0.tar.gz.sig
Normal file
17
virt-p2v-1.41.0.tar.gz.sig
Normal file
@ -0,0 +1,17 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQJFBAABCAAvFiEE93dPsa0HSn6Mh2fqkXOPc+G3aKAFAl13pqARHHJpY2hAYW5u
|
||||
ZXhpYS5vcmcACgkQkXOPc+G3aKDpwA//ZjproxxTiYqqbK/K+1jC1EOmc3CZK3LB
|
||||
8sZY8odqOE6ovmrUFupj7h19Dz2AD2CSL6A2VtojRWmivC1OCx7g8dUCYLkcLntM
|
||||
wu7XK306uOlFnsFk+KESwF5wF/YLuJ9Iwx9dfv4Cad6E+kgSz1pflBPpZvvPd2uu
|
||||
RKRAUWUNPymJi1G41mFSCiiIreJjNZw5t9TkgHA0bodZvUK0Dr7FlfuCBFiM5qXL
|
||||
3yJ6id667HnK9Wn0oqzjKNRXTTdEt901tmI//cc9DXzL/pqL37s04jhzyGvcgXUJ
|
||||
aZTn/dUq3YtTLjUf3QE6uMIcALhT7EZ3AJB9XFKPo7N7G4C3zogDlFKgSCNt+6uv
|
||||
golK/ds8Ye397ubywdN/jkgI92yy90gM7xIeJi+b5mmBgXElB+SkNFIYkFitl8Ll
|
||||
rK6AVHaM4fxpv5EVbse1DZPQJMDmaLIbHiCjJ8rXsZOnti7gXYU6ioCFFnn7bZD8
|
||||
ej2f0gIi/kOtF0ZQqXChhHFAJlyu/pTkUPzd5lwGVyrtVOM4eGqYUWXI7RxEQ022
|
||||
4YlU/kqsshLeBT3IVRafaCDGKNA4b89eOWel0Hfl03IndnDNAZq6skqNMLgqEqlU
|
||||
jfCniaEPI8KXsf3kQNHmpd7sbG7racpdEpkPU0vQitbYnpsrHQdCg0wc5T8Y3nOC
|
||||
P6sFoTIX5pc=
|
||||
=4skD
|
||||
-----END PGP SIGNATURE-----
|
137
virt-p2v.spec
Normal file
137
virt-p2v.spec
Normal file
@ -0,0 +1,137 @@
|
||||
# Verify tarball signature with GPGv2.
|
||||
%global verify_tarball_signature 1
|
||||
|
||||
# So far there are no ELF binaries in this package, so the list
|
||||
# of files in the debuginfo package will be empty, triggering
|
||||
# an RPM failure.
|
||||
%global debug_package %{nil}
|
||||
|
||||
Summary: Convert a physical machine to run on KVM
|
||||
Name: virt-p2v
|
||||
Epoch: 1
|
||||
Version: 1.41.0
|
||||
Release: 1%{?dist}
|
||||
License: GPLv2+
|
||||
|
||||
# virt-p2v works only on x86_64 at the moment. It requires porting
|
||||
# to properly detect the hardware on other architectures, and furthermore
|
||||
# virt-v2v requires porting too.
|
||||
ExclusiveArch: x86_64
|
||||
|
||||
# Source and patches.
|
||||
URL: http://libguestfs.org/
|
||||
Source0: http://download.libguestfs.org/%{name}/%{name}-%{version}.tar.gz
|
||||
%if 0%{verify_tarball_signature}
|
||||
Source1: http://download.libguestfs.org/%{name}/%{name}-%{version}.tar.gz.sig
|
||||
%endif
|
||||
|
||||
# Keyring used to verify tarball signature.
|
||||
%if 0%{verify_tarball_signature}
|
||||
Source2: libguestfs.keyring
|
||||
%endif
|
||||
|
||||
# Basic build requirements.
|
||||
BuildRequires: gcc
|
||||
BuildRequires: perl(Pod::Simple)
|
||||
BuildRequires: perl(Pod::Man)
|
||||
BuildRequires: perl(List::MoreUtils)
|
||||
BuildRequires: /usr/bin/pod2text
|
||||
BuildRequires: libxml2-devel
|
||||
BuildRequires: pcre-devel
|
||||
BuildRequires: bash-completion
|
||||
BuildRequires: xz
|
||||
BuildRequires: gtk3-devel
|
||||
BuildRequires: dbus-devel
|
||||
BuildRequires: m4
|
||||
%if 0%{verify_tarball_signature}
|
||||
BuildRequires: gnupg2
|
||||
%endif
|
||||
|
||||
# Test suite requirements.
|
||||
BuildRequires: /usr/bin/qemu-nbd
|
||||
|
||||
# https://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries#Packages_granted_exceptions
|
||||
Provides: bundled(gnulib)
|
||||
|
||||
|
||||
Requires: gawk
|
||||
Requires: gzip
|
||||
|
||||
# virt-p2v-make-disk runs virt-builder:
|
||||
Requires: libguestfs-tools-c
|
||||
|
||||
# virt-p2v-make-kickstart runs strip:
|
||||
Requires: binutils
|
||||
|
||||
|
||||
# Migrate from the old virt-p2v-maker:
|
||||
Provides: virt-p2v-maker = 1:%{version}-%{release}
|
||||
Obsoletes: virt-p2v-maker < 1:1.41.5
|
||||
|
||||
# The bash completion for p2v were shipped with the others of libguestfs:
|
||||
Obsoletes: libguestfs-bash-completion < 1:1.41.5
|
||||
|
||||
|
||||
%description
|
||||
Virt-p2v converts (virtualizes) physical machines so they can be run
|
||||
as virtual machines under KVM.
|
||||
|
||||
This package contains the tools needed to make a virt-p2v boot CD or
|
||||
USB key which is booted on the physical machine to perform the
|
||||
conversion. You also need virt-v2v installed somewhere else to
|
||||
complete the conversion.
|
||||
|
||||
To convert virtual machines from other hypervisors, see virt-v2v.
|
||||
|
||||
|
||||
%prep
|
||||
%if 0%{verify_tarball_signature}
|
||||
tmphome="$(mktemp -d)"
|
||||
gpgv2 --homedir "$tmphome" --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
|
||||
%endif
|
||||
%setup -q
|
||||
%autopatch -p1
|
||||
|
||||
|
||||
%build
|
||||
%configure \
|
||||
--with-extra="fedora=%{fedora},release=%{release}" \
|
||||
--disable-gnulib-tests
|
||||
|
||||
make V=1 %{?_smp_mflags}
|
||||
|
||||
|
||||
%check
|
||||
|
||||
if ! make check; then
|
||||
cat test-suite.log
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
%install
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
|
||||
# Delete the development man pages.
|
||||
rm $RPM_BUILD_ROOT%{_mandir}/man1/p2v-building.1*
|
||||
rm $RPM_BUILD_ROOT%{_mandir}/man1/p2v-hacking.1*
|
||||
rm $RPM_BUILD_ROOT%{_mandir}/man1/p2v-release-notes.1*
|
||||
|
||||
%files
|
||||
%doc README
|
||||
%license COPYING
|
||||
%{_bindir}/virt-p2v-make-disk
|
||||
%{_bindir}/virt-p2v-make-kickstart
|
||||
%{_bindir}/virt-p2v-make-kiwi
|
||||
%{_datadir}/bash-completion/completions/virt-*
|
||||
%{_datadir}/virt-p2v
|
||||
%{_libdir}/virt-p2v
|
||||
%{_mandir}/man1/virt-p2v-make-disk.1*
|
||||
%{_mandir}/man1/virt-p2v-make-kickstart.1*
|
||||
%{_mandir}/man1/virt-p2v-make-kiwi.1*
|
||||
%{_mandir}/man1/virt-p2v.1*
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Sep 10 2019 Pino Toscano <ptoscano@redhat.com> - 1:1.41.0-1
|
||||
- Initial build, split off src:libguestfs.
|
Loading…
Reference in New Issue
Block a user