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