import CS bootc-1.1.5-1.el9

This commit is contained in:
eabdullin 2025-03-11 07:02:28 +00:00
parent be440eeb78
commit ebd1fb97fe
3 changed files with 81 additions and 16 deletions

View File

@ -1,2 +1,2 @@
51015bf77039c9278cac519134be460a72d77fed SOURCES/bootc-0.1.15-vendor.tar.zstd f845ad2a14b147102fd407cff8c75f46f18485e6 SOURCES/bootc-1.1.5-vendor.tar.zstd
e6e0035a688690965ce53ef511057b55e7d2d2ac SOURCES/bootc-0.1.15.tar.zstd 77fd4b2f65b52577b0f8a3c6679b04ce5eff47ac SOURCES/bootc-1.1.5.tar.zstd

4
.gitignore vendored
View File

@ -1,2 +1,2 @@
SOURCES/bootc-0.1.15-vendor.tar.zstd SOURCES/bootc-1.1.5-vendor.tar.zstd
SOURCES/bootc-0.1.15.tar.zstd SOURCES/bootc-1.1.5.tar.zstd

View File

@ -1,7 +1,18 @@
%bcond_without check %bcond_without check
%if 0%{?rhel} >= 10 || 0%{?fedora} > 41
%bcond_without ostree_ext
%else
%bcond_with ostree_ext
%endif
%if 0%{?rhel}
%bcond_without rhsm
%else
%bcond_with rhsm
%endif
Name: bootc Name: bootc
Version: 0.1.15 Version: 1.1.5
Release: 1%{?dist} Release: 1%{?dist}
Summary: Bootable container system Summary: Bootable container system
@ -25,42 +36,72 @@ BuildRequires: libzstd-devel
BuildRequires: make BuildRequires: make
BuildRequires: ostree-devel BuildRequires: ostree-devel
BuildRequires: openssl-devel BuildRequires: openssl-devel
BuildRequires: libzstd-devel
%if 0%{?rhel} %if 0%{?rhel}
BuildRequires: rust-toolset BuildRequires: rust-toolset
%else %else
BuildRequires: cargo-rpm-macros >= 25 BuildRequires: cargo-rpm-macros >= 25
%endif %endif
BuildRequires: systemd BuildRequires: systemd
# For tests
BuildRequires: skopeo ostree
# Backing storage tooling https://github.com/containers/composefs/issues/125 # Backing storage tooling https://github.com/containers/composefs/issues/125
Recommends: composefs Requires: composefs
# For OS updates # For OS updates
Requires: ostree
Requires: skopeo Requires: skopeo
Requires: podman
# For bootloader updates # For bootloader updates
Recommends: bootupd Recommends: bootupd
# A made up provides so that rpm-ostree can depend on it
%if %{with ostree_ext}
Provides: ostree-cli(ostree-container)
%endif
%description %description
%{summary} %{summary}
# (-n because we don't want the subpackage name to start with bootc-)
%package -n system-reinstall-bootc
Summary: Utility to reinstall the current system using bootc
Requires: podman
# The reinstall subpackage intentionally does not require bootc, as it pulls in many unnecessary dependencies
%description -n system-reinstall-bootc
This package provides a utility to simplify reinstalling the current system to a given bootc image.
%prep %prep
%autosetup -p1 -a1 %autosetup -p1 -a1
%if 0%{?rhel} # Default -v vendor config doesn't support non-crates.io deps (i.e. git)
%cargo_prep -V 1 cp .cargo/vendor-config.toml .
%else %cargo_prep -N
%cargo_prep -v vendor cat vendor-config.toml >> .cargo/config.toml
%endif rm vendor-config.toml
%build %build
# Build the main bootc binary
%if 0%{?fedora} || 0%{?rhel} >= 10
%cargo_build %{?with_rhsm:-f rhsm}
%else
%cargo_build %{?with_rhsm:--features rhsm}
%endif
# Build the system reinstallation CLI binary
%global cargo_args -p system-reinstall-bootc
%cargo_build %cargo_build
%if !0%{?rhel}
%cargo_vendor_manifest %cargo_vendor_manifest
# https://pagure.io/fedora-rust/rust-packaging/issue/33
sed -i -e '/https:\/\//d' cargo-vendor.txt
%cargo_license_summary %cargo_license_summary
%{cargo_license} > LICENSE.dependencies %{cargo_license} > LICENSE.dependencies
%endif
%install %install
%make_install INSTALL="install -p -c" %make_install INSTALL="install -p -c"
%if %{with ostree_ext}
make install-ostree-hooks DESTDIR=%{?buildroot}
%endif
%if %{with check} %if %{with check}
%check %check
@ -70,19 +111,43 @@ Recommends: bootupd
%files %files
%license LICENSE-MIT %license LICENSE-MIT
%license LICENSE-APACHE %license LICENSE-APACHE
%if !0%{?rhel}
%license LICENSE.dependencies %license LICENSE.dependencies
%license cargo-vendor.txt %license cargo-vendor.txt
%endif
%doc README.md %doc README.md
%{_bindir}/bootc %{_bindir}/bootc
%{_prefix}/lib/bootc/ %{_prefix}/lib/bootc/
%{_prefix}/lib/systemd/system-generators/* %{_prefix}/lib/systemd/system-generators/*
%if %{with ostree_ext}
%{_prefix}/libexec/libostree/ext/*
%endif
%{_unitdir}/* %{_unitdir}/*
%{_docdir}/bootc/*
%{_mandir}/man*/bootc* %{_mandir}/man*/bootc*
%files -n system-reinstall-bootc
%{_bindir}/system-reinstall-bootc
%changelog %changelog
* Mon Feb 10 2025 Joseph Marrero <jmarrero@fedoraproject.org> - 1.1.5-1
- Update to 1.1.5
- Resolves: #RHEL-77733
* Thu Jan 23 2025 John Eckersberg <jeckersb@redhat.com> - 1.1.4-2
- Cherry pick patches for bootc-status-updated
- Resolves: #RHEL-72862
* Tue Jan 14 2025 Joseph Marrero <jmarrero@fedoraproject.org> - 1.1.4-1
- Update to 1.1.4
Resolves: #RHEL-72862
* Thu Nov 07 2024 Joseph Marrero <jmarrero@fedoraproject.org> - 1.1.2-1
- Update to 1.1.2
Resolves: #RHEL-66258
* Thu Oct 17 2024 Joseph Marrero <jmarrero@fedoraproject.org> - 1.1.0-1
- Update to 1.1.0
Resolves: #RHEL-63018
* Fri Aug 16 2024 Colin Walters <walters@verbum.org> - 0.1.15-1 * Fri Aug 16 2024 Colin Walters <walters@verbum.org> - 0.1.15-1
- Update to 0.1.15 - Update to 0.1.15
Resolves: #RHEL-50625 Resolves: #RHEL-50625