2019-09-17 16:02:49 +00:00
|
|
|
# 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
|
2022-08-03 10:44:47 +00:00
|
|
|
Version: 1.42.2
|
|
|
|
Release: 1%{?dist}
|
2019-09-17 16:02:49 +00:00
|
|
|
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.
|
2021-01-12 01:35:39 +00:00
|
|
|
BuildRequires: make
|
2019-09-17 16:02:49 +00:00
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: perl(Pod::Simple)
|
|
|
|
BuildRequires: perl(Pod::Man)
|
|
|
|
BuildRequires: perl(List::MoreUtils)
|
|
|
|
BuildRequires: /usr/bin/pod2text
|
|
|
|
BuildRequires: libxml2-devel
|
2022-08-03 10:44:47 +00:00
|
|
|
BuildRequires: pcre2-devel
|
2019-09-17 16:02:49 +00:00
|
|
|
BuildRequires: bash-completion
|
|
|
|
BuildRequires: xz
|
|
|
|
BuildRequires: gtk3-devel
|
|
|
|
BuildRequires: dbus-devel
|
|
|
|
BuildRequires: m4
|
|
|
|
%if 0%{verify_tarball_signature}
|
|
|
|
BuildRequires: gnupg2
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# Test suite requirements.
|
2022-05-10 09:08:31 +00:00
|
|
|
BuildRequires: nbdkit
|
2019-09-17 16:02:49 +00:00
|
|
|
|
|
|
|
Requires: gawk
|
|
|
|
Requires: gzip
|
|
|
|
|
|
|
|
# virt-p2v-make-disk runs virt-builder:
|
2022-08-03 10:44:47 +00:00
|
|
|
Requires: guestfs-tools
|
2019-09-17 16:02:49 +00:00
|
|
|
|
|
|
|
# virt-p2v-make-kickstart runs strip:
|
|
|
|
Requires: binutils
|
|
|
|
|
|
|
|
|
|
|
|
%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}
|
2019-11-28 13:12:29 +00:00
|
|
|
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
2019-09-17 16:02:49 +00:00
|
|
|
%endif
|
2022-05-10 08:54:42 +00:00
|
|
|
%autosetup -p1
|
2019-09-17 16:02:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
2022-05-10 08:54:42 +00:00
|
|
|
--with-extra="fedora=%{fedora},release=%{release}"
|
2019-09-17 16:02:49 +00:00
|
|
|
|
2022-05-10 08:54:42 +00:00
|
|
|
%make_build
|
2019-09-17 16:02:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
if ! make check; then
|
|
|
|
cat test-suite.log
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
2022-05-10 08:54:42 +00:00
|
|
|
%make_install
|
2019-09-17 16:02:49 +00:00
|
|
|
|
|
|
|
# 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*
|
|
|
|
|
2022-05-10 08:54:42 +00:00
|
|
|
|
2019-09-17 16:02:49 +00:00
|
|
|
%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
|
2022-08-03 10:44:47 +00:00
|
|
|
* Wed Aug 03 2022 Richard W.M. Jones <rjones@redhat.com> - 1:1.42.2-1
|
|
|
|
- New upstream release 1.42.2
|
|
|
|
- Uses PCRE2 instead of PCRE.
|
|
|
|
- Remove Obsolete/Provides etc used for upgrades from Fedora 31.
|
|
|
|
- libguestfs-tools-c was renamed to guestfs-tools in Fedora 34.
|
|
|
|
|
2022-07-23 11:59:22 +00:00
|
|
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.42.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-05-10 08:54:42 +00:00
|
|
|
* Tue May 10 2022 Richard W.M. Jones <rjones@redhat.com> - 1:1.42.1-1
|
|
|
|
- New upstream release 1.42.1
|
|
|
|
- gnulib removed upstream.
|
|
|
|
- Some specfile modernization.
|
|
|
|
|
2022-01-22 04:04:07 +00:00
|
|
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.42.0-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-07-23 20:33:24 +00:00
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.42.0-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-01-27 23:08:47 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.42.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-07-29 13:47:09 +00:00
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.42.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-01-31 03:15:02 +00:00
|
|
|
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.42.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-11-28 13:12:29 +00:00
|
|
|
* Thu Nov 28 2019 Richard W.M. Jones <rjones@redhat.com> - 1:1.42.0-1
|
|
|
|
- New upstream release 1.42.0.
|
|
|
|
- Use gpgverify macro instead of explicit gpgv2 command.
|
|
|
|
- Move .sig file to sources instead of dist-git.
|
|
|
|
|
2019-09-17 16:02:49 +00:00
|
|
|
* Tue Sep 10 2019 Pino Toscano <ptoscano@redhat.com> - 1:1.41.0-1
|
|
|
|
- Initial build, split off src:libguestfs.
|