Blame SPECS/virt-p2v.spec

50f77b
# Verify tarball signature with GPGv2.
50f77b
%global verify_tarball_signature 1
50f77b
50f77b
# So far there are no ELF binaries in this package, so the list
50f77b
# of files in the debuginfo package will be empty, triggering
50f77b
# an RPM failure.
50f77b
%global debug_package %{nil}
50f77b
50f77b
Summary:       Convert a physical machine to run on KVM
50f77b
Name:          virt-p2v
50f77b
Epoch:         1
50f77b
Version:       1.42.0
50f77b
Release:       4%{?dist}
50f77b
License:       GPLv2+
50f77b
50f77b
# virt-p2v works only on x86_64 at the moment.  It requires porting
50f77b
# to properly detect the hardware on other architectures, and furthermore
50f77b
# virt-v2v requires porting too.
50f77b
ExclusiveArch: x86_64
50f77b
50f77b
# Source and patches.
50f77b
URL:           http://libguestfs.org/
50f77b
Source0:       http://download.libguestfs.org/%{name}/%{name}-%{version}.tar.gz
50f77b
%if 0%{verify_tarball_signature}
50f77b
Source1:       http://download.libguestfs.org/%{name}/%{name}-%{version}.tar.gz.sig
50f77b
%endif
50f77b
50f77b
# Keyring used to verify tarball signature.
50f77b
%if 0%{verify_tarball_signature}
50f77b
Source2:       libguestfs.keyring
50f77b
%endif
50f77b
50f77b
# Basic build requirements.
50f77b
BuildRequires: make
50f77b
BuildRequires: gcc
50f77b
BuildRequires: perl(Pod::Simple)
50f77b
BuildRequires: perl(Pod::Man)
50f77b
BuildRequires: perl(List::MoreUtils)
50f77b
BuildRequires: /usr/bin/pod2text
50f77b
BuildRequires: libxml2-devel
50f77b
BuildRequires: pcre-devel
50f77b
BuildRequires: bash-completion
50f77b
BuildRequires: xz
50f77b
BuildRequires: gtk3-devel
50f77b
BuildRequires: dbus-devel
50f77b
BuildRequires: m4
50f77b
%if 0%{verify_tarball_signature}
50f77b
BuildRequires: gnupg2
50f77b
%endif
50f77b
50f77b
# Test suite requirements.
50f77b
BuildRequires: /usr/bin/qemu-nbd
50f77b
50f77b
# https://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries#Packages_granted_exceptions
50f77b
Provides:      bundled(gnulib)
50f77b
50f77b
50f77b
Requires:      gawk
50f77b
Requires:      gzip
50f77b
50f77b
# virt-p2v-make-disk runs virt-builder:
50f77b
Requires:      libguestfs-tools-c
50f77b
50f77b
# virt-p2v-make-kickstart runs strip:
50f77b
Requires:      binutils
50f77b
50f77b
50f77b
# Migrate from the old virt-p2v-maker:
50f77b
Provides: virt-p2v-maker = 1:%{version}-%{release}
50f77b
Obsoletes: virt-p2v-maker < 1:1.41.5
50f77b
50f77b
# The bash completion for p2v were shipped with the others of libguestfs:
50f77b
Obsoletes: libguestfs-bash-completion < 1:1.41.5
50f77b
50f77b
50f77b
%description
50f77b
Virt-p2v converts (virtualizes) physical machines so they can be run
50f77b
as virtual machines under KVM.
50f77b
50f77b
This package contains the tools needed to make a virt-p2v boot CD or
50f77b
USB key which is booted on the physical machine to perform the
50f77b
conversion.  You also need virt-v2v installed somewhere else to
50f77b
complete the conversion.
50f77b
50f77b
To convert virtual machines from other hypervisors, see virt-v2v.
50f77b
50f77b
50f77b
%prep
50f77b
%if 0%{verify_tarball_signature}
50f77b
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
50f77b
%endif
50f77b
%setup -q
50f77b
%autopatch -p1
50f77b
50f77b
50f77b
%build
50f77b
%configure \
50f77b
  --with-extra="fedora=%{fedora},release=%{release}" \
50f77b
  --disable-gnulib-tests
50f77b
50f77b
make V=1 %{?_smp_mflags}
50f77b
50f77b
50f77b
%check
50f77b
50f77b
if ! make check; then
50f77b
    cat test-suite.log
50f77b
    exit 1
50f77b
fi
50f77b
50f77b
50f77b
%install
50f77b
make DESTDIR=$RPM_BUILD_ROOT install
50f77b
50f77b
# Delete the development man pages.
50f77b
rm $RPM_BUILD_ROOT%{_mandir}/man1/p2v-building.1*
50f77b
rm $RPM_BUILD_ROOT%{_mandir}/man1/p2v-hacking.1*
50f77b
rm $RPM_BUILD_ROOT%{_mandir}/man1/p2v-release-notes.1*
50f77b
50f77b
%files
50f77b
%doc README
50f77b
%license COPYING
50f77b
%{_bindir}/virt-p2v-make-disk
50f77b
%{_bindir}/virt-p2v-make-kickstart
50f77b
%{_bindir}/virt-p2v-make-kiwi
50f77b
%{_datadir}/bash-completion/completions/virt-*
50f77b
%{_datadir}/virt-p2v
50f77b
%{_libdir}/virt-p2v
50f77b
%{_mandir}/man1/virt-p2v-make-disk.1*
50f77b
%{_mandir}/man1/virt-p2v-make-kickstart.1*
50f77b
%{_mandir}/man1/virt-p2v-make-kiwi.1*
50f77b
%{_mandir}/man1/virt-p2v.1*
50f77b
50f77b
50f77b
%changelog
50f77b
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.42.0-4
50f77b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
50f77b
50f77b
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.42.0-3
50f77b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
50f77b
50f77b
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.42.0-2
50f77b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
50f77b
50f77b
* Thu Nov 28 2019 Richard W.M. Jones <rjones@redhat.com> - 1:1.42.0-1
50f77b
- New upstream release 1.42.0.
50f77b
- Use gpgverify macro instead of explicit gpgv2 command.
50f77b
- Move .sig file to sources instead of dist-git.
50f77b
50f77b
* Tue Sep 10 2019 Pino Toscano <ptoscano@redhat.com> - 1:1.41.0-1
50f77b
- Initial build, split off src:libguestfs.