Blame SPECS/mingw-qemu-ga-win.spec

53c30d
%{?mingw_package_header}
53c30d
53c30d
%define with_vss 1
7d7405
%define qemu_version 7.0.0
7d7405
%define ga_manufacturer "RedHat"
7d7405
%define ga_distro "RHEL"
53c30d
53c30d
Name: mingw-qemu-ga-win
7d7405
Version: 104.0.2
53c30d
Release: 1%{?dist}
53c30d
Summary: Qemus Guest agent for Windows
53c30d
53c30d
Group: System Environment/Daemons
53c30d
License: GPLv2+ and LGPLv2+ and BSD
53c30d
URL: http://www.qemu.org/
53c30d
Requires(post): system-units
53c30d
Requires(preun): systemd-units
53c30d
Requires(postun): systemd-units
53c30d
Source0: http://wiki.qemu.org/download/qemu-%{qemu_version}.tar.bz2
53c30d
53c30d
Patch0001: 0001-Change-Version.patch
53c30d
Patch0002: 0001-qga-Log-version-on-start.patch
7d7405
Patch0003: 0001-configure-Add-cross-prefix-for-widl-tool.patch
7d7405
Patch0004: 0002-qga-vss-always-build-qga-vss.tlb-when-qga-vss.dll-is.patch
7d7405
Patch0005: 0001-qga-vss-Add-auto-generated-headers-to-dependencies.patch
7d7405
Patch0006: 0001-qga-vss-Use-a-proper-function-for-free-memory.patch
53c30d
53c30d
BuildArch: noarch
53c30d
53c30d
BuildRequires: libtool
53c30d
BuildRequires: zlib-devel
53c30d
BuildRequires: glib2-devel
53c30d
BuildRequires: python3-devel
53c30d
BuildRequires: gettext
53c30d
BuildRequires: gettext-devel
53c30d
BuildRequires: mingw32-pixman
53c30d
BuildRequires: mingw64-pixman
53c30d
BuildRequires: mingw32-gcc >= 7.4.0
53c30d
BuildRequires: mingw64-gcc >= 7.4.0
53c30d
BuildRequires: mingw32-glib2
53c30d
BuildRequires: mingw64-glib2
7d7405
BuildRequires: mingw64-headers >= 10.0.0
7d7405
BuildRequires: mingw32-headers >= 10.0.0
7d7405
BuildRequires: mingw-w64-tools >= 10.0.0
53c30d
BuildRequires: msitools >= 0.93.93
53c30d
BuildRequires: meson
53c30d
BuildRequires: ninja-build
53c30d
53c30d
%description
53c30d
qemu-kvm is an open source virtualizer that provides hardware emulation for
53c30d
the KVM hypervisor.
53c30d
53c30d
This package provides an agent to run inside guests, which communicates
53c30d
with the host over a virtio-serial channel named "org.qemu.guest_agent.0"
53c30d
53c30d
This package does not need to be installed on the host OS.
53c30d
53c30d
%package -n qemu-ga-win
53c30d
Summary: %{summary}
53c30d
53c30d
%description -n qemu-ga-win
53c30d
Qemu Guest Agent for Windows
53c30d
53c30d
%prep
53c30d
%setup -q -n qemu-%{qemu_version}
53c30d
%patch0001 -p1
53c30d
%patch0002 -p1
53c30d
%patch0003 -p1
53c30d
%patch0004 -p1
53c30d
%patch0005 -p1
53c30d
%patch0006 -p1
53c30d
53c30d
%build
53c30d
7d7405
rm -rf $RPM_BUILD_ROOT
7d7405
7d7405
export QEMU_GA_MANUFACTURER="%{ga_manufacturer}"
7d7405
export QEMU_GA_DISTRO="%{ga_distro}"
7d7405
export QEMU_GA_VERSION="%{version}"
53c30d
7d7405
#Build for Win32
53c30d
%{mingw32_env}
7d7405
./configure \
7d7405
   --disable-docs \
7d7405
   --disable-zlib-test \
53c30d
   --target-list=x86_64-softmmu \
53c30d
   --cross-prefix=i686-w64-mingw32- \
53c30d
   --enable-guest-agent-msi \
53c30d
%if %{with_vss}
7d7405
   --enable-qga-vss \
53c30d
%endif
53c30d
   || cat %{_builddir}/qemu-%{qemu_version}/build/config.log
53c30d
7d7405
make -j$(nproc) qemu-ga
53c30d
7d7405
mkdir -p $RPM_BUILD_ROOT%{mingw32_bindir}
7d7405
# cp build/qga/qemu-ga.exe $RPM_BUILD_ROOT%{mingw32_bindir}
7d7405
cp build/qga/qemu-ga-i386.msi $RPM_BUILD_ROOT%{mingw32_bindir}
53c30d
53c30d
#Build for Win64
53c30d
%{mingw64_env}
7d7405
./configure \
7d7405
   --disable-docs \
