commit 711dd46ad3ce67521039d5d95291fe9528c98ef5 Author: MSVSphere Packaging Team Date: Tue Nov 26 19:37:42 2024 +0300 import virt-p2v-1.42.3-6.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9eec91b --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/libguestfs.keyring +SOURCES/virt-p2v-1.42.3.tar.gz diff --git a/.virt-p2v.metadata b/.virt-p2v.metadata new file mode 100644 index 0000000..fc2d1c7 --- /dev/null +++ b/.virt-p2v.metadata @@ -0,0 +1,2 @@ +1bbc40f501a7fef9eef2a39b701a71aee2fea7c4 SOURCES/libguestfs.keyring +2d78f862378cf77368be92fcaa508e02ce48f1c4 SOURCES/virt-p2v-1.42.3.tar.gz diff --git a/SOURCES/virt-p2v-1.42.3.tar.gz.sig b/SOURCES/virt-p2v-1.42.3.tar.gz.sig new file mode 100644 index 0000000..8c4e6aa --- /dev/null +++ b/SOURCES/virt-p2v-1.42.3.tar.gz.sig @@ -0,0 +1,17 @@ +-----BEGIN PGP SIGNATURE----- + +iQJFBAABCAAvFiEE93dPsa0HSn6Mh2fqkXOPc+G3aKAFAmNFdSgRHHJpY2hAYW5u +ZXhpYS5vcmcACgkQkXOPc+G3aKBPjA/+O+XKn0dVaS4SjZxkRl9Rv/W0yD0GuK9O +yZd2AW1jXoVqixCzVCBt1qtSiIlUTrnM4vghvVZ6ZpVahwWOec8FFvb10S5WEzTx +rYOcQlBoL484clcW/guOeqLpzo2oBW8FRZBnZa+1XUCVkeF3AR9guNzW0KKi9wmm +FlBIFCBWdvHXF2CllCPULrYwArzaA71bDQUkTx13R54nGlyKPLfzraHd/8UxdrWq +hdbOJTYzoVS1GjSdEmC3r/HOcpCZpJmXRzj1Knx2blyfP9c9WFSftrlczBEWjE+p +P5d9HC5HSHBIHN3rTSpoQ4BPkKxEaI9+Q/Rd3LMxeX0anUhSYiALZdmcdFb4Ovj+ +JV02+nNlAosvzyWzv1LPl9H3XnGh9Y6L5i8cmbBQ6AT2jBIm099mJcFIO6mycRgC +8nQG8ddq/U25az5jQ7Lw/EHfq0+YN1jDs/vZBQTAdvphkirAgZkW6dDa//jEoKym +3yg3WfxCVRSZqcXKeGiHltPIUEMSydGTz1ob6vX0h4baTpq3jHe6TySYYk3CE9ST +Kr6GwP8A9ng1jhdc6kUrdNOEisJz7W/WjgIrsnKzZEebLhOI9LIHjt91HRnE5jZC +kaw/vGL873ROu9648ysFfuhaiN5wrnhXIOBsfUb/DHrAVPzCu8E0YSxkbtlGzams +ziP0Np5EsGI= +=04k8 +-----END PGP SIGNATURE----- diff --git a/SPECS/virt-p2v.spec b/SPECS/virt-p2v.spec new file mode 100644 index 0000000..f52f84d --- /dev/null +++ b/SPECS/virt-p2v.spec @@ -0,0 +1,175 @@ +# 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.3 +Release: 6%{?dist} +License: GPL-2.0-or-later AND LGPL-2.0-or-later + +# 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: make +BuildRequires: gcc +BuildRequires: perl(Pod::Simple) +BuildRequires: perl(Pod::Man) +BuildRequires: perl(List::MoreUtils) +BuildRequires: /usr/bin/pod2text +BuildRequires: libxml2-devel +BuildRequires: pcre2-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: nbdkit + +Requires: gawk +Requires: gzip + +# virt-p2v-make-disk runs virt-builder: +Requires: guestfs-tools + +# 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} +%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' +%endif +%autosetup -p1 + + +%build +%configure \ + --with-extra="fedora=%{fedora},release=%{release}" + +%make_build + + +%check +if ! make check; then + cat test-suite.log + exit 1 +fi + + +%install +%make_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 +* Mon Jun 24 2024 Troy Dawson - 1:1.42.3-6 +- Bump release for June 2024 mass rebuild + +* Sat Jan 27 2024 Fedora Release Engineering - 1:1.42.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Jul 22 2023 Fedora Release Engineering - 1:1.42.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Mon Jun 05 2023 Richard W.M. Jones - 1:1.42.3-3 +- Migrated to SPDX license + +* Sat Jan 21 2023 Fedora Release Engineering - 1:1.42.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Tue Oct 11 2022 Richard W.M. Jones - 1:1.42.3-1 +- New upstream release 1.42.3 + +* Wed Aug 03 2022 Richard W.M. Jones - 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. + +* Sat Jul 23 2022 Fedora Release Engineering - 1:1.42.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Tue May 10 2022 Richard W.M. Jones - 1:1.42.1-1 +- New upstream release 1.42.1 +- gnulib removed upstream. +- Some specfile modernization. + +* Sat Jan 22 2022 Fedora Release Engineering - 1:1.42.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 1:1.42.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 1:1.42.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* 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.