Blame SPECS/WALinuxAgent.spec

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