2020-02-21 20:05:31 +00:00
|
|
|
# Generated by rust2rpm 13
|
2019-12-20 21:25:42 +00:00
|
|
|
%bcond_without check
|
|
|
|
%global __cargo_skip_build 0
|
|
|
|
|
|
|
|
%global crate coreos-installer
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
2020-07-15 17:59:02 +00:00
|
|
|
Version: 0.3.0
|
|
|
|
Release: 1%{?dist}
|
2019-12-20 21:25:42 +00:00
|
|
|
Summary: Installer for Fedora CoreOS and RHEL CoreOS
|
|
|
|
|
|
|
|
# Upstream license specification: Apache-2.0
|
|
|
|
License: ASL 2.0
|
|
|
|
URL: https://crates.io/crates/coreos-installer
|
|
|
|
Source: %{crates_source}
|
2020-07-15 17:59:02 +00:00
|
|
|
# https://github.com/coreos/coreos-installer/pull/299
|
|
|
|
Patch0: cargo-byte-unit.patch
|
2019-12-20 21:25:42 +00:00
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
2020-01-06 21:56:36 +00:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2019-12-20 21:25:42 +00:00
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
coreos-installer installs Fedora CoreOS or RHEL CoreOS to bare-metal
|
|
|
|
machines (or, occasionally, to virtual machines).
|
|
|
|
}
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
%package -n %{crate}
|
|
|
|
Summary: %{summary}
|
2020-05-30 17:09:37 +00:00
|
|
|
# (MIT or ASL 2.0) and BSD
|
|
|
|
# ASL 2.0
|
|
|
|
# ASL 2.0 or Boost
|
|
|
|
# MIT
|
|
|
|
# MIT or ASL 2.0
|
|
|
|
# Unlicense or MIT
|
|
|
|
# zlib
|
|
|
|
License: ASL 2.0 and MIT and zlib and BSD
|
2019-12-20 21:25:42 +00:00
|
|
|
|
|
|
|
# Since `rust-coreos-installer` creates a `coreos-installer`
|
|
|
|
# subpackage with a newer version number, which supersedes the
|
|
|
|
# deprecated `coreos-installer` package (https://src.fedoraproject.org/rpms/coreos-installer),
|
|
|
|
# an explicit `Obsoletes:` for `coreos-installer` is not necessary.
|
|
|
|
|
|
|
|
# Obsolete dracut modules as they are not provided in this package.
|
|
|
|
Obsoletes: coreos-installer-dracut < 0.0.1
|
|
|
|
|
|
|
|
%description -n %{crate} %{_description}
|
|
|
|
|
|
|
|
%files -n %{crate}
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
|
|
|
%{_bindir}/coreos-installer
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cargo_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cargo_install
|
2020-01-06 21:56:36 +00:00
|
|
|
# Install binaries, units, targets, generators for running via systemd
|
2020-07-15 17:59:02 +00:00
|
|
|
install -D -m 0755 -t %{buildroot}%{_libexecdir} scripts/coreos-installer-service
|
|
|
|
install -D -m 0755 -t %{buildroot}%{_libexecdir} scripts/coreos-installer-disable-device-auto-activation
|
|
|
|
install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer-disable-device-auto-activation.service
|
2020-01-06 21:56:36 +00:00
|
|
|
install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer.service
|
|
|
|
install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer-reboot.service
|
|
|
|
install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer-noreboot.service
|
2020-07-15 17:59:02 +00:00
|
|
|
install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer-pre.target
|
2020-01-06 21:56:36 +00:00
|
|
|
install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer.target
|
2020-05-30 01:38:46 +00:00
|
|
|
install -D -m 0755 -t %{buildroot}%{_systemdgeneratordir} systemd/coreos-installer-generator
|
2020-01-06 21:56:36 +00:00
|
|
|
|
|
|
|
%package -n %{crate}-systemd
|
|
|
|
Summary: Systemd service files for %{crate}
|
2020-05-30 17:09:37 +00:00
|
|
|
Requires: %{crate}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
2020-01-06 21:56:36 +00:00
|
|
|
|
|
|
|
%description -n %{crate}-systemd
|
2020-05-30 17:09:37 +00:00
|
|
|
%{summary}.
|
2020-01-06 21:56:36 +00:00
|
|
|
|
|
|
|
%files -n %{crate}-systemd
|
|
|
|
%{_libexecdir}/*
|
|
|
|
%{_unitdir}/*
|
|
|
|
%{_systemdgeneratordir}/*
|
2019-12-20 21:25:42 +00:00
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
|
|
|
%cargo_test
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%changelog
|
2020-07-15 17:59:02 +00:00
|
|
|
* Mon Jul 13 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.3.0-1
|
|
|
|
- New release
|
|
|
|
|
2020-05-30 17:09:37 +00:00
|
|
|
* Sat May 30 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.2.1-2
|
|
|
|
- Fixup license
|
|
|
|
|
2020-05-30 01:17:09 +00:00
|
|
|
* Fri May 29 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.2.1-1
|
|
|
|
- New release
|
2020-05-30 01:38:46 +00:00
|
|
|
- Make coreos-installer-{service,generator} world-readable
|
2020-05-30 01:17:09 +00:00
|
|
|
|
2020-05-05 03:53:38 +00:00
|
|
|
* Tue May 05 2020 Robert Fairley <rfairley@redhat.com> - 0.2.0-1
|
|
|
|
- Update to 0.2.0
|
|
|
|
|
2020-03-21 05:53:05 +00:00
|
|
|
* Sat Mar 21 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.1.3-1
|
|
|
|
- New release
|
|
|
|
|
2020-02-21 20:05:31 +00:00
|
|
|
* Fri Feb 21 2020 Josh Stone <jistone@redhat.com> - 0.1.2-4
|
|
|
|
- Bump to nix 0.17 and reqwest 0.10
|
|
|
|
|
2020-01-30 20:12:11 +00:00
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2020-01-09 19:37:17 +00:00
|
|
|
* Thu Jan 09 2020 Josh Stone <jistone@redhat.com> - 0.1.2-2
|
|
|
|
- Remove the nix downgrade.
|
|
|
|
|
2020-01-06 21:55:57 +00:00
|
|
|
* Wed Jan 08 2020 Dusty Mabe <dusty@dustymabe.com> - 0.1.2-1
|
|
|
|
- Bump to new upstream release 0.1.2
|
|
|
|
- Release notes: https://github.com/coreos/coreos-installer/releases/tag/v0.1.2
|
2020-01-06 21:56:36 +00:00
|
|
|
- Update spec file to include systemd units from upstream
|
|
|
|
- These were added upstream in https://github.com/coreos/coreos-installer/pull/119
|
2020-01-06 21:55:57 +00:00
|
|
|
|
2019-12-20 21:25:42 +00:00
|
|
|
* Fri Dec 20 17:57:28 UTC 2019 Robert Fairley <rfairley@redhat.com> - 0.1.1-1
|
|
|
|
- Initial package
|