Blame SPECS/WALinuxAgent.spec

8023bf
Summary: Microsoft Azure Linux Agent
8023bf
Name: WALinuxAgent
8023bf
Version: 2.2.32
8023bf
Release: 1%{?dist}
8023bf
8023bf
License: Apache License Version 2.0
8023bf
Group: Development/Libraries
8023bf
Url: https://github.com/Azure/WALinuxAgent
8023bf
Source0: WALinuxAgent-2.2.32.tar.gz
8023bf
8023bf
BuildArch: noarch
8023bf
Patch0001: 0001-Add-inital-redhat-build-support.patch
8023bf
8023bf
# rhel requirements
8023bf
BuildRequires:  python3-devel
8023bf
BuildRequires:  python3-setuptools
8023bf
Requires:       openssh
8023bf
Requires:       openssh-server
8023bf
Requires:       openssl
8023bf
Requires:       parted
8023bf
Requires:       python3-pyasn1
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
8023bf
8023bf
%prep
8023bf
%setup -q
8023bf
8023bf
%patch0001 -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
8023bf
8023bf
# Change the shebang to the __python3 macro instead of leaving it hardcoded
8023bf
pathfix.py -pni "%{__python3}" %{buildroot}%{_sbindir}/waagent
8023bf
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
8023bf
%{_sysconfdir}/logrotate.d/waagent.logrotate
8023bf
%{_sbindir}/waagent
8023bf
%{_sbindir}/waagent2.0
8023bf
%{_unitdir}/waagent.service
8023bf
/etc/udev/rules.d/66-azure-storage.rules
8023bf
/etc/udev/rules.d/99-azure-product-uuid.rules
8023bf
8023bf
%changelog
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