|
|
29913e |
%define name WALinuxAgent
|
|
|
29913e |
%define version 2.2.0
|
|
|
29913e |
%define unmangled_version 2.2.0
|
|
|
29913e |
%define release 2
|
|
|
29913e |
|
|
|
2c704c |
%if 0%{?rhel} < 7
|
|
|
2c704c |
%global initsys sysV
|
|
|
2c704c |
%else
|
|
|
2c704c |
%global initsys systemd
|
|
|
2c704c |
%endif
|
|
|
2c704c |
|
|
|
29913e |
Summary: UNKNOWN
|
|
|
29913e |
Name: %{name}
|
|
|
29913e |
Version: %{version}
|
|
|
29913e |
Release: %{release}%{?dist}
|
|
|
29913e |
Source0: %{name}-%{unmangled_version}.tar.gz
|
|
|
29913e |
Patch0: agent-no-auto-update.patch
|
|
|
29913e |
Patch1: agent-no-auto-update-when-upgrading.patch
|
|
|
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}
|
|
|
2c704c |
%patch0 -p1
|
|
|
29913e |
%patch1 -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
|
|
|
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
|