Blame rust-afterburn.spec

5113f33
# Generated by rust2rpm 15
fdc011f
%bcond_without check
f361e56
%global __cargo_skip_build 0
fdc011f
bfaeae3
%global dracutmodulesdir %(pkg-config --variable=dracutmodulesdir dracut || echo '/usr/lib/dracut/modules.d')
bfaeae3
fdc011f
%global crate afterburn
fdc011f
fdc011f
Name:           rust-%{crate}
1ce8419
Version:        4.6.0
5dd6439
Release:        3%{?dist}
fdc011f
Summary:        Simple cloud provider agent
fdc011f
fdc011f
# Upstream license specification: Apache-2.0
fdc011f
License:        ASL 2.0
fdc011f
URL:            https://crates.io/crates/afterburn
fdc011f
Source:         %{crates_source}
d8f10ed
# Initial patched metadata
d8f10ed
Patch0:         afterburn-fix-metadata.diff
fdc011f
fdc011f
ExclusiveArch:  %{rust_arches}
fdc011f
fdc011f
BuildRequires:  rust-packaging
fdc011f
BuildRequires:  systemd
fdc011f
f361e56
%global _description %{expand:
f361e56
Simple cloud provider agent.}
fdc011f
fdc011f
%description %{_description}
fdc011f
fdc011f
%package     -n %{crate}
fdc011f
Summary:        %{summary}
dce61d9
# ASL 2.0
dce61d9
# ASL 2.0 or Boost
dce61d9
# BSD
dce61d9
# MIT
dce61d9
# MIT or ASL 2.0
dce61d9
# MPLv2.0 or MIT or ASL 2.0
dce61d9
# Unlicense or MIT
dce61d9
# zlib
dce61d9
License:        ASL 2.0 and MIT and BSD and zlib
fdc011f
%{?systemd_requires}
fdc011f
fdc011f
%description -n %{crate} %{_description}
fdc011f
fdc011f
%files       -n %{crate}
fdc011f
%license LICENSE
fdc011f
%doc README.md
fdc011f
%{_bindir}/afterburn
fdc011f
%{_unitdir}/afterburn.service
fdc011f
%{_unitdir}/afterburn-checkin.service
fdc011f
%{_unitdir}/afterburn-firstboot-checkin.service
fdc011f
%{_unitdir}/afterburn-sshkeys@.service
4725759
%{_unitdir}/afterburn-sshkeys.target
fdc011f
fdc011f
%post        -n %{crate}
fdc011f
%systemd_post afterburn.service
fdc011f
%systemd_post afterburn-checkin.service
fdc011f
%systemd_post afterburn-firstboot-checkin.service
fdc011f
%systemd_post afterburn-sshkeys@.service
fdc011f
fdc011f
%preun       -n %{crate}
fdc011f
%systemd_preun afterburn.service
fdc011f
%systemd_preun afterburn-checkin.service
fdc011f
%systemd_preun afterburn-firstboot-checkin.service
fdc011f
%systemd_preun afterburn-sshkeys@.service
fdc011f
fdc011f
%postun      -n %{crate}
fdc011f
%systemd_postun afterburn.service
fdc011f
%systemd_postun afterburn-checkin.service
fdc011f
%systemd_postun afterburn-firstboot-checkin.service
fdc011f
%systemd_postun afterburn-sshkeys@.service
fdc011f
72ea02b
%package     -n %{crate}-dracut
bfaeae3
Summary:        Dracut modules for afterburn
bfaeae3
BuildRequires:  pkgconfig(dracut)
72ea02b
Requires:       %{crate}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
bfaeae3
Requires:       dracut
bfaeae3
Requires:       dracut-network
bfaeae3
72ea02b
%description -n %{crate}-dracut
bfaeae3
Dracut module that enables afterburn and corresponding services
bfaeae3
to run in the initramfs on boot.
bfaeae3
72ea02b
%files       -n %{crate}-dracut
42ba6ff
%{dracutmodulesdir}/30afterburn/
bfaeae3
fdc011f
%prep
fdc011f
%autosetup -n %{crate}-%{version_no_tilde} -p1
fdc011f
# afterburn-sshkeys@.service is by default enabled for the 'core' user in
fdc011f
# Fedora CoreOS.
fdc011f
# Based on https://github.com/coreos/afterburn/blob/master/Makefile.
fdc011f
sed -e 's,@DEFAULT_INSTANCE@,core,' < \
fdc011f
  systemd/afterburn-sshkeys@.service.in > \
fdc011f
  systemd/afterburn-sshkeys@.service
