diff --git a/sources b/sources index 8fc8fc9..55ec579 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.10.0.tar.gz) = 035f2181c1cc5f482e96d3e21b513b95939ca224d71ac6ad938842d5af5d60ef07db1600d2ccb609dc2042b1c74088f6f39ffbe595cb51e80278ecb50c314515 -SHA512 (virt-v2v-2.10.0.tar.gz.sig) = cb6301224ef00577a9cd0fc8fa504e583eb447341bd3849e6854f2d78ae72ca39bca68b70f30efd3d1d64480acf161c5e4bc9ba943595ef4dd2a654c3268aa66 +SHA512 (virt-v2v-2.8.1.tar.gz) = 70da68563e870955ca013e6d55be8f56ad65dde6f84909f06fae7ab928227a566e8949bb90e839fffce2ad4ebc604b2cfa1c5547394c8d1bd092bb95f9e6435c +SHA512 (virt-v2v-2.8.1.tar.gz.sig) = 1236dd21272c53dbafb4cd0ac4177bcf73600ff52ea8949b878793eafb1829a67880043c6e03c2d82c691d986ea8a7daa60508f4ae22345c961a939b3b6a43b0 diff --git a/virt-v2v.spec b/virt-v2v.spec index 9309b31..99ee1a7 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -2,49 +2,11 @@ %global verify_tarball_signature 1 # The source directory. -%global source_directory 2.10-stable - -%if !0%{?rhel} -# Optional features enabled in this build for Fedora. -%global with_block_driver 1 -%global with_glance 1 -%global with_ovirt 1 -%global with_xen 1 - -# libguestfs hasn't been built on i686 for a while since there is no -# kernel built for this architecture any longer and libguestfs rather -# fundamentally depends on the kernel. Therefore we must exclude this -# arch. Note there is no bug filed for this because we do not ever -# expect that libguestfs or virt-v2v will be available on i686 so -# there is nothing that needs fixing. -ExcludeArch: %{ix86} - -# Version extra string for Fedora. -%global version_extra fedora=%{fedora},release=%{release} - -%else - -# Optional features enabled in this build for RHEL. -%global with_block_driver 0 -%global with_glance 0 -%global with_ovirt 0 -%global with_xen 0 - -# Architectures where virt-v2v is shipped on RHEL: -# -# not on aarch64 because it is not useful there -# not on %%{power64} because of RHBZ#1287826 -# not on s390x because it is not useful there -ExclusiveArch: x86_64 - -# Version extra string for RHEL. -%global version_extra rhel=%{rhel},release=%{release} - -%endif +%global source_directory 2.8-stable Name: virt-v2v Epoch: 1 -Version: 2.10.0 +Version: 2.8.1 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -61,25 +23,36 @@ Source2: libguestfs.keyring # Maintainer script which helps with handling patches. Source3: copy-patches.sh +%if !0%{?rhel} +# libguestfs hasn't been built on i686 for a while since there is no +# kernel built for this architecture any longer and libguestfs rather +# fundamentally depends on the kernel. Therefore we must exclude this +# arch. Note there is no bug filed for this because we do not ever +# expect that libguestfs or virt-v2v will be available on i686 so +# there is nothing that needs fixing. +ExcludeArch: %{ix86} +%else +# Architectures where virt-v2v is shipped on RHEL: +# +# not on aarch64 because it is not useful there +# not on %%{power64} because of RHBZ#1287826 +# not on s390x because it is not useful there +ExclusiveArch: x86_64 +%endif + BuildRequires: autoconf, automake, libtool BuildRequires: make BuildRequires: /usr/bin/pod2man -BuildRequires: perl(Pod::Usage) -BuildRequires: perl(Getopt::Long) -BuildRequires: perl(IPC::Run3) BuildRequires: gcc BuildRequires: ocaml >= 4.08 -BuildRequires: libguestfs-devel >= 1:1.58.0-1 +BuildRequires: libguestfs-devel >= 1:1.56.0-1 BuildRequires: augeas-devel -BuildRequires: bash-completion -%if 0%{?fedora} || 0%{?rhel} >= 11 -BuildRequires: bash-completion-devel -%endif +BuildRequires: bash-completion, bash-completion-devel BuildRequires: file BuildRequires: gettext-devel BuildRequires: json-c-devel -BuildRequires: libnbd-devel >= 1.24 +BuildRequires: libnbd-devel >= 1.14 BuildRequires: libosinfo-devel BuildRequires: libvirt-daemon-kvm BuildRequires: libvirt-devel @@ -103,10 +76,12 @@ BuildRequires: glibc-utils BuildRequires: %{_bindir}/qemu-nbd BuildRequires: %{_bindir}/nbdcopy BuildRequires: %{_bindir}/nbdinfo -BuildRequires: nbdkit-server >= 1.46.1 BuildRequires: nbdkit-file-plugin BuildRequires: nbdkit-null-plugin -BuildRequires: nbdkit-cow-filter +%if !0%{?rhel} +BuildRequires: nbdkit-python-plugin +%endif +BuildRequires: nbdkit-cow-filter >= 1.28.3-1.el9 BuildRequires: mingw-srvany-redistributable >= 1.1-6 %ifarch x86_64 BuildRequires: glibc-static @@ -116,8 +91,8 @@ BuildRequires: glibc-static BuildRequires: gnupg2 %endif -Requires: libguestfs%{?_isa} >= 1:1.58.0-1 -Requires: guestfs-tools >= 1.54 +Requires: libguestfs%{?_isa} >= 1:1.55.12-1 +Requires: guestfs-tools >= 1.49.7-1 # XFS is the default filesystem in Fedora and RHEL. Requires: libguestfs-xfs @@ -143,19 +118,22 @@ Requires: edk2-ovmf Requires: edk2-aarch64 %endif -%if !%{with_ovirt} +%if !0%{?rhel} Requires: /usr/bin/python3 +%elif %{?rhel} == 9 +Requires: platform-python +# Python is not needed by RHEL 10. %endif -Requires: libnbd >= 1.24 +Requires: libnbd >= 1.10 Requires: %{_bindir}/qemu-nbd Requires: %{_bindir}/nbdcopy Requires: %{_bindir}/nbdinfo -Requires: nbdkit-server >= 1.46.1 +Requires: nbdkit-server >= 1.28.3-1.el9 Requires: nbdkit-curl-plugin Requires: nbdkit-file-plugin Requires: nbdkit-nbd-plugin Requires: nbdkit-null-plugin -%if !%{with_ovirt} +%if !0%{?rhel} Requires: nbdkit-python-plugin %endif Requires: nbdkit-ssh-plugin @@ -163,9 +141,9 @@ Requires: nbdkit-ssh-plugin Requires: nbdkit-vddk-plugin %endif Requires: nbdkit-blocksize-filter -Requires: nbdkit-count-filter -Requires: nbdkit-cow-filter +Requires: nbdkit-cow-filter >= 1.28.3-1.el9 Requires: nbdkit-multi-conn-filter +Requires: nbdkit-noextents-filter Requires: nbdkit-rate-filter Requires: nbdkit-retry-filter @@ -234,27 +212,11 @@ autoreconf -fiv %build %configure \ -%if %{with_block_driver} - --enable-block-driver \ +%if !0%{?rhel} + --with-extra="fedora=%{fedora},release=%{release}" \ %else - --disable-block-driver \ + --with-extra="rhel=%{rhel},release=%{release}" \ %endif -%if %{with_glance} - --enable-glance \ -%else - --disable-glance \ -%endif -%if %{with_ovirt} - --enable-ovirt \ -%else - --disable-ovirt \ -%endif -%if %{with_xen} - --enable-xen \ -%else - --disable-xen \ -%endif - --with-extra="%{version_extra}" make V=1 %{?_smp_mflags} @@ -271,6 +233,9 @@ find $RPM_BUILD_ROOT -name '*.la' -delete mkdir -p $RPM_BUILD_ROOT%{_libexecdir} mv $RPM_BUILD_ROOT%{_bindir}/virt-v2v-in-place $RPM_BUILD_ROOT%{_libexecdir}/ rm $RPM_BUILD_ROOT%{_mandir}/man1/virt-v2v-in-place.1* +# these are also not supported on RHEL +rm -f $RPM_BUILD_ROOT%{_mandir}/man1/virt-v2v-input-xen.1* +rm -f $RPM_BUILD_ROOT%{_mandir}/man1/virt-v2v-output-ovirt.1* %endif # Find locale files. @@ -278,23 +243,6 @@ rm $RPM_BUILD_ROOT%{_mandir}/man1/virt-v2v-in-place.1* %check -# Check that the binary runs and the features match those configured. -./run virt-v2v --version -./run virt-v2v --machine-readable | tee machine-readable.out -grep "virt-v2v-2.0" machine-readable.out -grep "input:disk" machine-readable.out -%if %{with_block_driver} -grep "block-driver-option" machine-readable.out -%endif -%if %{with_glance} -grep "output:glance" machine-readable.out -%endif -%if %{with_ovirt} -grep "output:ovirt$" machine-readable.out -grep "output:ovirt-upload" machine-readable.out -grep "output:vdsm" machine-readable.out -%endif - %ifarch x86_64 # Only run the tests with non-debug (ie. non-Rawhide) kernels. # XXX This tests for any debug kernel installed. @@ -333,17 +281,15 @@ done %{_mandir}/man1/virt-v2v.1* %{_mandir}/man1/virt-v2v-hacking.1* %{_mandir}/man1/virt-v2v-input-vmware.1* -%if %{with_xen} -%{_mandir}/man1/virt-v2v-input-xen.1* -%endif %if !0%{?rhel} +%{_mandir}/man1/virt-v2v-input-xen.1* %{_mandir}/man1/virt-v2v-in-place.1* %endif %{_mandir}/man1/virt-v2v-inspector.1* %{_mandir}/man1/virt-v2v-open.1* %{_mandir}/man1/virt-v2v-output-local.1* %{_mandir}/man1/virt-v2v-output-openstack.1* -%if %{with_ovirt} +%if !0%{?rhel} %{_mandir}/man1/virt-v2v-output-ovirt.1* %endif %{_mandir}/man1/virt-v2v-release-notes-1.42.1* @@ -367,66 +313,6 @@ done %changelog -* Tue Jan 06 2026 Richard W.M. Jones - 1:2.10.0-1 -- New upstream stable branch version 2.10.0 -- Requires libguestfs >= 1.58.0 and nbdkit >= 1.46. - -* Tue Nov 4 2025 Richard W.M. Jones - 1:2.9.10-1 -- New upstream development version 2.9.10 -- Requires libguestfs 1.57.6 for new inspection APIs. - -* Thu Oct 16 2025 Richard W.M. Jones - 1:2.9.9-1 -- New upstream development version 2.9.9 - -* Tue Oct 14 2025 Richard W.M. Jones - 1:2.9.8-2 -- OCaml 5.4.0 rebuild - -* Mon Sep 22 2025 Richard W.M. Jones - 1:2.9.8-1 -- New upstream development version 2.9.8 -- Remove Windows conversion patch which is now upstream. - -* Sat Sep 20 2025 Richard W.M. Jones - 1:2.9.7-1 -- New upstream development version 2.9.7 -- Backport non-upstream patch to improve Windows conversions - -* Tue Sep 9 2025 Richard W.M. Jones - 1:2.9.6-1 -- New upstream development version 2.9.6 - -* Fri Aug 29 2025 Richard W.M. Jones - 1:2.9.5-1 -- New upstream development version 2.9.5 -- Use new ./configure --disable/--enable flags for excluding RHEL features - -* Wed Aug 27 2025 Richard W.M. Jones - 1:2.9.4-1 -- New upstream development version 2.9.4 - -* Fri Aug 15 2025 Richard W.M. Jones - 1:2.9.3-1 -- New upstream development version 2.9.3 -- Ensure minimum libguestfs is 1.57.1 (for guestfs_setfiles) - -* Fri Jul 25 2025 Fedora Release Engineering - 1:2.9.2-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild - -* Sat Jul 19 2025 Richard W.M. Jones - 1:2.9.2-2 -- Bump minimum version of nbdkit to 1.45.1, matching current Rawhide -- Bump minimum version of nbdcopy to 1.22, matching current Fedora 42 -- Bump minimum version of libguestfs to 1.56 -- Bump minimum version of guestfs-tools to 1.54 -- Remove nbdkit-noextents-filter, option removed from virt-v2v 2.9.1 -- Add nbdkit-count-filter, added in nbdkit 1.45 -- Drop BR nbdkit-python-plugin, as it is not needed by our test - -* Wed Jul 16 2025 Richard W.M. Jones - 1:2.9.2-1 -- New upstream development version 2.9.2 - -* Sun Jul 13 2025 Jerry James - 1:2.9.1-2 -- Rebuild to fix OCaml dependencies again - -* Sun Jul 13 2025 Richard W.M. Jones - 1:2.9.1-1 -- New upstream development version 2.9.1 - -* Sat Jul 12 2025 Jerry James - 1:2.8.1-2 -- Rebuild to fix OCaml dependencies - * Thu Jun 26 2025 Richard W.M. Jones - 1:2.8.1-1 - New upstream stable version 2.8.1 @@ -483,11 +369,8 @@ done * Sat Feb 01 2025 Björn Esser - 1:2.7.4-4 - Add explicit BR: libxcrypt-devel -* Sun Jan 19 2025 Fedora Release Engineering - 1:2.7.4-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild - -* Fri Jan 10 2025 Jerry James - 1:2.7.4-2 -- OCaml 5.3.0 rebuild for Fedora 42 +* Wed Jan 29 2025 Jerry James - 1:2.7.4-2 +- OCaml 5.2.1 rebuild for Fedora 41 * Mon Dec 09 2024 Richard W.M. Jones - 1:2.7.4-1 - New upstream development version 2.7.4