|
|
29913e |
%define name WALinuxAgent
|
|
|
7a051c |
%define version 2.2.18
|
|
|
7a051c |
%define unmangled_version 2.2.18
|
|
|
ebb978 |
%define release 1
|
|
|
29913e |
|
|
|
2c704c |
%if 0%{?rhel} < 7
|
|
|
2c704c |
%global initsys sysV
|
|
|
2c704c |
%else
|
|
|
2c704c |
%global initsys systemd
|
|
|
2c704c |
%endif
|
|
|
2c704c |
|
|
|
1100a3 |
Summary: Microsoft Azure Linux Agent
|
|
|
29913e |
Name: %{name}
|
|
|
29913e |
Version: %{version}
|
|
|
7a051c |
Release: %{release}%{?dist}
|
|
|
7a051c |
Source0: WALinuxAgent-2.2.18.tar.gz
|
|
|
7a051c |
Patch0002: 0002-Disable-auto-update.patch
|
|
|
7a051c |
Patch0003: 0003-Disable-auto-update-when-upgrading.patch
|
|
|
7a051c |
Patch0004: 0004-Remove-FIPS-setting-from-the-default-config.patch
|
|
|
ebb978 |
|
|
|
29913e |
License: Apache License Version 2.0
|
|
|
29913e |
Group: Development/Libraries
|
|
|
29913e |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
|
|
29913e |
Prefix: %{_prefix}
|
|
|
29913e |
BuildArch: noarch
|
|
|
29913e |
# Vendor: Yue Zhang, Stephen Zarkos, Eric Gable <walinuxagent@microsoft.com>
|
|
|
29913e |
Url: https://github.com/Azure/WALinuxAgent
|
|
|
29913e |
|
|
|
29913e |
# rhel requirements
|
|
|
2c704c |
|
|
|
2c704c |
BuildRequires: python2-devel
|
|
|
2c704c |
BuildRequires: python-setuptools
|
|
|
29913e |
|
|
|
29913e |
Requires: util-linux
|
|
|
29913e |
Requires: net-tools
|
|
|
29913e |
Requires: openssh
|
|
|
29913e |
Requires: openssh-server
|
|
|
29913e |
Requires: openssl
|
|
|
29913e |
Requires: parted
|
|
|
29913e |
Requires: python-pyasn1
|
|
|
29913e |
|
|
|
29913e |
%if %{initsys} == systemd
|
|
|
29913e |
Requires: NetworkManager
|
|
|
29913e |
%else
|
|
|
29913e |
%if %{initsys} == sysV
|
|
|
2c704c |
Conflicts: NetworkManager
|
|
|
2c704c |
%endif
|
|
|
29913e |
%endif
|
|
|
2c704c |
|
|
|
2c704c |
%if %{initsys} == systemd
|
|
|
2c704c |
BuildRequires: systemd
|
|
|
29913e |
Requires(pre): systemd
|
|
|
2c704c |
Requires(post): systemd
|
|
|
2c704c |
Requires(preun): systemd
|
|
|
2c704c |
Requires(postun): systemd
|
|
|
2c704c |
%else
|
|
|
2c704c |
%if %{initsys} == sysv
|
|
|
2c704c |
Requires(post): chkconfig
|
|
|
2c704c |
Requires(preun): chkconfig
|
|
|
2c704c |
Requires(preun): initscripts
|
|
|
2c704c |
Requires(postun): initscripts
|
|
|
2c704c |
%endif
|
|
|
2c704c |
%endif
|
|
|
2c704c |
|
|
|
2c704c |
%description
|
|
|
29913e |
The Azure Linux Agent supports the provisioning and running of Linux
|
|
|
29913e |
VMs in the Azure cloud. This package should be installed on Linux disk
|
|
|
29913e |
images that are built to run in the Azure environment.
|
|
|
29913e |
|
|
|
2c704c |
|
|
|
2c704c |
%prep
|
|
|
29913e |
%setup -n %{name}-%{unmangled_version} -n %{name}-%{unmangled_version}
|
|
|
ebb978 |
|
|
|
7a051c |
%patch0002 -p1
|
|
|
7a051c |
%patch0003 -p1
|
|
|
7a051c |
%patch0004 -p1
|
|
|
2c704c |
|
|
|
2c704c |
%build
|
|
|
29913e |
python setup.py build
|
|
|
2c704c |
|
|
|
2c704c |
%install
|
|
|
29913e |
python setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
|
|
|
2c704c |
|
|
|
29913e |
%clean
|
|
|
29913e |
rm -rf $RPM_BUILD_ROOT
|
|
|
959aa6 |
|
|
|
2c704c |
%post
|
|
|
2c704c |
%if %{initsys} == systemd
|
|
|
2c704c |
%systemd_post waagent.service
|
|
|
2c704c |
%else
|
|
|
2c704c |
%if %{initsys} == sysV
|
|
|
2c704c |
/sbin/chkconfig --add waagent
|
|
|
2c704c |
%endif
|
|
|
2c704c |
%endif
|
|
|
2c704c |
|
|
|
2c704c |
%preun
|
|
|
2c704c |
%if %{initsys} == systemd
|
|
|
2c704c |
%systemd_preun waagent.service
|
|
|
2c704c |
%else
|
|
|
2c704c |
%if %{initsys} == sysV
|
|
|
2c704c |
if [ $1 = 0 ]; then
|
|
|
2c704c |
/sbin/service waagent stop >/dev/null 2>&1
|
|
|
2c704c |
/sbin/chkconfig --del waagent
|
|
|
2c704c |
fi
|
|
|
2c704c |
%endif
|
|
|
2c704c |
%endif
|
|
|
2c704c |
|
|
|
2c704c |
%postun
|
|
|
2c704c |
%if %{initsys} == systemd
|
|
|
2c704c |
%systemd_postun_with_restart waagent.service
|
|
|
2c704c |
%else
|
|
|
2c704c |
%if %{initsys} == sysV
|
|
|
2c704c |
if [ "$1" -ge "1" ]; then
|
|
|
2c704c |
/sbin/service waagent restart >/dev/null 2>&1 || :
|
|
|
2c704c |
fi
|
|
|
2c704c |
%endif
|
|
|
2c704c |
%endif
|
|
|
2c704c |
|
|
|
29913e |
%files -f INSTALLED_FILES
|
|
|
29913e |
%{python_sitelib}/*
|
|
|
2c704c |
%config(noreplace) %{_sysconfdir}/waagent.conf
|
|
|
29913e |
%defattr(-,root,root)
|
|
|
2c704c |
|
|
|
2c704c |
%changelog
|
|
|
7a051c |
* Tue Oct 10 2017 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.18-1.el6
|
|
|
7a051c |
- Rebase to 2.2.18 [bz#1491874]
|
|
|
7a051c |
- Resolves: bz#1491874
|
|
|
7a051c |
([WALA]Request to package WALA 2.2.18 into RHEL 6 Repo)
|
|
|
7a051c |
|
|
|
1100a3 |
* Tue Jul 04 2017 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.14-1.el6
|
|
|
1100a3 |
- Rebase to 2.2.14 (bz#1451174)
|
|
|
1100a3 |
- wla-Remove-FIPS-setting-from-the-default-config.patch [bz#1467559]
|
|
|
1100a3 |
- Resolves: bz#1451174
|
|
|
1100a3 |
([WALA] Request to package WALA 2.2.14 into RHEL 6 Repo)
|
|
|
1100a3 |
- Resolves: bz#1467559
|
|
|
1100a3 |
([WALA] Remove FIPS from default config in WALA-2.2.14)
|
|
|
1100a3 |
|
|
|
e91ee9 |
* Wed Apr 26 2017 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.10-1
|
|
|
e91ee9 |
- Rebase to 2.2.10 [bz#1443427]
|
|
|
e91ee9 |
- Resolves: bz#1443427
|
|
|
e91ee9 |
([WALA]Request to package WALA 2.2.10 into RHEL 6 Repo)
|
|
|
e91ee9 |
|
|
|
7a051c |
* Mon Mar 01 2017 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.4-1
|
|
|
ebb978 |
- Rebase to 2.2.4 [bz#1419200]
|
|
|
ebb978 |
- Resolves: bz#1419200
|
|
|
ebb978 |
WALA 2.2.4
|
|
|
ebb978 |
|
|
|
29913e |
* Fri Nov 04 2016 Dave Anderson <anderson@redhat.com> - 2.2.0-2
|
|
|
29913e |
- Set AutoUpdate.Enabled=n
|
|
|
29913e |
- Set implicit default of AutoUpdate.Enabled=n when upgrading
|
|
|
29913e |
Resolves: rhbz#1387784
|
|
|
29913e |
|
|
|
29913e |
* Fri Sep 30 2016 Dave Anderson <anderson@redhat.com> - 2.2.0-1
|
|
|
29913e |
- Update to v2.2.0
|
|
|
29913e |
Resolves: rhbz#1360493
|
|
|
29913e |
|
|
|
29913e |
* Wed Sep 21 2016 Dave Anderson <anderson@redhat.com> - 2.1.5-2
|
|
|
29913e |
- Several QE updates to this file
|
|
|
29913e |
Resolves: rhbz#1360493
|
|
|
29913e |
|
|
|
29913e |
* Tue Sep 13 2016 Dave Anderson <anderson@redhat.com> - 2.1.5-1
|
|
|
29913e |
- Update to v2.1.5
|
|
|
29913e |
Resolves: rhbz#1360493
|
|
|
29913e |
|
|
|
29913e |
* Thu Jan 14 2016 Dave Anderson <anderson@redhat.com> - 2.0.16-1
|
|
|
959aa6 |
- Update to 2.0.16
|
|
|
959aa6 |
Resolves: rhbz#1296360
|
|
|
959aa6 |
|
|
|
2c704c |
* Mon Jun 01 2015 Dave Anderson <anderson@redhat.com> - 2.0.13-1
|
|
|
2c704c |
- Update to upstream 2.0.13 package.
|
|
|
2c704c |
- Remove global commit md5sum and fix Source0 to point to correct location.
|
|
|
2c704c |
- Fix setup to deal with "WALinuxAgent-WALinuxAgent" naming scheme
|
|
|
2c704c |
- Added files reference for /udev/rules.d/99-azure-product-uuid.rules
|
|
|
2c704c |
|
|
|
2c704c |
* Thu May 07 2015 Dave Anderson <anderson@redhat.com> - 2.0.11-3
|
|
|
2c704c |
- Remove Requires: ntfsprogs for RHEL7
|
|
|
2c704c |
|
|
|
2c704c |
* Sat Jan 10 2015 Scott K Logan <logans@cottsay.net> - 2.0.11-2
|
|
|
2c704c |
- Use systemd for rhel7
|
|
|
2c704c |
- Own logrotate.d
|
|
|
2c704c |
- Fix python2-devel dep
|
|
|
2c704c |
|
|
|
2c704c |
* Sat Dec 20 2014 Scott K Logan <logans@cottsay.net> - 2.0.11-1
|
|
|
2c704c |
- Initial package
|