Blame SPECS/virt-p2v.spec

607553
# Verify tarball signature with GPGv2.
607553
%global verify_tarball_signature 1
607553
607553
# So far there are no ELF binaries in this package, so the list
607553
# of files in the debuginfo package will be empty, triggering
607553
# an RPM failure.
607553
%global debug_package %{nil}
607553
607553
Summary:       Convert a physical machine to run on KVM
607553
Name:          virt-p2v
607553
Epoch:         1
607553
Version:       1.42.0
0bce60
Release:       5%{?dist}
607553
License:       GPLv2+
607553
607553
# virt-p2v works only on x86_64 at the moment.  It requires porting
607553
# to properly detect the hardware on other architectures, and furthermore
607553
# virt-v2v requires porting too.
607553
ExclusiveArch: x86_64
607553
607553
# Source and patches.
607553
URL:           http://libguestfs.org/
607553
Source0:       http://download.libguestfs.org/%{name}/%{name}-%{version}.tar.gz
607553
%if 0%{verify_tarball_signature}
607553
Source1:       http://download.libguestfs.org/%{name}/%{name}-%{version}.tar.gz.sig
607553
%endif
607553
607553
# Keyring used to verify tarball signature.
607553
%if 0%{verify_tarball_signature}
607553
Source2:       libguestfs.keyring
607553
%endif
607553
607553
# Basic build requirements.
607553
BuildRequires: gcc
607553
BuildRequires: perl(Pod::Simple)
607553
BuildRequires: perl(Pod::Man)
607553
BuildRequires: perl(List::MoreUtils)
607553
BuildRequires: /usr/bin/pod2text
607553
BuildRequires: libxml2-devel
607553
BuildRequires: pcre-devel
607553
BuildRequires: bash-completion
607553
BuildRequires: xz
607553
BuildRequires: gtk3-devel
607553
BuildRequires: dbus-devel
607553
BuildRequires: m4
607553
%if 0%{verify_tarball_signature}
607553
BuildRequires: gnupg2
607553
%endif
607553
607553
# Test suite requirements.
607553
BuildRequires: /usr/bin/qemu-nbd
607553
607553
%description
0bce60
Virt-p2v converts (virtualizes) physical machines so they can be run
0bce60
as virtual machines under KVM.
0bce60
0bce60
This package contains the tools needed to make a virt-p2v boot CD or
0bce60
USB key which is booted on the physical machine to perform the
0bce60
conversion.  You also need virt-v2v installed somewhere else to
0bce60
complete the conversion.
0bce60
0bce60
To convert virtual machines from other hypervisors, see virt-v2v.
607553
607553
607553
%package maker
607553
Summary:       Convert a physical machine to run on KVM
607553
607553
# https://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries#Packages_granted_exceptions
607553
Provides:      bundled(gnulib)
607553
607553
607553
Requires:      gawk
607553
Requires:      gzip
607553
Requires:      xz
607553
607553
# virt-p2v-make-disk runs virt-builder:
607553
Requires:      libguestfs-tools-c
607553
607553
# virt-p2v-make-kickstart runs strip:
607553
Requires:      binutils
607553
607553
607553
# The bash completion for p2v were shipped with the others of libguestfs:
607553
Obsoletes: libguestfs-bash-completion < 1:1.38.4-15
607553
607553
607553
%description maker
607553
Virt-p2v converts (virtualizes) physical machines so they can be run
607553
as virtual machines under KVM.
607553
607553
This package contains the tools needed to make a virt-p2v boot CD or
607553
USB key which is booted on the physical machine to perform the
607553
conversion.  You also need virt-v2v installed somewhere else to
607553
complete the conversion.
607553
607553
To convert virtual machines from other hypervisors, see virt-v2v.
607553
607553
607553
%prep
607553
%if 0%{verify_tarball_signature}
607553
tmphome="$(mktemp -d)"
607553
gpgv2 --homedir "$tmphome" --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
607553
%endif
607553
%setup -q
607553
%autopatch -p1
607553
607553
607553
%build
607553
%configure \
0bce60
  --with-extra="rhel=%{rhel},release=%{release}" \
607553
  --disable-gnulib-tests
607553
607553
make V=1 %{?_smp_mflags}
607553
607553
607553
%check
607553
607553
if ! make check; then
607553
    cat test-suite.log
607553
    exit 1
607553
fi
607553
607553
607553
%install
607553
make DESTDIR=$RPM_BUILD_ROOT install
607553
607553
# Delete the development man pages.
607553
rm $RPM_BUILD_ROOT%{_mandir}/man1/p2v-building.1*
607553
rm $RPM_BUILD_ROOT%{_mandir}/man1/p2v-hacking.1*
607553
rm $RPM_BUILD_ROOT%{_mandir}/man1/p2v-release-notes.1*
607553
0bce60
# Delete kiwi tools.
0bce60
rm $RPM_BUILD_ROOT%{_bindir}/virt-p2v-make-kiwi
0bce60
rm $RPM_BUILD_ROOT%{_mandir}/man1/virt-p2v-make-kiwi.1*
0bce60
rm $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/virt-p2v-make-kiwi
0bce60
607553
%files maker
607553
%doc README
607553
%license COPYING
607553
%{_bindir}/virt-p2v-make-disk
607553
%{_bindir}/virt-p2v-make-kickstart
607553
%{_datadir}/bash-completion/completions/virt-*
607553
%{_datadir}/virt-p2v
607553
%{_libdir}/virt-p2v
607553
%{_mandir}/man1/virt-p2v-make-disk.1*
607553
%{_mandir}/man1/virt-p2v-make-kickstart.1*
607553
%{_mandir}/man1/virt-p2v.1*
607553
607553
607553
%changelog
0bce60
* Fri Mar 06 2020 Pino Toscano <ptoscano@redhat.com> - 1:1.42.0-5
0bce60
- Remove virt-p2v-make-kiwi, as it is not supported, and was not
0bce60
  shipped already.
0bce60
0bce60
* Fri Feb 21 2020 Pino Toscano <ptoscano@redhat.com> - 1:1.42.0-4
0bce60
- Copy %description also for the source, so tools are less confused
0bce60
  about it.
0bce60
- Fix the "extra" addition to the version to refer to rhel.
0bce60
607553
* Wed Dec 11 2019 Pino Toscano <ptoscano@redhat.com> - 1:1.42.0-3
607553
- Explicitly require xz, as it is used by all the tools to unpack the
607553
  virt-p2v binary.
607553
607553
* Thu Dec 05 2019 Pino Toscano <ptoscano@redhat.com> - 1:1.42.0-2
607553
- Adjust the version of libguestfs-bash-completion that drops the bash
607553
  completion scripts
607553
607553
* Thu Nov 28 2019 Pino Toscano <ptoscano@redhat.com> - 1:1.42.0-1
607553
- Initial build, split off src:libguestfs.