2022-07-07 21:02:56 +00:00
|
|
|
# Originally generated by rust2rpm 16
|
2021-11-17 14:09:04 +00:00
|
|
|
%define dracutlibdir %{_prefix}/lib/dracut
|
2020-10-15 14:22:02 +00:00
|
|
|
%bcond_without check
|
|
|
|
%global __cargo_skip_build 0
|
|
|
|
# The library is for internal code reuse and is not a public API
|
|
|
|
%global __cargo_is_lib 0
|
|
|
|
|
2022-12-07 14:30:45 +00:00
|
|
|
%global dracutcommit 5a456ad690acffb43d49abed9f1940c915d68694
|
2021-11-30 15:19:36 +00:00
|
|
|
%global dracutshortcommit %(c=%{dracutcommit}; echo ${c:0:7})
|
2021-09-16 11:03:16 +00:00
|
|
|
|
2020-10-15 14:22:02 +00:00
|
|
|
%global crate coreos-installer
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
2022-09-21 16:55:07 +00:00
|
|
|
Version: 0.16.1
|
2022-12-07 14:30:45 +00:00
|
|
|
Release: 2%{?dist}
|
2020-10-15 14:22:02 +00:00
|
|
|
Summary: Installer for Fedora CoreOS and RHEL CoreOS
|
|
|
|
|
|
|
|
# Upstream license specification: Apache-2.0
|
|
|
|
License: ASL 2.0
|
2021-11-30 15:19:36 +00:00
|
|
|
URL: https://crates.io/crates/coreos-installer
|
|
|
|
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
2021-12-15 19:58:03 +00:00
|
|
|
# not used on Fedora
|
2021-11-30 15:19:36 +00:00
|
|
|
Source1: https://github.com/coreos/%{crate}/releases/download/v%{version}/%{crate}-%{version}-vendor.tar.gz
|
|
|
|
Source2: https://github.com/coreos/coreos-installer-dracut/archive/%{dracutcommit}/coreos-installer-dracut-%{dracutshortcommit}.tar.gz
|
2020-10-15 14:22:02 +00:00
|
|
|
|
2021-09-16 11:03:16 +00:00
|
|
|
# The RHEL 8 rust-toolset macros don't let us enable features from the
|
|
|
|
# %%cargo_* macros. Enable rdcore directly in Cargo.toml.
|
|
|
|
Patch0: enable-rdcore.patch
|
2020-10-15 14:22:02 +00:00
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
2021-11-30 15:19:36 +00:00
|
|
|
%if 0%{?rhel} && !0%{?eln}
|
|
|
|
BuildRequires: rust-toolset
|
2021-09-16 11:03:16 +00:00
|
|
|
BuildRequires: openssl-devel
|
2022-07-07 21:02:56 +00:00
|
|
|
# To ensure we're not bundling system libraries
|
2021-09-16 11:03:16 +00:00
|
|
|
BuildRequires: xz-devel
|
2021-11-30 15:19:36 +00:00
|
|
|
%else
|
|
|
|
BuildRequires: rust-packaging
|
2021-09-16 11:03:16 +00:00
|
|
|
%endif
|
2021-11-30 15:19:36 +00:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2022-09-21 16:55:07 +00:00
|
|
|
BuildRequires: libzstd-devel
|
2021-11-30 15:19:36 +00:00
|
|
|
# For tests
|
|
|
|
BuildRequires: gnupg2
|
2020-10-15 14:22:02 +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}
|
|
|
|
# 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
|
|
|
|
|
2021-11-30 15:19:36 +00:00
|
|
|
Requires: gnupg
|
|
|
|
Requires: kpartx
|
|
|
|
Requires: systemd-udev
|
|
|
|
Requires: util-linux
|
|
|
|
%ifarch s390x
|
|
|
|
# This should be spelled "s390utils-core" but some of the binaries are
|
|
|
|
# still moving over from s390utils-base
|
|
|
|
Requires: /usr/sbin/chreipl
|
|
|
|
Requires: /usr/sbin/dasdfmt
|
|
|
|
Requires: /usr/sbin/fdasd
|
|
|
|
Requires: /usr/sbin/lszdev
|
|
|
|
Requires: /usr/sbin/zipl
|
|
|
|
%endif
|
|
|
|
|
2020-10-15 14:22:02 +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.
|
|
|
|
|
2021-11-30 15:19:36 +00:00
|
|
|
# Obsolete dracut modules as they are not provided in this package.
|
|
|
|
Obsoletes: coreos-installer-dracut < 0.0.1
|
|
|
|
|
2020-10-15 14:22:02 +00:00
|
|
|
%description -n %{crate} %{_description}
|
|
|
|
|
|
|
|
%prep
|
2021-11-30 15:19:36 +00:00
|
|
|
%autosetup -n %{crate}-%{version} -p1 -a 2
|
|
|
|
%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
|
|
|
|
# Fix SIGSEGV in tests on s390x
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1883457
|
|
|
|
sed -i 's/"-Ccodegen-units=1",//' .cargo/config
|
|
|
|
|
|
|
|
%if !0%{?rhel} || 0%{?eln}
|
|
|
|
%generate_buildrequires
|
|
|
|
%cargo_generate_buildrequires -f rdcore
|
|
|
|
%endif
|
2020-10-15 14:22:02 +00:00
|
|
|
|
|
|
|
%build
|
2021-11-30 15:19:36 +00:00
|
|
|
%if 0%{?rhel} && !0%{?eln}
|
2021-09-16 11:03:16 +00:00
|
|
|
%cargo_build
|
2021-11-30 15:19:36 +00:00
|
|
|
%else
|
|
|
|
%cargo_build -f rdcore
|
|
|
|
%endif
|
2020-10-15 14:22:02 +00:00
|
|
|
|
|
|
|
%install
|
2021-11-30 15:19:36 +00:00
|
|
|
%if 0%{?rhel} && !0%{?eln}
|
2022-07-07 21:02:56 +00:00
|
|
|
%make_install RELEASE=1
|
2021-11-30 15:19:36 +00:00
|
|
|
# 51coreos-installer for coreos-installer-dracut
|
2022-07-07 21:02:56 +00:00
|
|
|
%make_install -C coreos-installer-dracut-%{dracutcommit}
|
2021-11-30 15:19:36 +00:00
|
|
|
%else
|
|
|
|
%cargo_install -f rdcore
|
2020-10-15 14:22:02 +00:00
|
|
|
# Install binaries, dracut modules, units, targets, generators for running via systemd
|
2021-09-16 11:03:16 +00:00
|
|
|
install -D -m 0755 -t %{buildroot}%{dracutlibdir}/modules.d/50rdcore dracut/50rdcore/module-setup.sh
|
2022-07-07 21:02:56 +00:00
|
|
|
make install-scripts DESTDIR=%{buildroot}
|
|
|
|
make install-systemd DESTDIR=%{buildroot}
|
|
|
|
make install-man DESTDIR=%{buildroot}
|
2022-09-21 16:55:07 +00:00
|
|
|
make install-data DESTDIR=%{buildroot}
|
2021-09-16 11:03:16 +00:00
|
|
|
mv %{buildroot}%{_bindir}/rdcore %{buildroot}%{dracutlibdir}/modules.d/50rdcore/
|
2021-11-30 15:19:36 +00:00
|
|
|
%endif
|
2020-10-15 14:22:02 +00:00
|
|
|
|
|
|
|
%package -n %{crate}-bootinfra
|
|
|
|
Summary: %{crate} boot-time infrastructure for use on Fedora/RHEL CoreOS
|
|
|
|
Requires: %{crate}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# Package was renamed from coreos-installer-systemd when rdcore was added
|
|
|
|
Provides: %{crate}-systemd = %{version}-%{release}
|
|
|
|
Obsoletes: %{crate}-systemd <= 0.3.0-3
|
|
|
|
|
|
|
|
%description -n %{crate}-bootinfra
|
|
|
|
This subpackage contains boot-time infrastructure for Fedora CoreOS and
|
|
|
|
RHEL CoreOS. It is not needed on other platforms.
|
|
|
|
|
|
|
|
%files -n %{crate}-bootinfra
|
2021-12-15 19:58:03 +00:00
|
|
|
%{dracutlibdir}/modules.d/50rdcore
|
2020-10-15 14:22:02 +00:00
|
|
|
%{_libexecdir}/*
|
|
|
|
%{_unitdir}/*
|
|
|
|
%{_systemdgeneratordir}/*
|
|
|
|
|
2021-11-30 15:19:36 +00:00
|
|
|
%if 0%{?rhel} && !0%{?eln}
|
2021-09-16 11:03:16 +00:00
|
|
|
%package -n %{crate}-dracut
|
2021-11-30 15:19:36 +00:00
|
|
|
Summary: Dracut module for running coreos-installer in the initrd
|
|
|
|
Requires: %{crate} = %{version}-%{release}
|
2021-09-16 11:03:16 +00:00
|
|
|
|
|
|
|
%description -n %{crate}-dracut
|
|
|
|
This subpackage contains files and configuration to run coreos-installer
|
|
|
|
from the initramfs.
|
|
|
|
|
|
|
|
%files -n %{crate}-dracut
|
2021-12-15 19:58:03 +00:00
|
|
|
%{dracutlibdir}/modules.d/51coreos-installer
|
2021-11-30 15:19:36 +00:00
|
|
|
%endif
|
2021-09-16 11:03:16 +00:00
|
|
|
|
2022-07-07 21:02:56 +00:00
|
|
|
%files -n %{crate}
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
|
|
|
%{_bindir}/coreos-installer
|
|
|
|
%{_mandir}/man8/*
|
2022-09-21 16:55:07 +00:00
|
|
|
%dir %{_datadir}/coreos-installer
|
|
|
|
%{_datadir}/coreos-installer/example-config.yaml
|
2022-07-07 21:02:56 +00:00
|
|
|
|
2020-10-15 14:22:02 +00:00
|
|
|
%if %{with check}
|
|
|
|
%check
|
2021-11-30 15:19:36 +00:00
|
|
|
%if 0%{?rhel} && !0%{?eln}
|
2021-09-16 11:03:16 +00:00
|
|
|
%cargo_test
|
2021-11-30 15:19:36 +00:00
|
|
|
%else
|
|
|
|
%cargo_test -f rdcore
|
|
|
|
%endif
|
2020-10-15 14:22:02 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%changelog
|
2022-12-07 14:30:45 +00:00
|
|
|
* Wed Dec 07 2022 Irene Diez <idiez@redhat.com> - 0.16.1-2
|
|
|
|
- Add ignition support to coi-dracut
|
|
|
|
- Fix usb installation
|
|
|
|
|
2022-09-21 16:55:07 +00:00
|
|
|
* Wed Sep 21 2022 Steven Presti <spresti@redhat.com> - 0.16.1-1
|
|
|
|
- new version
|
|
|
|
- Add libzstd dependency
|
|
|
|
|
2022-08-18 21:15:30 +00:00
|
|
|
* Thu Aug 18 2022 Antonio Murdaca <runcom@linux.com> - 0.15.0-2
|
|
|
|
- update coi-dracut to support LVM backed growfs service
|
|
|
|
|
2022-07-07 21:02:56 +00:00
|
|
|
* Tue Jul 12 2022 Michael Armijo <marmijo@redhat.com> - 0.15.0-1
|
|
|
|
- New release
|
|
|
|
- Sync with Fedora package
|
|
|
|
- Install coreos-installer-dracut with "make install"
|
|
|
|
|
2022-02-24 10:19:00 +00:00
|
|
|
* Thu Feb 24 2022 Antonio Murdaca <runcom@linux.com> - 0.11.0-4
|
|
|
|
- update coi-dracut to fix growfs service Before
|
|
|
|
|
2022-02-10 12:44:42 +00:00
|
|
|
* Thu Feb 10 2022 Antonio Murdaca <runcom@linux.com> - 0.11.0-3
|
|
|
|
- update coi-dracut to support default poweroff behavior
|
|
|
|
|
2022-01-26 14:16:19 +00:00
|
|
|
* Wed Jan 26 2022 Antonio Murdaca <runcom@linux.com> - 0.11.0-2
|
|
|
|
- Bump coreos-installer-dracut to support encrypted rootfs
|
|
|
|
|
2021-12-15 19:58:03 +00:00
|
|
|
* Wed Dec 15 2021 Sohan Kunkerkar <skunkerk@redhat.com> - 0.11.0-1
|
|
|
|
- New release
|
|
|
|
- Fix inadvertent inclusion of coreos-installer-dracut in -bootinfra on RHEL
|
|
|
|
- Have -dracut own 51coreos-installer directory on RHEL
|
|
|
|
|
2021-11-30 15:19:36 +00:00
|
|
|
* Tue Nov 30 2021 Sohan Kunkerkar <skunkerk@redhat.com> - 0.10.1-6
|
|
|
|
- Vendor rust dependencies on RHEL only
|
|
|
|
- Add coreos-installer-dracut subpackage on RHEL only
|
|
|
|
|
2021-11-26 14:29:19 +00:00
|
|
|
* Fri Nov 26 2021 Antonio Murdaca <runcom@linux.com> - 0.10.1-5
|
|
|
|
- fix https://bugzilla.redhat.com/show_bug.cgi?id=2027255
|
|
|
|
|
2021-11-18 08:54:08 +00:00
|
|
|
* Thu Nov 18 2021 Antonio Murdaca <runcom@linux.com> - 0.10.1-4
|
|
|
|
- fix dracut module dependencies
|
|
|
|
|
2021-11-17 14:09:04 +00:00
|
|
|
* Wed Nov 17 2021 Antonio Murdaca <runcom@linux.com> - 0.10.1-3
|
|
|
|
- fix dracut module installation target
|
|
|
|
|
2021-10-26 07:30:18 +00:00
|
|
|
* Tue Oct 26 2021 Antonio Murdaca <runcom@linux.com> - 0.10.1-2
|
|
|
|
- rebuilt
|
|
|
|
|
2021-10-25 14:02:06 +00:00
|
|
|
* Mon Oct 25 2021 Antonio Murdaca <runcom@linux.com> - 0.10.1-1
|
|
|
|
- New release
|
|
|
|
|
2021-09-16 11:03:16 +00:00
|
|
|
* Thu Sep 16 11:20:52 CET 2021 Antonio Murdaca <amurdaca@redhat.com> - 0.10.0-1
|
|
|
|
- New bumped release
|
|
|
|
|
2020-12-28 13:45:33 +00:00
|
|
|
* Mon Dec 28 13:28:50 CET 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.7.2-2
|
|
|
|
- Rebuild
|
|
|
|
|
2020-10-30 02:11:35 +00:00
|
|
|
* Thu Oct 22 2020 Sohan Kunkerkar <skunkerk@redhat.com> - 0.7.2-1
|
|
|
|
- New release
|
|
|
|
|
2020-10-15 14:22:02 +00:00
|
|
|
* Tue Oct 06 2020 Dusty Mabe <dusty@dustymabe.com> - 0.7.0-4
|
|
|
|
- Backport commit to start coreos-installer service after systemd-resolved
|
|
|
|
- https://github.com/coreos/coreos-installer/pull/389
|
|
|
|
|
|
|
|
* Thu Oct 01 2020 Dusty Mabe <dusty@dustymabe.com> - 0.7.0-3
|
|
|
|
- Backport commit to add F33 and F34 keys. Drop F31 keys.
|
|
|
|
- https://github.com/coreos/coreos-installer/pull/387
|
|
|
|
|
|
|
|
* Wed Sep 30 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.7.0-2
|
|
|
|
- Fix SIGSEGV in tests on s390x
|
|
|
|
|
|
|
|
* Mon Sep 21 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.7.0-1
|
|
|
|
- New release
|
|
|
|
|
|
|
|
* Tue Aug 25 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.6.0-1
|
|
|
|
- New release
|
|
|
|
|
|
|
|
* Sun Aug 16 15:01:11 GMT 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.5.0-2
|
|
|
|
- Rebuild
|
|
|
|
|
|
|
|
* Fri Jul 31 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.5.0-1
|
|
|
|
- New release
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
* Fri Jul 24 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.4.0-1
|
|
|
|
- New release
|
|
|
|
- Rename -systemd subpackage to -bootinfra
|
|
|
|
- Add rdcore Dracut module to -bootinfra
|
|
|
|
|
|
|
|
* Fri Jul 24 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.3.0-2
|
|
|
|
- Rebuild
|
|
|
|
|
|
|
|
* Mon Jul 13 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.3.0-1
|
|
|
|
- New release
|
|
|
|
|
|
|
|
* Sat May 30 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.2.1-2
|
|
|
|
- Fixup license
|
|
|
|
|
|
|
|
* Fri May 29 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.2.1-1
|
|
|
|
- New release
|
|
|
|
- Make coreos-installer-{service,generator} world-readable
|
|
|
|
|
|
|
|
* Tue May 05 2020 Robert Fairley <rfairley@redhat.com> - 0.2.0-1
|
|
|
|
- Update to 0.2.0
|
|
|
|
|
|
|
|
* Sat Mar 21 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.1.3-1
|
|
|
|
- New release
|
|
|
|
|
|
|
|
* Fri Feb 21 2020 Josh Stone <jistone@redhat.com> - 0.1.2-4
|
|
|
|
- Bump to nix 0.17 and reqwest 0.10
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Jan 09 2020 Josh Stone <jistone@redhat.com> - 0.1.2-2
|
|
|
|
- Remove the nix downgrade.
|
|
|
|
|
|
|
|
* 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
|
|
|
|
- Update spec file to include systemd units from upstream
|
|
|
|
- These were added upstream in https://github.com/coreos/coreos-installer/pull/119
|
|
|
|
|
|
|
|
* Fri Dec 20 17:57:28 UTC 2019 Robert Fairley <rfairley@redhat.com> - 0.1.1-1
|
|
|
|
- Initial package
|