Blame SPECS/WALinuxAgent.spec

c26201
%define name WALinuxAgent
60528a
%define version 2.3.0.2
60528a
%define unmangled_version 2.3.0.2
60528a
%define release 4
c26201
cc18bb
%if 0%{?rhel} < 7
cc18bb
%global initsys sysV
cc18bb
%else
cc18bb
%global initsys systemd
cc18bb
%endif
cc18bb
8d9e81
Summary: Microsoft Azure Linux Agent
c26201
Name: %{name}
c26201
Version: %{version}
6a6ab1
Release: %{release}%{?dist}
60528a
Source0: WALinuxAgent-2.3.0.2.tar.gz
60528a
Patch0001: 0001-Add-inital-redhat-build-support.patch
60528a
Patch0002: 0002-Implement-restart_if-for-RedHat-OS.patch
60528a
Patch0003: wa-Fix-if-hangs.patch
60528a
# For bz#2098083 - [Azure][WALA] walinuxagent kills network during boot [rhel-7.9.z]
60528a
Patch4: wla-redhat-Fix-command-sequence-for-restarting-net-inter.patch
60528a
# For bz#2098083 - [Azure][WALA] walinuxagent kills network during boot [rhel-7.9.z]
60528a
Patch5: wla-redhat-Implement-restart_if-correctly-to-eliminate-w.patch
ea2857
462773
License: ASL 2.0
c26201
Group: Development/Libraries
c26201
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
c26201
Prefix: %{_prefix}
c26201
BuildArch: noarch
c26201
# Vendor: Yue Zhang, Stephen Zarkos, Eric Gable <walinuxagent@microsoft.com>
c26201
Url: https://github.com/Azure/WALinuxAgent
c26201
c26201
# rhel requirements
cc18bb
cc18bb
BuildRequires:  python2-devel
cc18bb
BuildRequires:  python-setuptools
c26201
c26201
Requires: util-linux
c26201
Requires: net-tools
c26201
Requires: openssh
c26201
Requires: openssh-server
c26201
Requires: openssl
c26201
Requires: parted
c26201
Requires: python-pyasn1
c26201
c26201
%if %{initsys} == systemd
c26201
Requires:       NetworkManager
c26201
%else
c26201
%if %{initsys} == sysV
cc18bb
Conflicts:      NetworkManager
cc18bb
%endif
c26201
%endif
cc18bb
cc18bb
%if %{initsys} == systemd
cc18bb
BuildRequires:   systemd
c26201
Requires(pre):  systemd
cc18bb
Requires(post):  systemd
cc18bb
Requires(preun): systemd
cc18bb
Requires(postun): systemd
cc18bb
%else
cc18bb
%if %{initsys} == sysv
cc18bb
Requires(post):  chkconfig
cc18bb
Requires(preun): chkconfig
cc18bb
Requires(preun): initscripts
cc18bb
Requires(postun): initscripts
cc18bb
%endif
cc18bb
%endif
cc18bb
cc18bb
%description
c26201
The Azure Linux Agent supports the provisioning and running of Linux
c26201
VMs in the Azure cloud. This package should be installed on Linux disk
c26201
images that are built to run in the Azure environment.
c26201
cc18bb
cc18bb
%prep
60528a
%setup -n %{name}-%{unmangled_version} -q
ea2857
60528a
%patch0001 -p1
6a6ab1
%patch0002 -p1
60528a
%patch0003 -p1
60528a
%patch4 -p1
60528a
%patch5 -p1
cc18bb
cc18bb
%build
60528a
%{__python2} setup.py build
cc18bb
cc18bb
%install
60528a
%{__python2} setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
cc18bb
c26201
%clean
c26201
rm -rf $RPM_BUILD_ROOT
0196a8
cc18bb
%post
cc18bb
%if %{initsys} == systemd
cc18bb
%systemd_post waagent.service
cc18bb
%else
cc18bb
%if %{initsys} == sysV
cc18bb
/sbin/chkconfig --add waagent
cc18bb
%endif
cc18bb
%endif
cc18bb
cc18bb
%preun
cc18bb
%if %{initsys} == systemd
cc18bb
%systemd_preun waagent.service
cc18bb
%else
cc18bb
%if %{initsys} == sysV
cc18bb
if [ $1 = 0 ]; then
cc18bb
        /sbin/service waagent stop >/dev/null 2>&1
