|
|
b38468 |
# Ganerated by rust2rpm 13
|
|
|
b38468 |
%define dracutlibdir %{_prefix}/lib/dracut
|
|
|
b38468 |
%bcond_without check
|
|
|
b38468 |
%global __cargo_skip_build 0
|
|
|
b38468 |
# The library is for internal code reuse and is not a public API
|
|
|
b38468 |
%global __cargo_is_lib 0
|
|
|
b38468 |
|
|
|
b38468 |
%global coidracutcommit 80d42a6b34c0942309331f2533d1af61582f4320
|
|
|
b38468 |
%global coidracutshortcommit %(c=%{coidracutcommit}; echo ${c:0:7})
|
|
|
b38468 |
|
|
|
b38468 |
%global crate coreos-installer
|
|
|
b38468 |
|
|
|
b38468 |
Name: rust-%{crate}
|
|
|
b38468 |
Version: 0.10.1
|
|
|
b38468 |
Release: 4%{?dist}
|
|
|
b38468 |
Summary: Installer for Fedora CoreOS and RHEL CoreOS
|
|
|
b38468 |
|
|
|
b38468 |
# Upstream license specification: Apache-2.0
|
|
|
b38468 |
License: ASL 2.0
|
|
|
b38468 |
URL: https://github.com/coreos/coreos-installer
|
|
|
b38468 |
Source: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
|
|
b38468 |
Source1: https://github.com/coreos/coreos-installer/releases/download/v%{version}/%{crate}-%{version}-vendor.tar.gz
|
|
|
b38468 |
Source2: https://github.com/runcom/coreos-installer-dracut/archive/%{coidracutcommit}/coreos-installer-dracut-%{coidracutshortcommit}.tar.gz
|
|
|
b38468 |
|
|
|
b38468 |
|
|
|
b38468 |
# The RHEL 8 rust-toolset macros don't let us enable features from the
|
|
|
b38468 |
# %%cargo_* macros. Enable rdcore directly in Cargo.toml.
|
|
|
b38468 |
Patch0: enable-rdcore.patch
|
|
|
b38468 |
# LTO causes runtime crashes on s390x
|
|
|
b38468 |
# https://github.com/coreos/coreos-installer/pull/360
|
|
|
b38468 |
# https://github.com/coreos/coreos-installer/issues/372
|
|
|
b38468 |
# https://bugzilla.redhat.com/show_bug.cgi?id=1863466
|
|
|
b38468 |
Patch1: disable-lto.patch
|
|
|
b38468 |
|
|
|
b38468 |
ExclusiveArch: %{rust_arches}
|
|
|
b38468 |
BuildRequires: openssl-devel
|
|
|
b38468 |
BuildRequires: xz-devel
|
|
|
b38468 |
BuildRequires: rust-toolset
|
|
|
b38468 |
BuildRequires: systemd
|
|
|
b38468 |
# For tests
|
|
|
b38468 |
BuildRequires: gnupg2
|
|
|
b38468 |
|
|
|
b38468 |
Requires: gnupg
|
|
|
b38468 |
Requires: kpartx
|
|
|
b38468 |
Requires: systemd-udev
|
|
|
b38468 |
Requires: util-linux
|
|
|
b38468 |
%ifarch s390x
|
|
|
b38468 |
# This should eventually be spelled "s390utils-core" but the binaries
|
|
|
b38468 |
# haven't been broken out of s390utils-base yet
|
|
|
b38468 |
Requires: /usr/sbin/chreipl
|
|
|
b38468 |
Requires: /usr/sbin/dasdfmt
|
|
|
b38468 |
Requires: /usr/sbin/fdasd
|
|
|
b38468 |
Requires: /usr/sbin/lszdev
|
|
|
b38468 |
Requires: /usr/sbin/zipl
|
|
|
b38468 |
%endif
|
|
|
b38468 |
|
|
|
b38468 |
#BuildRequires: rust-packaging
|
|
|
b38468 |
#BuildRequires: systemd-rpm-macros
|
|
|
b38468 |
|
|
|
b38468 |
%global _description %{expand:
|
|
|
b38468 |
coreos-installer installs Fedora CoreOS or RHEL CoreOS to bare-metal
|
|
|
b38468 |
machines (or, occasionally, to virtual machines).
|
|
|
b38468 |
}
|
|
|
b38468 |
|
|
|
b38468 |
%description %{_description}
|
|
|
b38468 |
|
|
|
b38468 |
%package -n %{crate}
|
|
|
b38468 |
Summary: %{summary}
|
|
|
b38468 |
# ASL 2.0
|
|
|
b38468 |
# ASL 2.0 or Boost
|
|
|
b38468 |
# MIT
|
|
|
b38468 |
# MIT or ASL 2.0
|
|
|
b38468 |
# Unlicense or MIT
|
|
|
b38468 |
# zlib
|
|
|
b38468 |
License: ASL 2.0 and MIT and zlib
|
|
|
b38468 |
|
|
|
b38468 |
# Since `rust-coreos-installer` creates a `coreos-installer`
|
|
|
b38468 |
# subpackage with a newer version number, which supersedes the
|
|
|
b38468 |
# deprecated `coreos-installer` package (https://src.fedoraproject.org/rpms/coreos-installer),
|
|
|
b38468 |
# an explicit `Obsoletes:` for `coreos-installer` is not necessary.
|
|
|
b38468 |
|
|
|
b38468 |
%description -n %{crate} %{_description}
|
|
|
b38468 |
|
|
|
b38468 |
%files -n %{crate}
|
|
|
b38468 |
%license LICENSE
|
|
|
b38468 |
%doc README.md
|
|
|
b38468 |
%{_bindir}/coreos-installer
|
|
|
b38468 |
|
|
|
b38468 |
%prep
|
|
|
b38468 |
%autosetup -n %{crate}-%{version} -p1
|
|
|
b38468 |
%setup -n %{crate}-%{version} -D -T -a 2
|
|
|
b38468 |
%cargo_prep -V 1
|
|
|
b38468 |
# https://github.com/rust-lang-nursery/error-chain/pull/289
|
|
|
b38468 |
find -name '*.rs' -executable -exec chmod a-x {} \;
|
|
|
b38468 |
|
|
|
b38468 |
%build
|
|
|
b38468 |
%cargo_build
|
|
|
b38468 |
|
|
|
b38468 |
%install
|
|
|
b38468 |
%cargo_install
|
|
|
b38468 |
# Install binaries, dracut modules, units, targets, generators for running via systemd
|
|
|
b38468 |
install -D -m 0755 -t %{buildroot}%{dracutlibdir}/modules.d/50rdcore dracut/50rdcore/module-setup.sh
|
|
|
b38468 |
install -D -m 0755 -t %{buildroot}%{_libexecdir} scripts/coreos-installer-service
|
|
|
b38468 |
install -D -m 0755 -t %{buildroot}%{_libexecdir} scripts/coreos-installer-disable-device-auto-activation
|
|
|
b38468 |
install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer-disable-device-auto-activation.service
|
|
|
b38468 |
install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer.service
|
|
|
b38468 |
install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer-reboot.service
|
|
|
b38468 |
install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer-noreboot.service
|
|
|
b38468 |
install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer-pre.target
|
|
|
b38468 |
install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer.target
|
|
|
b38468 |
install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer-post.target
|
|
|
b38468 |
install -D -m 0755 -t %{buildroot}%{_systemdgeneratordir} systemd/coreos-installer-generator
|
|
|
b38468 |
mv %{buildroot}%{_bindir}/rdcore %{buildroot}%{dracutlibdir}/modules.d/50rdcore/
|
|
|
b38468 |
# 51coreos-installer for coreos-installer-dracut
|
|
|
b38468 |
install -D -m 0755 -t %{buildroot}%{dracutlibdir}/modules.d/51coreos-installer coreos-installer-dracut-%{coidracutcommit}/dracut/51coreos-installer/module-setup.sh
|
|
|
b38468 |
install -D -m 0755 -t %{buildroot}%{dracutlibdir}/modules.d/51coreos-installer coreos-installer-dracut-%{coidracutcommit}/dracut/systemd/coreos-installer.target
|
|
|
b38468 |
install -D -m 0755 -t %{buildroot}%{dracutlibdir}/modules.d/51coreos-installer coreos-installer-dracut-%{coidracutcommit}/dracut/scripts/coreos-installer-service
|
|
|
b38468 |
install -D -m 0755 -t %{buildroot}%{dracutlibdir}/modules.d/51coreos-installer coreos-installer-dracut-%{coidracutcommit}/dracut/scripts/coreos-installer-growfs
|
|
|
b38468 |
install -D -m 0644 -t %{buildroot}%{dracutlibdir}/modules.d/51coreos-installer coreos-installer-dracut-%{coidracutcommit}/dracut/systemd/coreos-installer.service
|
|
|
b38468 |
install -D -m 0644 -t %{buildroot}%{dracutlibdir}/modules.d/51coreos-installer coreos-installer-dracut-%{coidracutcommit}/dracut/systemd/coreos-installer-growfs.service
|
|
|
b38468 |
install -D -m 0644 -t %{buildroot}%{dracutlibdir}/modules.d/51coreos-installer coreos-installer-dracut-%{coidracutcommit}/dracut/systemd/coreos-installer-reboot.service
|
|
|
b38468 |
install -D -m 0644 -t %{buildroot}%{dracutlibdir}/modules.d/51coreos-installer coreos-installer-dracut-%{coidracutcommit}/dracut/systemd/coreos-installer-noreboot.service
|
|
|
b38468 |
install -D -m 0755 -t %{buildroot}%{dracutlibdir}/modules.d/51coreos-installer coreos-installer-dracut-%{coidracutcommit}/dracut/systemd/coreos-installer-generator
|
|
|
b38468 |
|
|
|
b38468 |
%package -n %{crate}-bootinfra
|
|
|
b38468 |
Summary: %{crate} boot-time infrastructure for use on Fedora/RHEL CoreOS
|
|
|
b38468 |
Requires: %{crate}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
b38468 |
# ASL 2.0
|
|
|
b38468 |
# ASL 2.0 or Boost
|
|
|
b38468 |
# MIT
|
|
|
b38468 |
# MIT or ASL 2.0
|
|
|
b38468 |
# Unlicense or MIT
|
|
|
b38468 |
# zlib
|
|
|
b38468 |
License: ASL 2.0 and MIT and zlib
|
|
|
b38468 |
|
|
|
b38468 |
# Package was renamed from coreos-installer-systemd when rdcore was added
|
|
|
b38468 |
Provides: %{crate}-systemd = %{version}-%{release}
|
|
|
b38468 |
Obsoletes: %{crate}-systemd <= 0.3.0-3
|
|
|
b38468 |
|
|
|
b38468 |
%description -n %{crate}-bootinfra
|
|
|
b38468 |
This subpackage contains boot-time infrastructure for Fedora CoreOS and
|
|
|
b38468 |
RHEL CoreOS. It is not needed on other platforms.
|
|
|
b38468 |
|
|
|
b38468 |
%files -n %{crate}-bootinfra
|
|
|
b38468 |
%{dracutlibdir}/modules.d/50rdcore/*
|
|
|
b38468 |
%{_libexecdir}/*
|
|
|
b38468 |
%{_unitdir}/*
|
|
|
b38468 |
%{_systemdgeneratordir}/*
|
|
|
b38468 |
|
|
|
b38468 |
%package -n %{crate}-dracut
|
|
|
b38468 |
Summary: %{crate} provides coreos-installer as a dracut module.
|
|
|
b38468 |
Requires: %{crate} = %{version}-%{release}
|
|
|
b38468 |
|
|
|
b38468 |
%description -n %{crate}-dracut
|
|
|
b38468 |
This subpackage contains files and configuration to run coreos-installer
|
|
|
b38468 |
from the initramfs.
|
|
|
b38468 |
|
|
|
b38468 |
%files -n %{crate}-dracut
|
|
|
b38468 |
%{dracutlibdir}/modules.d/51coreos-installer/*
|
|
|
b38468 |
|
|
|
b38468 |
%if %{with check}
|
|
|
b38468 |
%check
|
|
|
b38468 |
%cargo_test
|
|
|
b38468 |
%endif
|
|
|
b38468 |
|
|
|
b38468 |
%changelog
|
|
|
b38468 |
* Thu Nov 18 2021 Antonio Murdaca <runcom@linux.com> - 0.10.1-4
|
|
|
b38468 |
- fix dracut module dependencies
|
|
|
b38468 |
|
|
|
b38468 |
* Wed Nov 17 2021 Antonio Murdaca <runcom@linux.com> - 0.10.1-3
|
|
|
b38468 |
- fix dracut module installation target
|
|
|
b38468 |
|
|
|
b38468 |
* Tue Oct 26 2021 Antonio Murdaca <runcom@linux.com> - 0.10.1-2
|
|
|
b38468 |
- rebuilt
|
|
|
b38468 |
|
|
|
b38468 |
* Mon Oct 25 2021 Antonio Murdaca <runcom@linux.com> - 0.10.1-1
|
|
|
b38468 |
- New release
|
|
|
b38468 |
|
|
|
b38468 |
* Thu Sep 16 11:20:52 CET 2021 Antonio Murdaca <amurdaca@redhat.com> - 0.10.0-1
|
|
|
b38468 |
- New bumped release
|
|
|
b38468 |
|
|
|
b38468 |
* Mon Dec 28 13:28:50 CET 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.7.2-2
|
|
|
b38468 |
- Rebuild
|
|
|
b38468 |
|
|
|
b38468 |
* Thu Oct 22 2020 Sohan Kunkerkar <skunkerk@redhat.com> - 0.7.2-1
|
|
|
b38468 |
- New release
|
|
|
b38468 |
|
|
|
b38468 |
* Tue Oct 06 2020 Dusty Mabe <dusty@dustymabe.com> - 0.7.0-4
|
|
|
b38468 |
- Backport commit to start coreos-installer service after systemd-resolved
|
|
|
b38468 |
- https://github.com/coreos/coreos-installer/pull/389
|
|
|
b38468 |
|
|
|
b38468 |
* Thu Oct 01 2020 Dusty Mabe <dusty@dustymabe.com> - 0.7.0-3
|
|
|
b38468 |
- Backport commit to add F33 and F34 keys. Drop F31 keys.
|
|
|
b38468 |
- https://github.com/coreos/coreos-installer/pull/387
|
|
|
b38468 |
|
|
|
b38468 |
* Wed Sep 30 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.7.0-2
|
|
|
b38468 |
- Fix SIGSEGV in tests on s390x
|
|
|
b38468 |
|
|
|
b38468 |
* Mon Sep 21 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.7.0-1
|
|
|
b38468 |
- New release
|
|
|
b38468 |
|
|
|
b38468 |
* Tue Aug 25 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.6.0-1
|
|
|
b38468 |
- New release
|
|
|
b38468 |
|
|
|
b38468 |
* Sun Aug 16 15:01:11 GMT 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.5.0-2
|
|
|
b38468 |
- Rebuild
|
|
|
b38468 |
|
|
|
b38468 |
* Fri Jul 31 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.5.0-1
|
|
|
b38468 |
- New release
|
|
|
b38468 |
|
|
|
b38468 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-2
|
|
|
b38468 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
b38468 |
|
|
|
b38468 |
* Fri Jul 24 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.4.0-1
|
|
|
b38468 |
- New release
|
|
|
b38468 |
- Rename -systemd subpackage to -bootinfra
|
|
|
b38468 |
- Add rdcore Dracut module to -bootinfra
|
|
|
b38468 |
|
|
|
b38468 |
* Fri Jul 24 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.3.0-2
|
|
|
b38468 |
- Rebuild
|
|
|
b38468 |
|
|
|
b38468 |
* Mon Jul 13 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.3.0-1
|
|
|
b38468 |
- New release
|
|
|
b38468 |
|
|
|
b38468 |
* Sat May 30 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.2.1-2
|
|
|
b38468 |
- Fixup license
|
|
|
b38468 |
|
|
|
b38468 |
* Fri May 29 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.2.1-1
|
|
|
b38468 |
- New release
|
|
|
b38468 |
- Make coreos-installer-{service,generator} world-readable
|
|
|
b38468 |
|
|
|
b38468 |
* Tue May 05 2020 Robert Fairley <rfairley@redhat.com> - 0.2.0-1
|
|
|
b38468 |
- Update to 0.2.0
|
|
|
b38468 |
|
|
|
b38468 |
* Sat Mar 21 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.1.3-1
|
|
|
b38468 |
- New release
|
|
|
b38468 |
|
|
|
b38468 |
* Fri Feb 21 2020 Josh Stone <jistone@redhat.com> - 0.1.2-4
|
|
|
b38468 |
- Bump to nix 0.17 and reqwest 0.10
|
|
|
b38468 |
|
|
|
b38468 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-3
|
|
|
b38468 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
b38468 |
|
|
|
b38468 |
* Thu Jan 09 2020 Josh Stone <jistone@redhat.com> - 0.1.2-2
|
|
|
b38468 |
- Remove the nix downgrade.
|
|
|
b38468 |
|
|
|
b38468 |
* Wed Jan 08 2020 Dusty Mabe <dusty@dustymabe.com> - 0.1.2-1
|
|
|
b38468 |
- Bump to new upstream release 0.1.2
|
|
|
b38468 |
- Release notes: https://github.com/coreos/coreos-installer/releases/tag/v0.1.2
|
|
|
b38468 |
- Update spec file to include systemd units from upstream
|
|
|
b38468 |
- These were added upstream in https://github.com/coreos/coreos-installer/pull/119
|
|
|
b38468 |
|
|
|
b38468 |
* Fri Dec 20 17:57:28 UTC 2019 Robert Fairley <rfairley@redhat.com> - 0.1.1-1
|
|
|
b38468 |
- Initial package
|