2020-05-23 09:28:22 +00:00
|
|
|
# Generated by rust2rpm 15
|
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
|
|
|
|
2019-06-22 09:07:06 +00:00
|
|
|
%global dracutmodulesdir %(pkg-config --variable=dracutmodulesdir dracut || echo '/usr/lib/dracut/modules.d')
|
|
|
|
|
2019-04-28 09:21:38 +00:00
|
|
|
%global crate afterburn
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
2022-01-15 04:41:01 +00:00
|
|
|
Version: 5.2.0
|
2022-01-31 00:17:51 +00:00
|
|
|
Release: 4%{?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
|
2021-09-15 19:13:09 +00:00
|
|
|
Source0: %{crates_source}
|
2022-01-17 16:39:59 +00:00
|
|
|
# not used on Fedora
|
2021-09-15 19:13:09 +00:00
|
|
|
Source1: https://github.com/coreos/%{crate}/releases/download/v%{version}/%{crate}-%{version}-vendor.tar.gz
|
2019-04-28 09:21:38 +00:00
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
2021-09-15 19:13:09 +00:00
|
|
|
%if 0%{?rhel} && !0%{?eln}
|
|
|
|
BuildRequires: rust-toolset
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
# This is needed because the cc crate, which is
|
|
|
|
# used for linking final build results of crates,
|
|
|
|
# does not work without it.
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
%else
|
2019-04-28 09:21:38 +00:00
|
|
|
BuildRequires: rust-packaging
|
2021-09-15 19:13:09 +00:00
|
|
|
%endif
|
2019-04-28 09:21:38 +00:00
|
|
|
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}
|
2022-01-25 16:16:31 +00:00
|
|
|
# 0BSD
|
2020-07-25 06:34:41 +00:00
|
|
|
# ASL 2.0
|
|
|
|
# ASL 2.0 or Boost
|
2022-01-25 16:16:31 +00:00
|
|
|
# ASL 2.0 or MIT
|
2020-07-25 06:34:41 +00:00
|
|
|
# BSD
|
|
|
|
# MIT
|
|
|
|
# MIT or ASL 2.0
|
2022-01-25 16:16:31 +00:00
|
|
|
# MIT or ASL 2.0 or zlib
|
2020-07-25 06:34:41 +00:00
|
|
|
# MPLv2.0 or MIT or ASL 2.0
|
|
|
|
# Unlicense or MIT
|
2022-01-25 16:16:31 +00:00
|
|
|
# zlib or ASL 2.0 or MIT
|
|
|
|
License: ASL 2.0 and MIT and BSD and 0BSD
|
2019-04-28 09:21:38 +00:00
|
|
|
%{?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
|
2020-09-04 00:17:45 +00:00
|
|
|
%{_unitdir}/afterburn-sshkeys.target
|
2019-04-28 09:21:38 +00:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
2019-06-22 09:59:18 +00:00
|
|
|
%package -n %{crate}-dracut
|
2019-06-22 09:07:06 +00:00
|
|
|
Summary: Dracut modules for afterburn
|
|
|
|
BuildRequires: pkgconfig(dracut)
|
2019-06-22 09:59:18 +00:00
|
|
|
Requires: %{crate}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
2019-06-22 09:07:06 +00:00
|
|
|
Requires: dracut
|
|
|
|
Requires: dracut-network
|
|
|
|
|
2019-06-22 09:59:18 +00:00
|
|
|
%description -n %{crate}-dracut
|
2019-06-22 09:07:06 +00:00
|
|
|
Dracut module that enables afterburn and corresponding services
|
|
|
|
to run in the initramfs on boot.
|
|
|
|
|
2019-06-22 09:59:18 +00:00
|
|
|
%files -n %{crate}-dracut
|
2019-06-22 09:18:05 +00:00
|
|
|
%{dracutmodulesdir}/30afterburn/
|
2019-06-22 09:07:06 +00:00
|
|
|
|
2019-04-28 09:21:38 +00:00
|
|
|
%prep
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
2021-09-15 19:13:09 +00:00
|
|
|
%if 0%{?rhel} && !0%{?eln}
|
|
|
|
tar xvf %{SOURCE1}
|
|
|
|
mkdir -p .cargo
|
|
|
|
cat >.cargo/config << EOF
|
|
|
|
[source.crates-io]
|
|
|
|
replace-with = "vendored-sources"
|
|
|
|
|
|
|
|
[source.vendored-sources]
|
|
|
|
directory = "vendor"
|
|
|
|
EOF
|
|
|
|
%else
|
|
|
|
%cargo_prep
|
|
|
|
%endif
|
2019-04-28 09:21:38 +00:00
|
|
|
# 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
|
|
|
|
|
2021-09-15 19:13:09 +00:00
|
|
|
%if !0%{?rhel} || 0%{?eln}
|
2019-06-21 14:57:38 +00:00
|
|
|
%generate_buildrequires
|
|
|
|
%cargo_generate_buildrequires
|
2021-09-15 19:13:09 +00:00
|
|
|
%endif
|
2019-06-21 14:57:38 +00:00
|
|
|
|
2019-04-28 09:21:38 +00:00
|
|
|
%build
|
|
|
|
%cargo_build
|
|
|
|
|
|
|
|
%install
|
2021-09-15 19:13:09 +00:00
|
|
|
%if 0%{?rhel} && !0%{?eln}
|
|
|
|
%make_install INSTALL="install -p -c"
|
|
|
|
%else
|
2019-04-28 09:21:38 +00:00
|
|
|
%cargo_install
|
2019-06-22 09:07:06 +00:00
|
|
|
install -Dpm0644 -t %{buildroot}%{_unitdir} \
|
2020-09-04 00:17:45 +00:00
|
|
|
systemd/*.service systemd/*.target
|
2021-09-15 19:13:09 +00:00
|
|
|
%endif
|
2019-06-22 09:18:05 +00:00
|
|
|
mkdir -p %{buildroot}%{dracutmodulesdir}
|
|
|
|
cp -a dracut/* %{buildroot}%{dracutmodulesdir}
|
2019-04-28 09:21:38 +00:00
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
|
|
|
%cargo_test
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%changelog
|
2022-01-31 00:17:51 +00:00
|
|
|
* Mon Jan 31 2022 Benjamin Gilbert <bgilbert@redhat.com> - 5.2.0-4
|
|
|
|
- Rebuild to fix out-of-order push
|
|
|
|
|
2022-01-25 16:16:31 +00:00
|
|
|
* Tue Jan 25 2022 Fabio Valentini <decathorpe@gmail.com> - 5.2.0-3
|
|
|
|
- Rebuild with thread_local 1.1.4 for RUSTSEC-2022-0006.
|
|
|
|
|
2022-01-21 19:35:56 +00:00
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2022-01-15 04:41:01 +00:00
|
|
|
* Fri Jan 14 2022 Benjamin Gilbert <bgilbert@redhat.com> - 5.2.0-1
|
|
|
|
- Update to 5.2.0
|
|
|
|
|
2021-09-15 19:13:09 +00:00
|
|
|
* Fri Sep 24 2021 Sohan Kunkerkar <skunkerk@redhat.com> - 5.1.0-3
|
|
|
|
- Vendor rust dependencies on el9
|
|
|
|
|
2021-09-14 17:14:08 +00:00
|
|
|
* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 5.1.0-2
|
|
|
|
- Rebuilt with OpenSSL 3.0.0
|
|
|
|
|
2021-08-10 19:22:55 +00:00
|
|
|
* Tue Aug 10 2021 Sohan Kunkerkar <skunkerk@redhat.com> - 5.1.0-1
|
|
|
|
- Update to 5.1.0
|
|
|
|
|
2021-07-23 13:02:47 +00:00
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-04-09 17:42:54 +00:00
|
|
|
* Fri Apr 09 2021 Sohan Kunkerkar <skunkerk@redhat.com> - 5.0.0-1
|
|
|
|
- Update to 5.0.0
|
|
|
|
|
2021-01-27 16:47:42 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-12-28 12:26:51 +00:00
|
|
|
* Mon Dec 28 13:26:51 CET 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 4.6.0-3
|
|
|
|
- Rebuild
|
|
|
|
|
2020-12-14 15:26:52 +00:00
|
|
|
* Mon Dec 14 2020 Sohan Kunkerkar <skunkerk@redhat.com> - 4.6.0-2
|
|
|
|
- Rebuild because of Fedora infra issues last week to see if a new build fixes some
|
|
|
|
problems we are seeing.
|
|
|
|
|
2020-12-10 00:27:41 +00:00
|
|
|
* Wed Dec 09 2020 Sohan Kunkerkar <skunkerk@redhat.com> - 4.6.0-1
|
|
|
|
- Update to 4.6.0
|
|
|
|
|
2020-10-22 20:10:08 +00:00
|
|
|
* Thu Oct 22 2020 Dusty Mabe <dusty@dustymabe.com> - 4.5.3-1
|
|
|
|
- Update to 4.5.3
|
|
|
|
|
2020-10-14 18:47:10 +00:00
|
|
|
* Wed Oct 14 2020 Dusty Mabe <dusty@dustymabe.com> - 4.5.1-3
|
|
|
|
- Backport patch to get afterburn sshkeys working on openstack.
|
|
|
|
- https://github.com/coreos/afterburn/pull/493
|
|
|
|
|
2020-09-30 12:06:46 +00:00
|
|
|
* Wed Sep 30 2020 Fabio Valentini <decathorpe@gmail.com> - 4.5.1-2
|
|
|
|
- Un-downgrade mockito to 0.27.
|
|
|
|
|
2020-09-04 00:17:45 +00:00
|
|
|
* Thu Sep 03 2020 Dusty Mabe <dusty@dustymabe.com> - 4.5.1-1
|
|
|
|
- Update to 4.5.1
|
|
|
|
|
2020-08-16 15:01:11 +00:00
|
|
|
* Sun Aug 16 15:01:11 GMT 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 4.5.0-2
|
|
|
|
- Rebuild
|
|
|
|
|
2020-08-13 16:37:44 +00:00
|
|
|
* Thu Aug 13 2020 Dusty Mabe <dusty@dustymabe.com> - 4.5.0-1
|
|
|
|
- Update to 4.5.0
|
|
|
|
|
2020-07-29 07:23:14 +00:00
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-07-24 22:10:40 +00:00
|
|
|
* Fri Jul 24 2020 Dusty Mabe <dusty@dustymabe.com> - 4.4.2-1
|
|
|
|
- Update to 4.4.2
|
|
|
|
|
2020-05-23 09:28:22 +00:00
|
|
|
* Sat May 23 11:27:14 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 4.4.0-1
|
|
|
|
- Update to 4.4.0
|
|
|
|
|
2020-05-22 09:31:32 +00:00
|
|
|
* Fri May 22 11:30:58 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 4.3.3-4
|
|
|
|
- Update users to 0.10
|
|
|
|
|
2020-05-18 10:55:05 +00:00
|
|
|
* Mon May 18 12:54:25 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 4.3.3-3
|
|
|
|
- Update mockito to 0.25
|
|
|
|
|
2020-05-17 11:38:54 +00:00
|
|
|
* Sun May 17 13:37:32 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 4.3.3-2
|
|
|
|
- Update few dependencies
|
|
|
|
|
2020-05-01 18:43:26 +00:00
|
|
|
* Fri May 01 2020 Robert Fairley <rfairley@redhat.com> - 4.3.3-1
|
|
|
|
- Update to 4.3.3
|
|
|
|
|
2020-02-28 20:24:06 +00:00
|
|
|
* Fri Feb 28 21:23:17 CET 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 4.3.2-1
|
|
|
|
- Update to 4.3.2
|
|
|
|
|
2020-02-21 20:05:30 +00:00
|
|
|
* Fri Feb 21 2020 Josh Stone <jistone@redhat.com> - 4.3.1-3
|
|
|
|
- Bump nix to 0.17 and mockito 0.23
|
|
|
|
|
2020-02-11 14:25:40 +00:00
|
|
|
* Tue Feb 11 15:24:47 CET 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 4.3.1-2
|
|
|
|
- Update deps
|
|
|
|
|
2020-02-07 20:15:37 +00:00
|
|
|
* Fri Feb 07 2020 Robert Fairley <rfairley@redhat.com> - 4.3.1-1
|
|
|
|
- Update to 4.3.1
|
|
|
|
|
2020-01-30 19:49:56 +00:00
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2020-01-09 19:26:13 +00:00
|
|
|
* Thu Jan 09 2020 Josh Stone <jistone@redhat.com> - 4.2.0-2
|
|
|
|
- Bump to nix 0.16, mockito 0.22
|
|
|
|
|
2019-10-15 09:06:49 +00:00
|
|
|
* Tue Oct 15 2019 Robert Fairley <rfairley@redhat.com> - 4.2.0-1
|
|
|
|
- Update to 4.2.0
|
|
|
|
|
2019-09-21 11:12:56 +00:00
|
|
|
* Sat Sep 21 13:11:54 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.1.3-1
|
|
|
|
- Update to 4.1.3
|
|
|
|
|
2019-07-26 20:31:12 +00:00
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-07-23 21:14:54 +00:00
|
|
|
* Tue Jul 23 2019 Robert Fairley <rfairley@redhat.com> - 4.1.2-1
|
|
|
|
- Update to 4.1.2
|
|
|
|
|
2019-06-22 09:59:18 +00:00
|
|
|
* Sat Jun 22 11:59:02 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.1.1-3
|
|
|
|
- Rename dracut subpackage
|
|
|
|
|
2019-06-22 09:07:06 +00:00
|
|
|
* Sat Jun 22 11:06:19 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.1.1-2
|
|
|
|
- Add dracut modules
|
|
|
|
|
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
|