fdc011f
%cargo_prep
fdc011f
f361e56
%generate_buildrequires
f361e56
%cargo_generate_buildrequires
f361e56
fdc011f
%build
fdc011f
%cargo_build
fdc011f
fdc011f
%install
fdc011f
%cargo_install
bfaeae3
install -Dpm0644 -t %{buildroot}%{_unitdir} \
4725759
  systemd/*.service systemd/*.target
42ba6ff
mkdir -p %{buildroot}%{dracutmodulesdir}
42ba6ff
cp -a dracut/* %{buildroot}%{dracutmodulesdir}
fdc011f
fdc011f
%if %{with check}
fdc011f
%check
fdc011f
%cargo_test
fdc011f
%endif
fdc011f
fdc011f
%changelog
5dd6439
* Mon Dec 28 13:26:51 CET 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 4.6.0-3
5dd6439
- Rebuild
5dd6439
ef9b678
* Mon Dec 14 2020 Sohan Kunkerkar <skunkerk@redhat.com> - 4.6.0-2
ef9b678
- Rebuild because of Fedora infra issues last week to see if a new build fixes some 
ef9b678
  problems we are seeing.
ef9b678
1ce8419
* Wed Dec 09 2020 Sohan Kunkerkar <skunkerk@redhat.com> - 4.6.0-1
1ce8419
- Update to 4.6.0 
1ce8419
0044c8e
* Thu Oct 22 2020 Dusty Mabe <dusty@dustymabe.com> - 4.5.3-1
0044c8e
- Update to 4.5.3
0044c8e
1bd8d3c
* Wed Oct 14 2020 Dusty Mabe <dusty@dustymabe.com> - 4.5.1-3
1bd8d3c
- Backport patch to get afterburn sshkeys working on openstack.
1bd8d3c
    - https://github.com/coreos/afterburn/pull/493
1bd8d3c
c100b7b
* Wed Sep 30 2020 Fabio Valentini <decathorpe@gmail.com> - 4.5.1-2
c100b7b
- Un-downgrade mockito to 0.27.
c100b7b
4725759
* Thu Sep 03 2020 Dusty Mabe <dusty@dustymabe.com> - 4.5.1-1
4725759
- Update to 4.5.1
4725759
a4300b9
* Sun Aug 16 15:01:11 GMT 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 4.5.0-2
a4300b9
- Rebuild
a4300b9
d8f10ed
* Thu Aug 13 2020 Dusty Mabe <dusty@dustymabe.com> - 4.5.0-1
d8f10ed
- Update to 4.5.0
d8f10ed
8878e57
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.2-2
8878e57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
8878e57
b0b1955
* Fri Jul 24 2020 Dusty Mabe <dusty@dustymabe.com> - 4.4.2-1
b0b1955
- Update to 4.4.2
b0b1955
5113f33
* Sat May 23 11:27:14 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 4.4.0-1
5113f33
- Update to 4.4.0
5113f33
169f5a5
* Fri May 22 11:30:58 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 4.3.3-4
169f5a5
- Update users to 0.10
169f5a5
2200384
* Mon May 18 12:54:25 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 4.3.3-3
2200384
- Update mockito to 0.25
2200384
b266e1a
* Sun May 17 13:37:32 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 4.3.3-2
b266e1a
- Update few dependencies
b266e1a
2449ce5
* Fri May 01 2020 Robert Fairley <rfairley@redhat.com> - 4.3.3-1
2449ce5
- Update to 4.3.3
2449ce5
e57b955
* Fri Feb 28 21:23:17 CET 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 4.3.2-1
e57b955
- Update to 4.3.2
e57b955
9b3917a
* Fri Feb 21 2020 Josh Stone <jistone@redhat.com> - 4.3.1-3
9b3917a
- Bump nix to 0.17 and mockito 0.23
9b3917a
dec3766
* Tue Feb 11 15:24:47 CET 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 4.3.1-2
dec3766
- Update deps
dec3766
20dc599
* Fri Feb 07 2020 Robert Fairley <rfairley@redhat.com> - 4.3.1-1
20dc599
- Update to 4.3.1
20dc599
9b57bc8
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-3
9b57bc8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
9b57bc8
c156279
* Thu Jan 09 2020 Josh Stone <jistone@redhat.com> - 4.2.0-2
c156279
- Bump to nix 0.16, mockito 0.22
c156279
42c9269
* Tue Oct 15 2019 Robert Fairley <rfairley@redhat.com> - 4.2.0-1
42c9269
- Update to 4.2.0
42c9269
e810f91
* Sat Sep 21 13:11:54 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.1.3-1
e810f91
- Update to 4.1.3
e810f91
0caa641
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.2-2
0caa641
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
0caa641
eca8d41
* Tue Jul 23 2019 Robert Fairley <rfairley@redhat.com> - 4.1.2-1
eca8d41
- Update to 4.1.2
eca8d41
72ea02b
* Sat Jun 22 11:59:02 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.1.1-3
72ea02b
- Rename dracut subpackage
72ea02b
bfaeae3
* Sat Jun 22 11:06:19 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.1.1-2
bfaeae3
- Add dracut modules
bfaeae3
f361e56
* Fri Jun 21 2019 Robert Fairley <rfairley@redhat.com> - 4.1.1-1
f361e56
- Update to 4.1.1
f361e56
- Regenerate specfile using rust2rpm 10 with DynamicBuildRequires
f361e56
c2d56ed
* Wed Jun 05 2019 Josh Stone <jistone@redhat.com> - 4.1.0-3
c2d56ed
- Bump nix to 0.14
c2d56ed
9127d81
* Wed May 22 17:17:00 CEST 2019 Robert Fairley <rfairley@redhat.com> - 4.1.0-2
9127d81
- Add afterburn-sshkeys@.service patches to enable the unit on supported platfoms only
9127d81
fdc011f
* Sat Apr 27 09:55:54 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.1.0-1
fdc011f
- Initial package