From a2e9a6171182445ba27473c2ed1075048da2de33 Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Tue, 20 Oct 2020 08:27:02 -0700 Subject: [PATCH] RHEL 9.0.0 Alpha bootstrap The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/virt-p2v#519d2a36a8c5ca411757357bb452828b0a3bf0d9 --- .gitignore | 3 + README.md | 3 + libguestfs.keyring | Bin 0 -> 2823 bytes sources | 2 + virt-p2v.spec | 147 +++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 155 insertions(+) create mode 100644 README.md create mode 100644 libguestfs.keyring create mode 100644 sources create mode 100644 virt-p2v.spec diff --git a/.gitignore b/.gitignore index e69de29..cee61d8 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,3 @@ +/virt-p2v-1.41.0.tar.gz +/virt-p2v-1.42.0.tar.gz +/virt-p2v-1.42.0.tar.gz.sig diff --git a/README.md b/README.md new file mode 100644 index 0000000..b6a979b --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# virt-p2v + +The virt-p2v package \ No newline at end of file diff --git a/libguestfs.keyring b/libguestfs.keyring new file mode 100644 index 0000000000000000000000000000000000000000..bb3eb5537b7c398a10b7e2b26ca00af011d1a73e GIT binary patch literal 2823 zcma*oXEYm(0><$qB7$nPViakqqNG)u+FR_sQdc{DRukabMCqKo^wCkug~Y-bN=ZdDzIiUZ#$40(0^!V6(C-KH79?s=m3cGghyAo z1|dJMm+eiM>Vb)QYy4I#;Xu&Z^B~&YVZ!Whl6YA`T0fY9jOhHw z+Y;*35;Jx(8F=n(3o5j*bNOr3S) zCOp0NiMsuh^>)x<=&*u##pa25u9;{ZZc=y@%)4CE$a$A}A*UQGOC-D04;}dULUfuV z)^qc0R62lhwbK5pAcC9hk{LK2KJQ&jd|seog-6NxEVm_4X)8y7DYjWwHK2eI$lRku zmeq4z0zkjTs4a++z4bu{k^$N0>0MkG^k~>}tQQd>eap=1)cK}mGM_yYhtaPw3u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T+VX2372^TDbVX-o_tL$y zfM36H?e10e)+AoUd;Ar?$c*rS7DBr*maRLN9n|78-|^BE1bP6RW%uVWO+Eh#-^#2q zU1o2OGeEnJe`vc1&bKa=PK5K>MrUoy*4Di*xQ~Hr8YK=ae$S@5;A6m-C*^N>H6QiE z+Z~%eGDDNK_vktjC^nxMUEXZReG3G^_uml$%lONCD~B)o&u@Ar}fQG5;T#E%^U88SI<&z@~yy|THGE%E1PbI z?F^r&ZTiw{?xi@{*DAy6C4z2C)^HACOJ!QTq)OKNiy$F_ao^+$ziBa!`o*phmK_>s za)NY_nGb%M+@h1zb zdfh2x>9W=SlC19X_yB5T8jPIITr(IuajP65y|~iU>niq=mN|NI*0)B&ixQw`dlhcIFP)G9WnV`}K3C{4m}cRO<&1vJ^K5DAVUo*Z<@ zunwMvxU0NO;ORRnw0-LRLg3}q^7?BlO`eOGFQ3pD@ literal 0 HcmV?d00001 diff --git a/sources b/sources new file mode 100644 index 0000000..b88ac9a --- /dev/null +++ b/sources @@ -0,0 +1,2 @@ +SHA512 (virt-p2v-1.42.0.tar.gz) = 215906997bd63fe9c76c599036ca204078ce4f059f87a4f1f1422d9f844156790eafa7654692776d4e5ba9936edb1042b485b300baa1bbc2a8ecb645bae04b80 +SHA512 (virt-p2v-1.42.0.tar.gz.sig) = cc1047fa1ce53ee4d997cc9eae66fdabb66ba6414392ac585ea794547e76e88b245484e5b452a899f26483d6bfcfa7a71bb9c9e4e676d1914708508bb811d6f4 diff --git a/virt-p2v.spec b/virt-p2v.spec new file mode 100644 index 0000000..d6f0ddb --- /dev/null +++ b/virt-p2v.spec @@ -0,0 +1,147 @@ +# 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.42.0 +Release: 3%{?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} +%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{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 +* Wed Jul 29 2020 Fedora Release Engineering - 1:1.42.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jan 31 2020 Fedora Release Engineering - 1:1.42.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Nov 28 2019 Richard W.M. Jones - 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. + +* Tue Sep 10 2019 Pino Toscano - 1:1.41.0-1 +- Initial build, split off src:libguestfs.