Blame SPECS/rust-afterburn.spec

881328
# Generated by rust2rpm 15
881328
%bcond_without check
881328
%global __cargo_skip_build 0
881328
881328
%global dracutmodulesdir %(pkg-config --variable=dracutmodulesdir dracut || echo '/usr/lib/dracut/modules.d')
881328
881328
%global crate afterburn
881328
881328
Name:           rust-%{crate}
881328
Version:        5.2.0
881328
Release:        2%{?dist}
881328
Summary:        Simple cloud provider agent
881328
881328
# Upstream license specification: Apache-2.0
881328
License:        ASL 2.0
881328
URL:            https://crates.io/crates/afterburn
881328
Source0:        %{crates_source}
881328
Source1:        https://github.com/coreos/%{crate}/releases/download/v%{version}/%{crate}-%{version}-vendor.tar.gz
881328
881328
ExclusiveArch:  %{rust_arches}
881328
%if 0%{?rhel} && !0%{?eln}
881328
BuildRequires:  rust-toolset
881328
BuildRequires:  openssl-devel
881328
# This is needed because the cc crate, which is
881328
# used for linking final build results of crates,
881328
# does not work without it.
881328
BuildRequires:  glibc-devel 
881328
%else
881328
BuildRequires:  rust-packaging
881328
%endif
881328
BuildRequires:  systemd
881328
881328
%global _description %{expand:
881328
Simple cloud provider agent.}
881328
881328
%description %{_description}
881328
881328
%package     -n %{crate}
881328
Summary:        %{summary}
881328
# ASL 2.0
881328
# ASL 2.0 or Boost
881328
# BSD
881328
# MIT
881328
# MIT or ASL 2.0
881328
# MPLv2.0 or MIT or ASL 2.0
881328
# Unlicense or MIT
881328
# zlib
881328
License:        ASL 2.0 and MIT and BSD and zlib
881328
%{?systemd_requires}
881328
881328
%description -n %{crate} %{_description}
881328
881328
%files       -n %{crate}
881328
%license LICENSE
881328
%doc README.md
881328
%{_bindir}/afterburn
881328
%{_unitdir}/afterburn.service
881328
%{_unitdir}/afterburn-checkin.service
881328
%{_unitdir}/afterburn-firstboot-checkin.service
881328
%{_unitdir}/afterburn-sshkeys@.service
881328
%{_unitdir}/afterburn-sshkeys.target
881328
881328
%post        -n %{crate}
881328
%systemd_post afterburn.service
881328
%systemd_post afterburn-checkin.service
881328
%systemd_post afterburn-firstboot-checkin.service
881328
%systemd_post afterburn-sshkeys@.service
881328
881328
%preun       -n %{crate}
881328
%systemd_preun afterburn.service
881328
%systemd_preun afterburn-checkin.service
881328
%systemd_preun afterburn-firstboot-checkin.service
881328
%systemd_preun afterburn-sshkeys@.service
881328
881328
%postun      -n %{crate}
881328
%systemd_postun afterburn.service
881328
%systemd_postun afterburn-checkin.service
881328
%systemd_postun afterburn-firstboot-checkin.service
881328
%systemd_postun afterburn-sshkeys@.service
881328
881328
%package     -n %{crate}-dracut
881328
Summary:        Dracut modules for afterburn
881328
BuildRequires:  pkgconfig(dracut)
881328
Requires:       %{crate}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
881328
Requires:       dracut
881328
Requires:       dracut-network
881328
881328
%description -n %{crate}-dracut
881328
Dracut module that enables afterburn and corresponding services
881328
to run in the initramfs on boot.
881328
881328
%files       -n %{crate}-dracut
881328
%{dracutmodulesdir}/30afterburn/
881328
881328
%prep
881328
%autosetup -n %{crate}-%{version_no_tilde} -p1
881328
%if 0%{?rhel} && !0%{?eln}
881328
tar xvf %{SOURCE1}
881328
mkdir -p .cargo
881328
cat >.cargo/config << EOF
881328
[source.crates-io]
881328
replace-with = "vendored-sources"
881328
881328
[source.vendored-sources]
881328
directory = "vendor"
881328
EOF
881328
%else
881328
%cargo_prep
881328
%endif
881328
# afterburn-sshkeys@.service is by default enabled for the 'core' user in
881328
# Fedora CoreOS.
881328
# Based on https://github.com/coreos/afterburn/blob/master/Makefile.
881328
sed -e 's,@DEFAULT_INSTANCE@,core,' < \
881328
  systemd/afterburn-sshkeys@.service.in > \
881328
  systemd/afterburn-sshkeys@.service