7d7405
   --disable-zlib-test \
53c30d
   --target-list=x86_64-softmmu \
53c30d
   --cross-prefix=x86_64-w64-mingw32- \
53c30d
   --enable-guest-agent-msi \
53c30d
%if %{with_vss}
7d7405
   --enable-qga-vss \
53c30d
%endif
53c30d
   || cat %{_builddir}/qemu-%{qemu_version}/build/config.log
53c30d
7d7405
make -j$(nproc) qemu-ga
53c30d
53c30d
mkdir -p $RPM_BUILD_ROOT%{mingw64_bindir}
7d7405
# cp build/qga/qemu-ga.exe $RPM_BUILD_ROOT%{mingw64_bindir}
7d7405
cp build/qga/qemu-ga-x86_64.msi $RPM_BUILD_ROOT%{mingw64_bindir}
7d7405
53c30d
53c30d
%files -n qemu-ga-win
53c30d
%defattr(-,root,root)
53c30d
%{mingw32_bindir}/qemu-ga*
53c30d
%{mingw64_bindir}/qemu-ga*
53c30d
53c30d
%changelog
7d7405
* Tue May 17 2022 Konstantin Kostiuk <kkostiuk@redhat.com> 104.0.2
7d7405
- Set version to 104.0.2
7d7405
- BZ#2084608 - Fix mismatched allocation function
7d7405
- BZ#2084613 - qga-win: race condition in build
7d7405
7d7405
* Thu May 12 2022 Konstantin Kostiuk <kkostiuk@redhat.com> 104.0.1
7d7405
- Set version to 104.0.1
7d7405
- BZ#2084493 - qemu-ga can't be installed
7d7405
7d7405
* Mon Apr 25 2022 Konstantin Kostiuk <kkostiuk@redhat.com> 104.0.0
7d7405
- Set version to 104.0.0
7d7405
- BZ#2078384 - Rebase QEMU Guest Agent Windows to 7.0.0
7d7405
- Rebase to qemu-7.0.0
7d7405
53c30d
* Mon Jan 24 2022 Konstantin Kostiuk <kkostiuk@redhat.com> 103.0.0
53c30d
- Set version to 103.0.0
53c30d
- BZ#1992643 - Add mingw-qemu-ga-win package to CentOS stream
53c30d
- Rebase to qemu-6.2.0
53c30d
53c30d
* Mon Dec 27 2021 Yan Vugenfirer <yvugenfi@redhat.com> 102.10.0
53c30d
- Set version to 102.10.0
53c30d
- BZ#2026167 - Add Windows11 version support for mingw-qemu-ga
53c30d
- Dynamically link mingw-glib2 library
53c30d
53c30d
* Thu Dec 23 2021 Yan Vugenfirer <yvugenfi@redhat.com> 102.9.0
53c30d
- Set version to 102.9.0
53c30d
- BZ#2026167 - Add Windows11 version support for mingw-qemu-ga
53c30d
- Use mingw-glib2-2.70.1
53c30d
53c30d
* Thu Nov 25 2021  Yan Vugenfirer <yvugenfi@redhat.com> 102.8.8
53c30d
- Set version to 102.8.0
53c30d
- BZ#2026167 - Add Windows11 version support for mingw-qemu-ga
53c30d
53c30d
* Wed Jul 21 2021 Yan Vugenfirer <yvugenfi@redhat.com> 102.7.0
53c30d
- Set version to 102.7.0
53c30d
- BZ#1958825 - Memory leak in qemu-ga for Windows
53c30d
53c30d
* Tue Jul 13 2021 Yan Vugenfirer <yvugenfi@redhat.com> 102.6.0
53c30d
- Set version to 102.6.0
53c30d
- BZ#1978859 - The qemu-ga-win build version in MSI is different between checking inside guest and qga command
53c30d
- BZ#1981302 - QGA version can't be upgrade directly without uninstalling old version
53c30d
53c30d
* Tue Jun 22 2021 Yan Vugenfirer <yvugenfi@redhat.com> 102.5.0
53c30d
- Set version to 102.5.0
53c30d
- Bug 1972070 - RFE: Add Windows Server 2022 version support for mingw-qemu-ga
53c30d
53c30d
* Wed Jun 16 2021 Yan Vugenfirer <yvugenfi@redhat.com> 102.2.0
53c30d
- Set version to 102.2.0
53c30d
- Bug 1958825 - fix memory leak in qemu-ga for Windows
53c30d
53c30d
* Mon Jun 7 2021 Yan Vugenfirer <yvugenfi@redhat.com> 102.1.0
53c30d
- Set version to 102.1.0
53c30d
- BZ#1957377 - ownstream qemu-ga should report the build number and not QEMU version
53c30d
53c30d
* Wed Feb 24 2021 Basil Salman <bsalman@redhat.com> 102.0.0
53c30d
- rebase to qemu-5.2.0
53c30d
- Set version to 102.0.0
53c30d
- BZ#1915198 - Rebase mingw-qemu-ga-win to qemu 5.2
53c30d
- BZ#1929144 - fix qemu-ga-win resource leaks
53c30d
- BZ#1920874 - Some changes of qga command "get-devices" should be fix on mingw-qemu-ga-win to qemu 5.2
53c30d
- BZ#1919535 - Can not get the disks of windows guest via guest agent
53c30d
- BZ#1909073 - Filesystem freeze on Windows reports errors frequently
53c30d
53c30d
* Mon Aug 3 2020 Basil Salman <bsalman@redhat.com> 101.2.0
53c30d
BZ#1746667 - [qemu-guest-agent]System reserve volume's file system via guest agent is different from it's in guest
53c30d
BZ#1549425 - Getting response from guest-fsfreeze-thaw need about 90s sometimes
53c30d
53c30d
* Thu Mar 5 2020 Basil Salman <bsalman@redhat.com> 101.1.0
53c30d
BZ#1790455 - Add guest-get-devices command to qemu-ga-win
53c30d
53c30d
* Thu Oct 24 2019 Basil Salman <bsalman@redhat.com> 101.0.0
53c30d
BZ#1733165 - QEMU Guest Agent For Windows Return Garbled NIC Name
53c30d
BZ#1751431 - "guest-get-memory-block-info" is enabled but in fact it is not currently supported
53c30d
53c30d
* Tue Jan 22 2019 Yan Vugenfirer <yvugenfi@redhat.com> 100.0.0
53c30d
BZ#1651655 -  Rebase mingw-qemu-ga-win to qemu 3.1. Change the versioning scheme to independent scheme for qemu-ga-win
53c30d
53c30d
* Mon Dec 24 2018 Sameeh Jubran <sjubran@redhat.com> 8.0.0
53c30d
BZ#1645018 - CVE-2018-12617 virtio-win: Qemu: qemu-guest-agent: Integer overflow causes segmentation fault in qmp_guest_file_read()
53c30d
53c30d
* Sun Dec 23 2018 Sameeh Jubran <sjubran@redhat.com> 8.0.0
53c30d
BZ#1659071 [RFE]Add "windows 2019 x64" support to OS reporting
53c30d
53c30d
* Thu Nov 08 2018 Sameeh Jubran <sjubran@redhat.com> 8.0.0
53c30d
#rebase mingw-qemu-ga-win to qemu 3.1.0
53c30d
53c30d
* Sun Jun 24 2018 Sameeh Jubran <sjubran@redhat.com> 7.6.0
53c30d
BZ#1565431 - "Disk" is [] in the result of guest-get-fsinfo cmd which is odd
53c30d
BZ#1594113 - Error returned after issue {"execute":"guest-fstrim" } cmd for win7-32/64 and win2008-32/64/r2 guest
53c30d
BZ#1536331 - Failed to upgrade qemu-ga without virtio-serial driver installed
53c30d
53c30d
* Wed Jan 24 2018 Sameeh Jubran <sjubran@redhat.com> 7.5.0
53c30d
BZ#1536954 - Issuing guest-fsfreeze-freeze cmd for the first time on a new qemu-ga,can not get response.
53c30d
53c30d
* Wed Dec 13 2017 Sameeh Jubran <sjubran@redhat.com> 2.9.5
53c30d
- Add resolved BZs to changelog
53c30d
BZ#1514303 - QEMU Guest Agent VSS Provider service is being installed with startup type: Automatic
53c30d
BZ#990629 - [Windows Guest Tools] QEMU Guest Agent service failed | After post-installation reboot another reboot is needed
53c30d
BZ#1514382 - [guest-agent]Still can write to freezed file system after run "{ "execute": "guest-fsfreeze-freeze"}" cmd.
53c30d
BZ#1071499 - qemu guest agent for Windows should support guest-set-time command
53c30d
BZ#1082999 - [WGT] Win 2008 32bit: Detected circular dependencies demand starting RHEV Spice Agent.
53c30d
BZ#1470649 - [virtio-win[qemu-ga-win][upstream]]Unable to install qemu-ga on Windows platform : QEMU guest agent -- Error 1722
53c30d
BZ#1514347 - [qemu-ga-win] QEMU guest agent's version is not correct.
53c30d
BZ#1515137 - Error window pops up during installing windows qemu-ga-win.msi manually
53c30d
53c30d
* Sun Jun 04 2017 Sameeh Jubran <sjubran@redhat.com> - 2.9.0
53c30d
- First release