2019-06-21 14:57:38 +00:00
|
|
|
# Generated by rust2rpm 10
|
2019-04-28 09:21:38 +00:00
|
|
|
%bcond_without check
|
2019-06-21 14:57:38 +00:00
|
|
|
%global __cargo_skip_build 0
|
2019-04-28 09:21:38 +00:00
|
|
|
|
|
|
|
%global crate afterburn
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
2019-06-21 14:57:38 +00:00
|
|
|
Version: 4.1.1
|
|
|
|
Release: 1%{?dist}
|
2019-04-28 09:21:38 +00:00
|
|
|
Summary: Simple cloud provider agent
|
|
|
|
|
|
|
|
# Upstream license specification: Apache-2.0
|
|
|
|
License: ASL 2.0
|
|
|
|
URL: https://crates.io/crates/afterburn
|
|
|
|
Source: %{crates_source}
|
|
|
|
# Initial patched metadata
|
|
|
|
# * Downgrade reqwest to 0.9.13 temporarily
|
|
|
|
Patch0: afterburn-fix-metadata.diff
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
BuildRequires: systemd
|
|
|
|
|
2019-06-21 14:57:38 +00:00
|
|
|
%global _description %{expand:
|
|
|
|
Simple cloud provider agent.}
|
2019-04-28 09:21:38 +00:00
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
%package -n %{crate}
|
|
|
|
Summary: %{summary}
|
|
|
|
%{?systemd_requires}
|
|
|
|
|
|
|
|
%description -n %{crate} %{_description}
|
|
|
|
|
|
|
|
%files -n %{crate}
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
|
|
|
%{_bindir}/afterburn
|
|
|
|
%{_unitdir}/afterburn.service
|
|
|
|
%{_unitdir}/afterburn-checkin.service
|
|
|
|
%{_unitdir}/afterburn-firstboot-checkin.service
|
|
|
|
%{_unitdir}/afterburn-sshkeys@.service
|
|
|
|
|
|
|
|
%post -n %{crate}
|
|
|
|
%systemd_post afterburn.service
|
|
|
|
%systemd_post afterburn-checkin.service
|
|
|
|
%systemd_post afterburn-firstboot-checkin.service
|
|
|
|
%systemd_post afterburn-sshkeys@.service
|
|
|
|
|
|
|
|
%preun -n %{crate}
|
|
|
|
%systemd_preun afterburn.service
|
|
|
|
%systemd_preun afterburn-checkin.service
|
|
|
|
%systemd_preun afterburn-firstboot-checkin.service
|
|
|
|
%systemd_preun afterburn-sshkeys@.service
|
|
|
|
|
|
|
|
%postun -n %{crate}
|
|
|
|
%systemd_postun afterburn.service
|
|
|
|
%systemd_postun afterburn-checkin.service
|
|
|
|
%systemd_postun afterburn-firstboot-checkin.service
|
|
|
|
%systemd_postun afterburn-sshkeys@.service
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
# afterburn-sshkeys@.service is by default enabled for the 'core' user in
|
|
|
|
# Fedora CoreOS.
|
|
|
|
# Based on https://github.com/coreos/afterburn/blob/master/Makefile.
|
|
|
|
sed -e 's,@DEFAULT_INSTANCE@,core,' < \
|
|
|
|
systemd/afterburn-sshkeys@.service.in > \
|
|
|
|
systemd/afterburn-sshkeys@.service
|
|
|
|
%cargo_prep
|
|
|
|
|
2019-06-21 14:57:38 +00:00
|
|
|
%generate_buildrequires
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
|
2019-04-28 09:21:38 +00:00
|
|
|
%build
|
|
|
|
%cargo_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cargo_install
|
|
|
|
%{__install} -Dpm0644 -t %{buildroot}%{_unitdir} \
|
|
|
|
systemd/*.service
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
|
|
|
%cargo_test
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%changelog
|
2019-06-21 14:57:38 +00:00
|
|
|
* Fri Jun 21 2019 Robert Fairley <rfairley@redhat.com> - 4.1.1-1
|
|
|
|
- Update to 4.1.1
|
|
|
|
- Regenerate specfile using rust2rpm 10 with DynamicBuildRequires
|
|
|
|
|
2019-06-05 00:21:05 +00:00
|
|
|
* Wed Jun 05 2019 Josh Stone <jistone@redhat.com> - 4.1.0-3
|
|
|
|
- Bump nix to 0.14
|
|
|
|
|
2019-05-22 15:20:09 +00:00
|
|
|
* Wed May 22 17:17:00 CEST 2019 Robert Fairley <rfairley@redhat.com> - 4.1.0-2
|
|
|
|
- Add afterburn-sshkeys@.service patches to enable the unit on supported platfoms only
|
|
|
|
|
2019-04-28 09:21:38 +00:00
|
|
|
* Sat Apr 27 09:55:54 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.1.0-1
|
|
|
|
- Initial package
|