881328
881328
%if !0%{?rhel} || 0%{?eln}
881328
%generate_buildrequires
881328
%cargo_generate_buildrequires
881328
%endif
881328
881328
%build
881328
%cargo_build
881328
881328
%install
881328
%if 0%{?rhel} && !0%{?eln}
881328
%make_install INSTALL="install -p -c"
881328
%else
881328
%cargo_install
881328
install -Dpm0644 -t %{buildroot}%{_unitdir} \
881328
  systemd/*.service systemd/*.target
881328
%endif
881328
mkdir -p %{buildroot}%{dracutmodulesdir}
881328
cp -a dracut/* %{buildroot}%{dracutmodulesdir}
881328
881328
%if %{with check}
881328
%check
881328
%cargo_test
881328
%endif
881328
881328
%changelog
881328
* Wed Mar 09 2022 Timothée Ravier <tim@siosm.fr> - 5.2.0-2
881328
- Remove Windows binaries from vendor tarball
881328
881328
* Fri Jan 14 2022 Benjamin Gilbert <bgilbert@redhat.com> - 5.2.0-1
881328
- Update to 5.2.0
881328
881328
* Fri Sep 24 2021 Sohan Kunkerkar <skunkerk@redhat.com> - 5.1.0-3
881328
- Vendor rust dependencies on el9
881328
881328
* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 5.1.0-2
881328
- Rebuilt with OpenSSL 3.0.0
881328
881328
* Tue Aug 10 2021 Sohan Kunkerkar <skunkerk@redhat.com> - 5.1.0-1
881328
- Update to 5.1.0
881328
881328
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-2
881328
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
881328
881328
* Fri Apr 09 2021 Sohan Kunkerkar <skunkerk@redhat.com> - 5.0.0-1
881328
- Update to 5.0.0
881328
881328
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.0-4
881328
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
881328
881328
* Mon Dec 28 13:26:51 CET 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 4.6.0-3
881328
- Rebuild
881328
881328
* Mon Dec 14 2020 Sohan Kunkerkar <skunkerk@redhat.com> - 4.6.0-2
881328
- Rebuild because of Fedora infra issues last week to see if a new build fixes some 
881328
  problems we are seeing.
881328
881328
* Wed Dec 09 2020 Sohan Kunkerkar <skunkerk@redhat.com> - 4.6.0-1
881328
- Update to 4.6.0 
881328
881328
* Thu Oct 22 2020 Dusty Mabe <dusty@dustymabe.com> - 4.5.3-1
881328
- Update to 4.5.3
881328
881328
* Wed Oct 14 2020 Dusty Mabe <dusty@dustymabe.com> - 4.5.1-3
881328
- Backport patch to get afterburn sshkeys working on openstack.
881328
    - https://github.com/coreos/afterburn/pull/493
881328
881328
* Wed Sep 30 2020 Fabio Valentini <decathorpe@gmail.com> - 4.5.1-2
881328
- Un-downgrade mockito to 0.27.
881328
881328
* Thu Sep 03 2020 Dusty Mabe <dusty@dustymabe.com> - 4.5.1-1
881328
- Update to 4.5.1
881328
881328
* Sun Aug 16 15:01:11 GMT 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 4.5.0-2
881328
- Rebuild
881328
881328
* Thu Aug 13 2020 Dusty Mabe <dusty@dustymabe.com> - 4.5.0-1
881328
- Update to 4.5.0
881328
881328
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.2-2
881328
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
881328
881328
* Fri Jul 24 2020 Dusty Mabe <dusty@dustymabe.com> - 4.4.2-1
881328
- Update to 4.4.2
881328
881328
* Sat May 23 11:27:14 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 4.4.0-1
881328
- Update to 4.4.0
881328
881328
* Fri May 22 11:30:58 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 4.3.3-4
881328
- Update users to 0.10
881328
881328
* Mon May 18 12:54:25 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 4.3.3-3
881328
- Update mockito to 0.25
881328
881328
* Sun May 17 13:37:32 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 4.3.3-2
881328
- Update few dependencies
881328
881328
* Fri May 01 2020 Robert Fairley <rfairley@redhat.com> - 4.3.3-1
881328
- Update to 4.3.3
881328
881328
* Fri Feb 28 21:23:17 CET 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 4.3.2-1
881328
- Update to 4.3.2
881328
881328
* Fri Feb 21 2020 Josh Stone <jistone@redhat.com> - 4.3.1-3
881328
- Bump nix to 0.17 and mockito 0.23
881328
881328
* Tue Feb 11 15:24:47 CET 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 4.3.1-2
881328
- Update deps
881328
881328
* Fri Feb 07 2020 Robert Fairley <rfairley@redhat.com> - 4.3.1-1
881328
- Update to 4.3.1
881328
881328
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-3
881328
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
881328
881328
* Thu Jan 09 2020 Josh Stone <jistone@redhat.com> - 4.2.0-2
881328
- Bump to nix 0.16, mockito 0.22
881328
881328
* Tue Oct 15 2019 Robert Fairley <rfairley@redhat.com> - 4.2.0-1
881328
- Update to 4.2.0
881328
881328
* Sat Sep 21 13:11:54 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.1.3-1
881328
- Update to 4.1.3
881328
881328
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.2-2
881328
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
881328
881328
* Tue Jul 23 2019 Robert Fairley <rfairley@redhat.com> - 4.1.2-1
881328
- Update to 4.1.2
881328
881328
* Sat Jun 22 11:59:02 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.1.1-3
881328
- Rename dracut subpackage
881328
881328
* Sat Jun 22 11:06:19 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.1.1-2
881328
- Add dracut modules
881328
881328
* Fri Jun 21 2019 Robert Fairley <rfairley@redhat.com> - 4.1.1-1
881328
- Update to 4.1.1
881328
- Regenerate specfile using rust2rpm 10 with DynamicBuildRequires
881328
881328
* Wed Jun 05 2019 Josh Stone <jistone@redhat.com> - 4.1.0-3
881328
- Bump nix to 0.14
881328
881328
* Wed May 22 17:17:00 CEST 2019 Robert Fairley <rfairley@redhat.com> - 4.1.0-2
881328
- Add afterburn-sshkeys@.service patches to enable the unit on supported platfoms only
881328
881328
* Sat Apr 27 09:55:54 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.1.0-1
881328
- Initial package