Blame SPECS/WALinuxAgent.spec

5d90b8
Summary: Microsoft Azure Linux Agent
5d90b8
Name: WALinuxAgent
282658
Version: 2.7.0.6
1d2ea3
Release: 3%{?dist}
5d90b8
5d90b8
License: ASL 2.0
5d90b8
Group: Development/Libraries
5d90b8
Url: https://github.com/Azure/WALinuxAgent
282658
Source0: v2.7.0.6.tar.gz
5d90b8
5d90b8
BuildArch: noarch
5d90b8
Patch0001: 0001-Add-inital-redhat-build-support.patch
282658
Patch0002: 0002-Implement-restart_if-for-RedHat-OS.patch
5a2032
# For bz#2080826 - [Azure][WALA][RHEL-8] [8.7] walinuxagent kills network during boot
5a2032
Patch0003: wla-redhat-Fix-command-sequence-for-restarting-net-inter.patch
1d2ea3
# For bz#2092002 - [Azure][WALA][RHEL-8.7] Provisioning failed if no ifcfg-eth0
1d2ea3
Patch4: wla-redhat-Use-NetworkManager-to-set-DHCP-hostnames-on-r.patch
1d2ea3
# For bz#2114824 - [Azure][WALA][RHEL-8.7] The description of "Logs.Collect" is incorrect
1d2ea3
Patch5: wla-Update-Log-Collector-default-in-Comments-and-Readme-.patch
5d90b8
5d90b8
# rhel requirements
5d90b8
BuildRequires:  python3-devel
5d90b8
BuildRequires:  python3-setuptools
b5028a
Requires:       %name-udev = %version-%release
5d90b8
Requires:       openssh
5d90b8
Requires:       openssh-server
5d90b8
Requires:       openssl
5d90b8
Requires:       parted
5d90b8
Requires:       python3-pyasn1
5d90b8
Requires:       python36
6c3860
Requires:       iptables
5d90b8
5d90b8
BuildRequires:   systemd
5d90b8
Requires(post):  systemd
5d90b8
Requires(preun): systemd
5d90b8
Requires(postun): systemd
5d90b8
5d90b8
%description
5d90b8
The Azure Linux Agent supports the provisioning and running of Linux
5d90b8
VMs in the Azure cloud. This package should be installed on Linux disk
5d90b8
images that are built to run in the Azure environment.
5d90b8
b5028a
%package udev
b5028a
Summary:        Udev rules for Microsoft Azure
b5028a
b5028a
%description udev
b5028a
Udev rules specific to Microsoft Azure Virtual Machines.
5d90b8
5d90b8
%prep
5d90b8
%setup -q
5d90b8
5d90b8
%patch0001 -p1
282658
%patch0002 -p1
5a2032
%patch0003 -p1
1d2ea3
%patch4 -p1
1d2ea3
%patch5 -p1
5d90b8
5d90b8
%build
5d90b8
%py3_build
5d90b8
5d90b8
%install
5d90b8
%{__python3} setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
5d90b8
rm -f %{buildroot}%{_sbindir}/waagent2.0
5d90b8
b5028a
mkdir -p %{buildroot}%{_udevrulesdir}
b5028a
mv %{buildroot}%{_sysconfdir}/udev/rules.d/*.rules %{buildroot}%{_udevrulesdir}/
b5028a
5d90b8
%clean
5d90b8
rm -rf $RPM_BUILD_ROOT
5d90b8
5d90b8
%post
5d90b8
%systemd_post waagent.service
5d90b8
5d90b8
%preun
5d90b8
%systemd_preun waagent.service
5d90b8
5d90b8
%postun
5d90b8
%systemd_postun_with_restart waagent.service
5d90b8
5d90b8
%files 
5d90b8
%defattr(-,root,root)
5d90b8
%{python3_sitelib}/*
5d90b8
%config(noreplace) %{_sysconfdir}/waagent.conf
1ac861
%config(noreplace) %{_sysconfdir}/logrotate.d/waagent.logrotate
5d90b8
%{_sbindir}/waagent
5d90b8
%{_unitdir}/waagent.service
282658
%{_unitdir}/azure.slice
282658
%{_unitdir}/azure-vmextensions.slice
282658
b5028a
b5028a
%files udev
b5028a
%{_udevrulesdir}/*.rules
5d90b8
5d90b8
%changelog
1d2ea3
* Tue Aug 09 2022 Miroslav Rezanina <mrezanin@redhat.com> - 2.7.0.6-3
1d2ea3
- wla-redhat-Use-NetworkManager-to-set-DHCP-hostnames-on-r.patch [bz#2092002]
1d2ea3
- wla-Update-Log-Collector-default-in-Comments-and-Readme-.patch [bz#2114824]
1d2ea3
- Resolves: bz#2092002
1d2ea3
  ([Azure][WALA][RHEL-8.7] Provisioning failed if no ifcfg-eth0)
1d2ea3
- Resolves: bz#2114824
1d2ea3
  ([Azure][WALA][RHEL-8.7] The description of "Logs.Collect" is incorrect)
1d2ea3
5a2032
* Tue Jul 12 2022 Camilla Conte <cconte@redhat.com> - 2.7.0.6-2
5a2032
- wla-redhat-Fix-command-sequence-for-restarting-net-inter.patch [bz#2080826]
5a2032
- Resolves: bz#2080826
5a2032
  ([Azure][WALA][RHEL-8] [8.7] walinuxagent kills network during boot)
5a2032
282658
* Wed May 25 2022 Miroslav Rezanina <mrezanin@redhat.com> - 2.7.0.6-1
282658
- Rebase to 2.7.0.6 [bz#2083465]
282658
- Adding restart_if implementation for RHEL [bz#2085578]
282658
- Resolves: bz#2083465
282658
  ([Azure][RHEL-8][8.7] Rebase WALinuxAgent to v2.7.0.6)
282658
- Resolves: bz#2085578
282658
  ([Azure][WALA][8.6] WALA provisions VM failed because of no "ifdown")
282658
6c3860
* Mon Aug 09 2021 Miroslav Rezanina <mrezanin@redhat.com> - 2.3.0.2-2
6c3860
- wla-Require-iptables-for-setting-up-persistent-firewall-.patch [bz#1985198]
6c3860
- Resolves: bz#1985198
6c3860
  ([Azure][WALA][RHEL-8] WALA needs iptables package)
6c3860
c22365
* Fri Jun 25 2021 Miroslav Rezanina <mrezanin@redhat.com> - 2.3.0.2-1
c22365
- Rebase to 2.3.0.2 [bz#1972102]
c22365
- Resolves: bz#1972102
c22365
  ([Azure][RHEL-8]Rebase WALinuxAgent to 2.3.0.2)
c22365
b5028a
* Tue Jan 12 2021 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.49.2-3.el8
b5028a
- wla-Provide-udev-rules-as-a-separate-subpackage.patch [bz#1913074]
b5028a
- Resolves: bz#1913074
b5028a
  ([Azure][RFE] please provide the WALinuxAgent-udev subpackage)
b5028a
e23865
* Thu Dec 17 2020 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.49.2-2.el8
e23865
- wla-Fixed-faulty-check-for-run_command-2093.patch [bz#1903074]
e23865
- Resolves: bz#1903074
e23865
  ([Azure][WALA] Miss report "hostnamectl set-hostname --static] failed, attempting fallback")
e23865
eb9da2
* Wed Nov 18 2020 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.49.2-1.el8
eb9da2
- Rebase to 2.2.49.2 [bz#1896907]
eb9da2
  ([Azure] Rebase WALinuxAgent to 2.2.49)
eb9da2
86ca3d
* Thu Aug 13 2020 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.46-8.el8
86ca3d
- wla-Fix-handling-of-gen2-disks-with-udev-rules-1954.patch [bz#1859037]
86ca3d
- Resolves: bz#1859037
86ca3d
  ([Azure][WALA]Cannot create /dev/disk/azure/resource softlinks in Gen2 VM)
86ca3d
1ac861
* Wed Jun 10 2020 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.46-7.el8
1ac861
- wla-Mark-logrotate-configs-with-config-noreplace.patch [bz#1838254]
1ac861
- Resolves: bz#1838254
1ac861
  ([Azure]WALinuxAgent RPM update clobbers waagent.logrotate log rotation changes)
1ac861
47843a
* Tue May 26 2020 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.46-6.el8
47843a
- wala-Update-Provisioning-options-1853.patch [bz#1827792]
47843a
- Resolves: bz#1822882
47843a
  ([Azure][RHEL-8]Some parameter changes are not in waagent.conf)
47843a
eb9da2
* Thu Apr 09 2020 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.46-5.el8
5d90b8
- Rebase to 2.2.46 [bz#1791069]
5d90b8
- Resolves: bz#1791069
5d90b8
  ([Azure][RHEL-8.3]Ask to increase the WALA version available for RHEL 8.0 to 2.2.46)
5d90b8
5d90b8
* Wed Jun 26 2019 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.32-3.el8
5d90b8
- wla-Switch-from-platform-python-to-python36.patch [bz#1720373]
5d90b8
- wla-Stop-packaging-legacy-waagent2.0.patch [bz#1720373]
5d90b8
- Resolves: bz#1720373
5d90b8
  ([RHEL 8.1] [Azure] Change WALinuxAgent spec to depend on Python3.6 package)
5d90b8
5d90b8
* Tue Apr 30 2019 Danilo Cesar Lemes de Paula <ddepaula@redhat.com> - 2.2.32-2.el8
5d90b8
- wla-Add-fixes-for-handling-swap-file-and-other-nit-fixes.patch [bz#1684181 bz#1688276]
5d90b8
- Resolves: bz#1684181
5d90b8
  (CVE-2019-0804 WALinuxAgent: swapfile created with weak permissions)
5d90b8
- Resolves: bz#1688276
5d90b8
  (CVE-2019-0804 WALinuxAgent: swapfile created with weak permissions [rhel-8])
5d90b8
5d90b8
* Fri Dec 14 2018 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.32-1.el8
5d90b8
- Rebase to 2.2.32 [bz#1639498]
5d90b8
- Resolves: bz#1639498]
5d90b8
  (walinuxagent 2.2.32 packaging request for RHEL 8)
5d90b8
5d90b8
* Tue Oct 23 2018 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.26-6.el8
5d90b8
- wala-Use-sys.executable-to-find-system-python.patch [bz#1639775]
5d90b8
- Resolves: bz#1639775
5d90b8
  (WALinuxAgent: Systemd unit file will fail to execute)
5d90b8
5d90b8
* Mon Oct 22 2018 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.26-5.el8
5d90b8
- wala-Switch-to-platform-python-in-systemd-unit-file.patch [bz#1639775]
5d90b8
- Resolves: bz#1639775
5d90b8
  (WALinuxAgent: Systemd unit file will fail to execute)
5d90b8
5d90b8
* Wed Aug 29 2018 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.26-4.el8
5d90b8
- Fix unit file location [bz#1637545]
5d90b8
- Resolves: bz#1637545
5d90b8
  (Wrong macro used for systemd unit file location)
5d90b8
5d90b8
* Wed Jul 04 2018 Tomas Orsava <torsava@redhat.com> - 2.2.26-3
5d90b8
- Switch hardcoded python3 shebangs into the %%{__python3} macro
5d90b8
5d90b8
* Tue Jul 03 2018 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.26-2.el8
5d90b8
- Include 7.6 patches
5d90b8
5d90b8
* Tue Jul 03 2018 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.26-1.el7
5d90b8
- Rebase to 2.2.26 [bz#1571523]
5d90b8
- Resolves: bz#1571523
5d90b8
  (Rebase WALinuxAgent in RHEL-8.0)
5d90b8
5d90b8
* Thu May 03 2018 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.18-2.el7
5d90b8
- wa-Add-show-configuration-option.patch [bz#1508340]
5d90b8
- Resolves: bz#1508340
5d90b8
  ([WALA] WALA usage prompt lack of " waagent -show-configuration")
5d90b8
5d90b8
* Tue Oct 10 2017 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.18-1.el7
5d90b8
- Rebase to 2.2.18 [bz#1491873]
5d90b8
- Resolves: bz#1491873
5d90b8
  ([WALA]Request to package WALA 2.2.18 into RHEL 7 Repo)
5d90b8
5d90b8
5d90b8
* Tue Jul 04 2017 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.14-1.el7
5d90b8
- Rebase to 2.2.14 [bz#1451172]
5d90b8
- wla-Remove-FIPS-setting-from-the-default-config.patch [bz#1467553]
5d90b8
- Resolves: bz#1451172
5d90b8
  ([WALA] Request to package WALA 2.2.14 into RHEL 7 Repo)
5d90b8
- Resolves: bz#1467553
5d90b8
  ([WALA] Remove FIPS from default config in WALA-2.2.14)
5d90b8
5d90b8
* Wed Apr 26 2017 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.10-1.el7
5d90b8
- Rebase to 2.2.10 [bz#1443425]
5d90b8
- Resolves: bz#1443425
5d90b8
  ([WALA]Request to package WALA 2.2.10 into RHEL 7 Repo)
5d90b8
5d90b8
* Wed Apr 19 2017 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.4-2.el7
5d90b8
- Enable AutoUpdate by default [bz#1434933]
5d90b8
- Resolves: bz#1434933
5d90b8
  ([WALA][RHEL-7] Enable AutoUpdate by default)
5d90b8
5d90b8
* Wed Mar 01 2017 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.4-1.el7
5d90b8
- Rebase to 2.2.4 [bz#1419201]
5d90b8
- resolves: bz#1419201
5d90b8
  WALA 2.2.4
5d90b8
5d90b8
* Mon Jan 16 2017 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.0-4.el7
5d90b8
- agent-RHEL-7-hostname-533.patch [bz#1413674]
5d90b8
- agent-fix-for-hostnamectl-534.patch [bz#1413674]
5d90b8
- Resolves: bz#1413674
5d90b8
  ([WALA] Fail to send hostname to DHCP server during provisioning)
5d90b8
5d90b8
* Fri Sep 30 2016 Dave Anderson <anderson@redhat.com> - 2.2.0-1
5d90b8
- Update to v2.2.0
5d90b8
  Resolves: rhbz#1360492
5d90b8
5d90b8
* Wed Sep 21 2016 Dave Anderson <anderson@redhat.com> - 2.1.5-2
5d90b8
- Several QE updates to this file
5d90b8
  Resolves: rhbz#1360492
5d90b8
5d90b8
* Tue Sep 13 2016 Dave Anderson <anderson@redhat.com> - 2.1.5-1
5d90b8
- Update to v2.1.5
5d90b8
  Resolves: rhbz#1360492
5d90b8
5d90b8
* Thu Jan 14 2016 Dave Anderson <anderson@redhat.com> - 2.0.16-1
5d90b8
- Update to 2.0.16
5d90b8
  Resolves: rhbz#1296360
5d90b8
5d90b8
* Mon Jun 01 2015 Dave Anderson <anderson@redhat.com> - 2.0.13-1
5d90b8
- Update to upstream 2.0.13 package.
5d90b8
- Remove global commit md5sum and fix Source0 to point to correct location.
5d90b8
- Fix setup to deal with "WALinuxAgent-WALinuxAgent" naming scheme
5d90b8
- Added files reference for /udev/rules.d/99-azure-product-uuid.rules
5d90b8
5d90b8
* Thu May 07 2015 Dave Anderson <anderson@redhat.com> - 2.0.11-3
5d90b8
- Remove Requires: ntfsprogs for RHEL7
5d90b8
5d90b8
* Sat Jan 10 2015 Scott K Logan <logans@cottsay.net> - 2.0.11-2
5d90b8
- Use systemd for rhel7
5d90b8
- Own logrotate.d
5d90b8
- Fix python2-devel dep
5d90b8
5d90b8
* Sat Dec 20 2014 Scott K Logan <logans@cottsay.net> - 2.0.11-1
5d90b8
- Initial package