6660594
# Verify tarball signature with GPGv2.
6660594
%global verify_tarball_signature 1
6660594
6660594
# So far there are no ELF binaries in this package, so the list
6660594
# of files in the debuginfo package will be empty, triggering
6660594
# an RPM failure.
6660594
%global debug_package %{nil}
6660594
6660594
Summary:       Convert a physical machine to run on KVM
6660594
Name:          virt-p2v
6660594
Epoch:         1
210e48d
Version:       1.42.2
210e48d
Release:       1%{?dist}
6660594
License:       GPLv2+
6660594
6660594
# virt-p2v works only on x86_64 at the moment.  It requires porting
6660594
# to properly detect the hardware on other architectures, and furthermore
6660594
# virt-v2v requires porting too.
6660594
ExclusiveArch: x86_64
6660594
6660594
# Source and patches.
6660594
URL:           http://libguestfs.org/
6660594
Source0:       http://download.libguestfs.org/%{name}/%{name}-%{version}.tar.gz
6660594
%if 0%{verify_tarball_signature}
6660594
Source1:       http://download.libguestfs.org/%{name}/%{name}-%{version}.tar.gz.sig
6660594
%endif
6660594
6660594
# Keyring used to verify tarball signature.
6660594
%if 0%{verify_tarball_signature}
6660594
Source2:       libguestfs.keyring
6660594
%endif
6660594
6660594
# Basic build requirements.
399efb0
BuildRequires: make
6660594
BuildRequires: gcc
6660594
BuildRequires: perl(Pod::Simple)
6660594
BuildRequires: perl(Pod::Man)
6660594
BuildRequires: perl(List::MoreUtils)
6660594
BuildRequires: /usr/bin/pod2text
6660594
BuildRequires: libxml2-devel
210e48d
BuildRequires: pcre2-devel
6660594
BuildRequires: bash-completion
6660594
BuildRequires: xz
6660594
BuildRequires: gtk3-devel
6660594
BuildRequires: dbus-devel
6660594
BuildRequires: m4
6660594
%if 0%{verify_tarball_signature}
6660594
BuildRequires: gnupg2
6660594
%endif
6660594
6660594
# Test suite requirements.
a4478b6
BuildRequires: nbdkit
6660594
6660594
Requires:      gawk
6660594
Requires:      gzip
6660594
6660594
# virt-p2v-make-disk runs virt-builder:
210e48d
Requires:      guestfs-tools
6660594
6660594
# virt-p2v-make-kickstart runs strip:
6660594
Requires:      binutils
6660594
6660594
6660594
%description
6660594
Virt-p2v converts (virtualizes) physical machines so they can be run
6660594
as virtual machines under KVM.
6660594
6660594
This package contains the tools needed to make a virt-p2v boot CD or
6660594
USB key which is booted on the physical machine to perform the
6660594
conversion.  You also need virt-v2v installed somewhere else to
6660594
complete the conversion.
6660594
6660594
To convert virtual machines from other hypervisors, see virt-v2v.
6660594
6660594
6660594
%prep
6660594
%if 0%{verify_tarball_signature}
ac94f9e
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
6660594
%endif
26b2c3d
%autosetup -p1
6660594
6660594
6660594
%build
6660594
%configure \
26b2c3d
  --with-extra="fedora=%{fedora},release=%{release}"
6660594
26b2c3d
%make_build
6660594
6660594
6660594
%check
6660594
if ! make check; then
6660594
    cat test-suite.log
6660594
    exit 1
6660594
fi
6660594
6660594
6660594
%install
26b2c3d
%make_install
6660594
6660594
# Delete the development man pages.
6660594
rm $RPM_BUILD_ROOT%{_mandir}/man1/p2v-building.1*
6660594
rm $RPM_BUILD_ROOT%{_mandir}/man1/p2v-hacking.1*
6660594
rm $RPM_BUILD_ROOT%{_mandir}/man1/p2v-release-notes.1*
6660594
26b2c3d
6660594
%files
6660594
%doc README
6660594
%license COPYING
6660594
%{_bindir}/virt-p2v-make-disk
6660594
%{_bindir}/virt-p2v-make-kickstart
6660594
%{_bindir}/virt-p2v-make-kiwi
6660594
%{_datadir}/bash-completion/completions/virt-*
6660594
%{_datadir}/virt-p2v
6660594
%{_libdir}/virt-p2v
6660594
%{_mandir}/man1/virt-p2v-make-disk.1*
6660594
%{_mandir}/man1/virt-p2v-make-kickstart.1*
6660594
%{_mandir}/man1/virt-p2v-make-kiwi.1*
6660594
%{_mandir}/man1/virt-p2v.1*
6660594
6660594
6660594
%changelog
210e48d
* Wed Aug 03 2022 Richard W.M. Jones <rjones@redhat.com> - 1:1.42.2-1
210e48d
- New upstream release 1.42.2
210e48d
- Uses PCRE2 instead of PCRE.
210e48d
- Remove Obsolete/Provides etc used for upgrades from Fedora 31.
210e48d
- libguestfs-tools-c was renamed to guestfs-tools in Fedora 34.
210e48d
3dd7098
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.42.1-2
3dd7098
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
3dd7098
26b2c3d
* Tue May 10 2022 Richard W.M. Jones <rjones@redhat.com> - 1:1.42.1-1
26b2c3d
- New upstream release 1.42.1
26b2c3d
- gnulib removed upstream.
26b2c3d
- Some specfile modernization.
26b2c3d
66b9fa8
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.42.0-6
66b9fa8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
66b9fa8
b9b7dd0
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.42.0-5
b9b7dd0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
b9b7dd0
a60e9be
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.42.0-4
a60e9be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
a60e9be
519d2a3
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.42.0-3
519d2a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
519d2a3
00cfb02
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.42.0-2
00cfb02
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
00cfb02
ac94f9e
* Thu Nov 28 2019 Richard W.M. Jones <rjones@redhat.com> - 1:1.42.0-1
ac94f9e
- New upstream release 1.42.0.
ac94f9e
- Use gpgverify macro instead of explicit gpgv2 command.
ac94f9e
- Move .sig file to sources instead of dist-git.
ac94f9e
6660594
* Tue Sep 10 2019 Pino Toscano <ptoscano@redhat.com> - 1:1.41.0-1
6660594
- Initial build, split off src:libguestfs.