Blame SPECS/coreos-installer.spec

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