2021-03-01 19:14:03 +00:00
|
|
|
# Generated by rust2rpm 16
|
2021-04-08 18:35:50 +00:00
|
|
|
%define dracutlibdir %{_prefix}/lib/dracut
|
2019-12-20 21:25:42 +00:00
|
|
|
%bcond_without check
|
|
|
|
%global __cargo_skip_build 0
|
2020-07-24 22:12:53 +00:00
|
|
|
# The library is for internal code reuse and is not a public API
|
|
|
|
%global __cargo_is_lib 0
|
2019-12-20 21:25:42 +00:00
|
|
|
|
|
|
|
%global crate coreos-installer
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
2021-08-05 01:03:23 +00:00
|
|
|
Version: 0.10.0
|
2021-09-14 17:14:13 +00:00
|
|
|
Release: 3%{?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}
|
2021-08-17 15:54:55 +00:00
|
|
|
Patch0: 0001-signing-keys-add-Fedora-36-key.patch
|
2020-10-01 21:39:00 +00:00
|
|
|
|
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
|
|
|
# ASL 2.0
|
|
|
|
# ASL 2.0 or Boost
|
|
|
|
# MIT
|
|
|
|
# MIT or ASL 2.0
|
|
|
|
# Unlicense or MIT
|
|
|
|
# zlib
|
2020-07-24 17:01:50 +00:00
|
|
|
License: ASL 2.0 and MIT and zlib
|
2019-12-20 21:25:42 +00:00
|
|
|
|
2020-12-26 01:51:48 +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
|
|
|
|
|
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
|
2020-09-30 21:27:17 +00:00
|
|
|
# Fix SIGSEGV in tests on s390x
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1883457
|
|
|
|
sed -i 's/"-Ccodegen-units=1",//' .cargo/config
|
2019-12-20 21:25:42 +00:00
|
|
|
|
|
|
|
%generate_buildrequires
|
2020-08-01 03:52:31 +00:00
|
|
|
%cargo_generate_buildrequires -f rdcore
|
2019-12-20 21:25:42 +00:00
|
|
|
|
|
|
|
%build
|
2020-08-01 03:52:31 +00:00
|
|
|
%cargo_build -f rdcore
|
2019-12-20 21:25:42 +00:00
|
|
|
|
|
|
|
%install
|
2020-08-01 03:52:31 +00:00
|
|
|
%cargo_install -f rdcore
|
2020-07-24 22:12:53 +00:00
|
|
|
# Install binaries, dracut modules, units, targets, generators for running via systemd
|
2021-04-08 18:35:50 +00:00
|
|
|
install -D -m 0755 -t %{buildroot}%{dracutlibdir}/modules.d/50rdcore dracut/50rdcore/module-setup.sh
|
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-08-26 01:04:07 +00:00
|
|
|
install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer-post.target
|
2020-05-30 01:38:46 +00:00
|
|
|
install -D -m 0755 -t %{buildroot}%{_systemdgeneratordir} systemd/coreos-installer-generator
|
2021-04-08 18:35:50 +00:00
|
|
|
mv %{buildroot}%{_bindir}/rdcore %{buildroot}%{dracutlibdir}/modules.d/50rdcore/
|
2020-01-06 21:56:36 +00:00
|
|
|
|
2020-07-24 22:12:53 +00:00
|
|
|
%package -n %{crate}-bootinfra
|
|
|
|
Summary: %{crate} boot-time infrastructure for use on Fedora/RHEL CoreOS
|
2020-05-30 17:09:37 +00:00
|
|
|
Requires: %{crate}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
2020-07-24 22:12:53 +00:00
|
|
|
# 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
|
2020-01-06 21:56:36 +00:00
|
|
|
|
2020-07-24 22:12:53 +00:00
|
|
|
%description -n %{crate}-bootinfra
|
|
|
|
This subpackage contains boot-time infrastructure for Fedora CoreOS and
|
|
|
|
RHEL CoreOS. It is not needed on other platforms.
|
2020-01-06 21:56:36 +00:00
|
|
|
|
2020-07-24 22:12:53 +00:00
|
|
|
%files -n %{crate}-bootinfra
|
2021-04-08 18:35:50 +00:00
|
|
|
%{dracutlibdir}/modules.d/*
|
2020-01-06 21:56:36 +00:00
|
|
|
%{_libexecdir}/*
|
|
|
|
%{_unitdir}/*
|
|
|
|
%{_systemdgeneratordir}/*
|
2019-12-20 21:25:42 +00:00
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
2020-08-01 03:52:31 +00:00
|
|
|
%cargo_test -f rdcore
|
2019-12-20 21:25:42 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%changelog
|
2021-09-14 17:14:13 +00:00
|
|
|
* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 0.10.0-3
|
|
|
|
- Rebuilt with OpenSSL 3.0.0
|
|
|
|
|
2021-08-17 15:54:55 +00:00
|
|
|
* Tue Aug 17 2021 Dusty Mabe <dusty@dustymabe.com> - 0.10.0-2
|
|
|
|
- Add F36 signing key
|
|
|
|
|
2021-08-05 01:03:23 +00:00
|
|
|
* Wed Aug 04 2021 Jonathan Lebon <jonathan@jlebon.com> - 0.10.0-1
|
|
|
|
- New release
|
|
|
|
|
2021-07-23 13:41:00 +00:00
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-07-13 15:49:16 +00:00
|
|
|
* Tue Jul 13 2021 Jonathan Lebon <jonathan@jlebon.com> - 0.9.1-2
|
|
|
|
- Backport "install: restrict access permissions on /boot/ignition{,/config.ign}"
|
|
|
|
https://github.com/coreos/coreos-installer/pull/571
|
|
|
|
|
2021-05-17 13:29:49 +00:00
|
|
|
* Mon May 17 2021 Sohan Kunkerkar <skunkerk@redhat.com> - 0.9.1-1
|
|
|
|
- New release
|
|
|
|
|
2021-04-08 18:35:50 +00:00
|
|
|
* Thu Apr 08 2021 Sohan Kunkerkar <skunkerk@redhat.com> - 0.9.0-2
|
|
|
|
- Fix dracut library path
|
|
|
|
|
2021-04-08 03:06:53 +00:00
|
|
|
* Thu Apr 08 2021 Sohan Kunkerkar <skunkerk@redhat.com> - 0.9.0-1
|
2021-04-08 08:27:09 +00:00
|
|
|
- New release
|
|
|
|
- Fix hardcoded library path
|
2021-04-08 03:06:53 +00:00
|
|
|
|
2021-03-17 03:40:27 +00:00
|
|
|
* Tue Mar 16 2021 Sohan Kunkerkar <skunkerk@redhat.com> - 0.8.0-1
|
|
|
|
- New release
|
|
|
|
|
2021-03-01 19:14:03 +00:00
|
|
|
* Mon Mar 01 2021 Fabio Valentini <decathorpe@gmail.com> - 0.7.2-5
|
|
|
|
- Backport trivial commit d94715c to allow building with nix 0.20.
|
|
|
|
|
2021-01-27 17:13:09 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-12-26 01:51:48 +00:00
|
|
|
* Mon Jan 04 2021 Benjamin Gilbert <bgilbert@redhat.com> - 0.7.2-3
|
|
|
|
- Add Requires for programs invoked by coreos-installer
|
|
|
|
|
2020-12-28 12:28:50 +00:00
|
|
|
* Mon Dec 28 13:28:50 CET 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.7.2-2
|
|
|
|
- Rebuild
|
|
|
|
|
2020-10-22 21:00:49 +00:00
|
|
|
* Thu Oct 22 2020 Sohan Kunkerkar <skunkerk@redhat.com> - 0.7.2-1
|
|
|
|
- New release
|
|
|
|
|
2020-10-07 01:00:33 +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
|
|
|
|
|
2020-10-01 21:39:00 +00:00
|
|
|
* 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
|
|
|
|
|
2020-09-30 21:27:17 +00:00
|
|
|
* Wed Sep 30 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.7.0-2
|
|
|
|
- Fix SIGSEGV in tests on s390x
|
|
|
|
|
2020-09-21 22:19:38 +00:00
|
|
|
* Mon Sep 21 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.7.0-1
|
|
|
|
- New release
|
|
|
|
|
2020-08-26 01:04:07 +00:00
|
|
|
* Tue Aug 25 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.6.0-1
|
|
|
|
- New release
|
|
|
|
|
2020-08-16 15:01:11 +00:00
|
|
|
* Sun Aug 16 15:01:11 GMT 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.5.0-2
|
|
|
|
- Rebuild
|
|
|
|
|
2020-08-01 03:52:31 +00:00
|
|
|
* Fri Jul 31 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.5.0-1
|
|
|
|
- New release
|
|
|
|
|
2020-07-29 07:45:24 +00:00
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-07-24 22:12:53 +00:00
|
|
|
* 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
|
|
|
|
|
2020-07-24 17:01:50 +00:00
|
|
|
* Fri Jul 24 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.3.0-2
|
|
|
|
- Rebuild
|
|
|
|
|
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
|