cc18bb
        /sbin/chkconfig --del waagent
cc18bb
fi
cc18bb
%endif
cc18bb
%endif
cc18bb
cc18bb
%postun
cc18bb
%if %{initsys} == systemd
cc18bb
%systemd_postun_with_restart waagent.service
cc18bb
%else
cc18bb
%if %{initsys} == sysV
cc18bb
if [ "$1" -ge "1" ]; then
cc18bb
        /sbin/service waagent restart >/dev/null 2>&1 || :
cc18bb
fi
cc18bb
%endif
cc18bb
%endif
cc18bb
82d6e4
%files
82d6e4
%defattr(-,root,root)
60528a
%{python2_sitelib}/*
cc18bb
%config(noreplace) %{_sysconfdir}/waagent.conf
60528a
%config(noreplace) %{_sysconfdir}/logrotate.d/waagent.logrotate
82d6e4
%{_sbindir}/waagent
82d6e4
%{_sbindir}/waagent2.0
82d6e4
%{_unitdir}/waagent.service
82d6e4
/etc/udev/rules.d/66-azure-storage.rules
82d6e4
/etc/udev/rules.d/99-azure-product-uuid.rules
cc18bb
cc18bb
%changelog
60528a
* Mon Jul 11 2022 Miroslav Rezanina <mrezanin@redhat.com> - 2.3.0.2-4
60528a
- wla-redhat-Implement-restart_if-correctly-to-eliminate-w.patch [bz#2098083]
60528a
- Resolves: bz#2098083
60528a
  ([Azure][WALA] walinuxagent kills network during boot [rhel-7.9.z])
60528a
60528a
* Wed Jun 29 2022 Miroslav Rezanina <mrezanin@redhat.com> - 2.3.0.2-3
60528a
- wla-redhat-Fix-command-sequence-for-restarting-net-inter.patch [bz#2098083]
60528a
- Resolves: bz#2098083
60528a
  ([Azure][WALA] walinuxagent kills network during boot [rhel-7.9.z])
60528a
60528a
* Fri Jun 10 2022 Miroslav Rezanina <mrezanin@redhat.com> - 2.3.0.2-2
60528a
- Fixing boot hang [bz#2092753]
60528a
60528a
* Tue May 31 2022 Miroslav Rezanina <mrezanin@redhat.com> - 2.3.0.2-1
60528a
- Rebase to 2.3.0.2 [bz#2082801]
60528a
- Resolves: bz#2082801
60528a
  ([Azure][RHEL-7]The package WALinuxAgent needs least supported version by July 2022)
60528a
f54ed5
* Wed Jun 03 2020 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.46-2
f54ed5
- wla-Update-Provisioning-options-1853.patch [bz#1822883]
f54ed5
- Resolves: bz#1822883
f54ed5
  ([Azure][RHEL-7]Some parameter changes are not in waagent.conf)
f54ed5
f54ed5
* Mon Mar 16 2020 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.46-1
f54ed5
- Rebase to 2.2.26 [bz#1794682]
f54ed5
- Resolves: bz#1794682
f54ed5
  ([Azure][RHEL-7]Rebase WALinuxAgent to 2.2.46)
f54ed5
462773
* Wed Feb 19 2020 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.38-2.el7
462773
- wla-Add-support-for-Gen2-VM-resource-disks-1654.patch [bz#1714167]
462773
- Resolves: bz#1714167
462773
  ([Azure][WALA] Cannot find temporary disk device in Gen2 VM)
462773
462773
* Fri Jun 28 2019 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.38-1.el7
462773
- Rebase to 2.2.38 [bz#1721727]
462773
- Resolves: bz#1721727
462773
  ([Azure]walinuxagent 2.2.38 packaging request)
462773
8c1979
* Tue Dec 11 2018 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.32-1.el7
8c1979
- Rebase to 2.2.32 [bz#1639496]
8c1979
- Resolves: bz#1639496
8c1979
  (walinuxagent 2.2.32 packaging request)
8c1979
82d6e4
* Wed Aug 29 2018 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.26-2.el7
82d6e4
- Fixing unit file location
82d6e4
82d6e4
* Wed Jul 25 2018 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.26-1.el7
82d6e4
- Rebase to 2.2.26 [bz#1562222]
82d6e4
  (Rebase WALinuxAgent in RHEL-7.6)
82d6e4
05c0aa
* Thu May 03 2018 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.18-2.el7
05c0aa
- wa-Add-show-configuration-option.patch [bz#1508340]
05c0aa
- Resolves: bz#1508340
05c0aa
  ([WALA] WALA usage prompt lack of " waagent -show-configuration")
05c0aa
6a6ab1
* Tue Oct 10 2017 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.18-1.el7
6a6ab1
- Rebase to 2.2.18 [bz#1491873]
6a6ab1
- Resolves: bz#1491873
6a6ab1
  ([WALA]Request to package WALA 2.2.18 into RHEL 7 Repo)
6a6ab1
6a6ab1
8d9e81
* Tue Jul 04 2017 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.14-1.el7
8d9e81
- Rebase to 2.2.14 [bz#1451172]
8d9e81
- wla-Remove-FIPS-setting-from-the-default-config.patch [bz#1467553]
8d9e81
- Resolves: bz#1451172
8d9e81
  ([WALA] Request to package WALA 2.2.14 into RHEL 7 Repo)
8d9e81
- Resolves: bz#1467553
8d9e81
  ([WALA] Remove FIPS from default config in WALA-2.2.14)
8d9e81
8d9e81
* Wed Apr 26 2017 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.10-1.el7
e18c18
- Rebase to 2.2.10 [bz#1443425]
e18c18
- Resolves: bz#1443425
e18c18
  ([WALA]Request to package WALA 2.2.10 into RHEL 7 Repo)
e18c18
e18c18
* Wed Apr 19 2017 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.4-2.el7
e18c18
- Enable AutoUpdate by default [bz#1434933]
e18c18
- Resolves: bz#1434933
e18c18
  ([WALA][RHEL-7] Enable AutoUpdate by default)
e18c18
ea2857
* Wed Mar 01 2017 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.4-1.el7
ea2857
- Rebase to 2.2.4 [bz#1419201]
ea2857
- resolves: bz#1419201
ea2857
  WALA 2.2.4
ea2857
ea2857
* Mon Jan 16 2017 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.0-4.el7
c0dd94
- agent-RHEL-7-hostname-533.patch [bz#1413674]
c0dd94
- agent-fix-for-hostnamectl-534.patch [bz#1413674]
c0dd94
- Resolves: bz#1413674
c0dd94
  ([WALA] Fail to send hostname to DHCP server during provisioning)
c0dd94
c26201
* Fri Sep 30 2016 Dave Anderson <anderson@redhat.com> - 2.2.0-1
c26201
- Update to v2.2.0
c26201
  Resolves: rhbz#1360492
c26201
c26201
* Wed Sep 21 2016 Dave Anderson <anderson@redhat.com> - 2.1.5-2
c26201
- Several QE updates to this file
c26201
  Resolves: rhbz#1360492
c26201
c26201
* Tue Sep 13 2016 Dave Anderson <anderson@redhat.com> - 2.1.5-1
c26201
- Update to v2.1.5
c26201
  Resolves: rhbz#1360492
c26201
c26201
* Thu Jan 14 2016 Dave Anderson <anderson@redhat.com> - 2.0.16-1
0196a8
- Update to 2.0.16
c26201
  Resolves: rhbz#1296360
0196a8
cc18bb
* Mon Jun 01 2015 Dave Anderson <anderson@redhat.com> - 2.0.13-1
cc18bb
- Update to upstream 2.0.13 package.
cc18bb
- Remove global commit md5sum and fix Source0 to point to correct location.
cc18bb
- Fix setup to deal with "WALinuxAgent-WALinuxAgent" naming scheme
cc18bb
- Added files reference for /udev/rules.d/99-azure-product-uuid.rules
cc18bb
cc18bb
* Thu May 07 2015 Dave Anderson <anderson@redhat.com> - 2.0.11-3
cc18bb
- Remove Requires: ntfsprogs for RHEL7
cc18bb
cc18bb
* Sat Jan 10 2015 Scott K Logan <logans@cottsay.net> - 2.0.11-2
cc18bb
- Use systemd for rhel7
cc18bb
- Own logrotate.d
cc18bb
- Fix python2-devel dep
cc18bb
cc18bb
* Sat Dec 20 2014 Scott K Logan <logans@cottsay.net> - 2.0.11-1
cc18bb
- Initial package