Blame SPECS/coreos-installer.spec

302623
# Generated by rust2rpm 13
302623
%define dracutlibdir %{_prefix}/lib/dracut
302623
%bcond_without check
302623
%global __cargo_skip_build 0
302623
# The library is for internal code reuse and is not a public API
302623
%global __cargo_is_lib 0
302623
127737
%global coidracutcommit 89d5789ef30ee35c7d083f425c7a083459989dbd
45af50
%global coidracutshortcommit %(c=%{coidracutcommit}; echo ${c:0:7})
45af50
302623
%global crate coreos-installer
302623
302623
Name:           %{crate}
3bb86a
Version:        0.15.0
127737
Release:        2%{?dist}
302623
Summary:        Installer for Fedora CoreOS and RHEL CoreOS
302623
302623
# Upstream license specification: Apache-2.0
302623
License:        ASL 2.0
45af50
URL:            https://github.com/coreos/coreos-installer
302623
Source:         https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
302623
Source1:        https://github.com/coreos/coreos-installer/releases/download/v%{version}/%{crate}-%{version}-vendor.tar.gz
45af50
Source2:	https://github.com/runcom/coreos-installer-dracut/archive/%{coidracutcommit}/coreos-installer-dracut-%{coidracutshortcommit}.tar.gz
302623
302623
# The RHEL 8 rust-toolset macros don't let us enable features from the
302623
# %%cargo_* macros.  Enable rdcore directly in Cargo.toml.
302623
Patch0:         enable-rdcore.patch
302623
302623
ExclusiveArch:  %{rust_arches}
302623
BuildRequires:  openssl-devel
3bb86a
# To ensure we're not bundling system libraries
45af50
BuildRequires:  xz-devel
302623
BuildRequires:  rust-toolset
302623
BuildRequires:  systemd
45af50
BuildRequires:  gnupg2
302623
302623
Requires:       gnupg
302623
Requires:       kpartx
302623
Requires:       systemd-udev
302623
Requires:       util-linux
302623
%ifarch s390x
302623
# This should eventually be spelled "s390utils-core" but the binaries
302623
# haven't been broken out of s390utils-base yet
302623
Requires:       /usr/sbin/chreipl
302623
Requires:       /usr/sbin/dasdfmt
302623
Requires:       /usr/sbin/fdasd
302623
Requires:       /usr/sbin/lszdev
302623
Requires:       /usr/sbin/zipl
302623
%endif
302623
302623
# Since `rust-coreos-installer` creates a `coreos-installer`
302623
# subpackage with a newer version number, which supersedes the
302623
# deprecated `coreos-installer` package (https://src.fedoraproject.org/rpms/coreos-installer),
302623
# an explicit `Obsoletes:` for `coreos-installer` is not necessary.
302623
302623
%global _description %{expand:
302623
coreos-installer installs Fedora CoreOS or RHEL CoreOS to bare-metal
302623
machines (or, occasionally, to virtual machines).
302623
}
302623
%description %{_description}
302623
302623
%prep
302623
%autosetup -n %{crate}-%{version} -p1
45af50
%setup -D -T -a 2
302623
%cargo_prep -V 1
302623
# https://github.com/rust-lang-nursery/error-chain/pull/289
302623
find -name '*.rs' -executable -exec chmod a-x {} \;
302623
302623
%build
302623
%cargo_build
302623
302623
%install
3bb86a
%make_install RELEASE=1
45af50
# 51coreos-installer for coreos-installer-dracut
3bb86a
%make_install -C coreos-installer-dracut-%{coidracutcommit}
302623
302623
%package     -n %{crate}-bootinfra
302623
Summary:     %{crate} boot-time infrastructure for use on Fedora/RHEL CoreOS
302623
Requires:   %{crate} = %{version}-%{release}
302623
302623
# Package was renamed from coreos-installer-systemd when rdcore was added
302623
Provides:    %{crate}-systemd = %{version}-%{release}
302623
Obsoletes:   %{crate}-systemd <= 0.3.0-2
302623
302623
%description -n %{crate}-bootinfra
302623
This subpackage contains boot-time infrastructure for Fedora CoreOS and
302623
RHEL CoreOS.  It is not needed on other platforms.
302623
302623
%files       -n %{crate}-bootinfra
45af50
%{dracutlibdir}/modules.d/50rdcore/*
302623
%{_libexecdir}/*
302623
%{_unitdir}/*
302623
%{_systemdgeneratordir}/*
302623
45af50
%package     -n %{crate}-dracut
45af50
Summary:     %{crate} provides coreos-installer as a dracut module.
45af50
Requires:   %{crate} = %{version}-%{release}
45af50
45af50
%description -n %{crate}-dracut
45af50
This subpackage contains files and configuration to run coreos-installer
45af50
from the initramfs.
45af50
45af50
%files       -n %{crate}-dracut
45af50
%{dracutlibdir}/modules.d/51coreos-installer/*
45af50
3bb86a
%files       -n %{crate}
3bb86a
%license LICENSE
3bb86a
%doc README.md
3bb86a
%{_bindir}/coreos-installer
3bb86a
%{_mandir}/man8/*
3bb86a
302623
%if %{with check}
302623
%check
302623
%cargo_test
302623
%endif
302623
302623
%changelog
127737
* Mon Sep 05 2022 Antonio Murdaca <runcom@linux.com> - 0.15.0-2
127737
- revert bump coi-dracut, 8.7 won't support growing LVM
127737
3bb86a
* Mon Aug 22 2022 Antonio Murdaca <runcom@linux.com> - 0.15.0-1
3bb86a
- bump to 0.15.0
3bb86a
- bump coi-dracut to support LVM backed images
3bb86a
45af50
* Thu Feb 24 2022 Antonio Murdaca <runcom@linux.com> - 0.11.0-3
45af50
- update coi-dracut to fix growfs service Before
45af50
45af50
* Thu Feb 10 2022 Antonio Murdaca <runcom@linux.com> - 0.11.0-2
45af50
- update coi-dracut to support default poweroff behavior
45af50
45af50
* Wed Feb 02 2022 Antonio Murdaca <runcom@linux.com> - 0.11.0-1
45af50
- bump to 0.11.0 and support luks in -dracut
45af50
45af50
* Thu Nov 18 2021 Antonio Murdaca <runcom@linux.com> - 0.10.1-2
45af50
- fix dracut module dependencies
45af50
45af50
* Wed Oct 13 2021 Antonio Murdaca <runcom@linux.com> - 0.10.1-1
45af50
- bump to 0.10.1
45af50
- bump coreos-installer-dracut
45af50
45af50
* Thu Sep 9 2021 Antonio Murdaca <runcom@redhat.com> - 0.9.1-19
45af50
- add a new coreos-installer-dracut subpkg to include just the
45af50
  dracut module (fedora-iot/coreos-installer-dracut)
45af50
45af50
* Tue Aug 31 2021 Jan Schintag <jschinta@redhat.com> - 0.10.0-1
45af50
- Bump version to 0.10.0
45af50
45af50
* Mon Jun 21 2021 Jonathan Lebon <jlebon@redhat.com> - 0.9.1-4
45af50
- Add xz-devel BR to ensure we're not bundling
45af50
  Related: https://bugzilla.redhat.com/show_bug.cgi?id=1974453
45af50
302623
* Thu Jun 10 2021 Benjamin Gilbert <bgilbert@redhat.com> - 0.9.1-3
302623
- Support s390x DASDs in VMs via virtio
302623
302623
* Tue Jun 08 2021 Dusty Mabe <dustymabe@redhat.com> - 0.9.1-2
302623
- Add coreos.force_persist_ip karg forwarding
302623
302623
* Wed Apr 21 2021 Benjamin Gilbert <bgilbert@redhat.com> - 0.9.0-3
302623
- Improve error message for busy disk referenced via symlink
302623
- Fix failure on corrupt GPT
302623
302623
* Fri Apr 9 2021 Sohan Kunkerkar <skunkerk@redhat.com> - 0.9.0-2
302623
- Use macro for dracut library path
302623
302623
* Thu Apr 8 2021 Sohan Kunkerkar <skunkerk@redhat.com> - 0.9.0-1
302623
- New release
302623
302623
* Fri Jan 15 2021 Benjamin Gilbert <bgilbert@redhat.com> - 0.8.0-3
302623
- Fix rdcore rootmap on RAID devices
302623
302623
* Tue Jan 12 2021 Benjamin Gilbert <bgilbert@redhat.com> - 0.8.0-2
302623
- Disable LTO again to avoid crashes on s390x
302623
302623
* Tue Jan 12 2021 Sohan Kunkerkar <skunkerk@redhat.com> - 0.8.0-1
302623
- New release
302623
302623
* Mon Jan 04 2021 Benjamin Gilbert <bgilbert@redhat.com> - 0.7.2-2
302623
- Add Requires for programs invoked by coreos-installer
302623
- Require Rust >= 1.45, re-enable LTO
302623
302623
* Thu Oct 22 2020 Sohan Kunkerkar <skunkerk@redhat.com> - 0.7.2-1
302623
- New release
302623
302623
* Mon Sep 21 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.6.0-3
302623
- Fix MBR handling when partition saving is enabled
302623
- Fix base package Obsoletes being interpreted as part of package description
302623
302623
* Wed Sep 02 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.6.0-2
302623
- Disable LTO on s390x to avoid runtime crashes
302623
- Drop legacy installer
302623
302623
* Tue Aug 25 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.6.0-1
302623
- New release
302623
302623
* Fri Jul 31 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.5.0-1
302623
- New release
302623
302623
* Sat Jul 25 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.4.0-1
302623
- New release
302623
- Rename -systemd subpackage to -bootinfra
302623
- Add rdcore Dracut module to -bootinfra
302623
302623
* Wed Jul 22 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.3.0-1
302623
- New release
302623
- Make coreos-installer-{service,generator} world-readable
302623
302623
* Wed Jun 17 2020 Dusty Mabe <dusty@dustymabe.com> - 0.2.0-4.rhaos4.6
302623
- Include rhaos4.6 in the rpm release field
302623
302623
* Thu May 28 2020 Colin Walters <walters@verbum.org> - 0.2.0-3
302623
- Backport osmet RHCOS+LUKS patches
302623
302623
* Thu May 07 2020 Dusty Mabe <dusty@dustymabe.com> - 0.2.0-2
302623
- Fix bug in dracut hook in legacy installer; see
302623
  https://github.com/coreos/coreos-installer/pull/234
302623
302623
* Mon Apr 27 2020 Colin Walters <walters@verbum.org> - 0.1.3-4
302623
- Merge in legacy installer; see
302623
  https://github.com/coreos/coreos-installer/pull/220
302623
302623
* Mon Mar 23 2020 Colin Walters <walters@verbum.org> - 0.1.3-2
302623
- https://github.com/coreos/coreos-installer/releases/tag/v0.1.3
302623
302623
* Wed Mar 04 2020 Colin Walters <walters@verbum.org> - 0.1.2-11
302623
- Backport no-signatures-available patch
302623
302623
* Wed Feb 26 2020 Colin Walters <walters@verbum.org> - 0.1.2-10
302623
- Forked from Fedora
302623
- I forgot about the weird `rust-` package name prefixing when
302623
  asking RCM to make the dist-git repo, and rather than redo
302623
  that I decided to just go with it.
302623
- Stop depending on systemd-rpm-macros since it's not in RHEL8 apparently
302623
- Drop other things only applicable to Fedora Rust packaging like
302623
  dynamic buildrequires