# Adapted from upstream contrib/packaging/bootupd.spec # https://github.com/coreos/bootupd %global debug_package %{nil} %bcond_without check %global crate bootupd Name: bootupd Version: 0.2.35 Release: 1.2%{?dist} Summary: Bootloader updater License: Apache-2.0 AND (Apache-2.0 WITH LLVM-exception) AND BSD-3-Clause AND MIT AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (Unlicense OR MIT) URL: https://github.com/coreos/bootupd Source0: %{url}/releases/download/v%{version}/%{crate}-%{version}.crate Source1: %{url}/releases/download/v%{version}/%{crate}-%{version}-vendor.tar.zstd ExclusiveArch: x86_64 aarch64 BuildRequires: cargo >= 1.90 BuildRequires: rust >= 1.90 BuildRequires: make BuildRequires: openssl-devel BuildRequires: zstd BuildRequires: systemd-rpm-macros %{?systemd_requires} Conflicts: bootc < 1.14.1 %description Bootloader updater. This is a component of bootc/rpm-ostree that manages updates for the bootloader (UEFI and BIOS/legacy boot). %prep %setup -q -n %{crate}-%{version} # Unpack vendored dependencies zstd -d %{SOURCE1} --stdout | tar xf - # Create .cargo/config.toml for vendored builds mkdir -p .cargo cat > .cargo/config.toml << 'EOF' [source.crates-io] replace-with = "vendored-sources" [source.vendored-sources] directory = "vendor" EOF %build %{__make} RELEASE=1 %install %make_install INSTALL="install -p -c" %{__make} install-grub-static DESTDIR=%{?buildroot} INSTALL="%{__install} -p" %{__make} install-systemd-unit DESTDIR=%{?buildroot} INSTALL="%{__install} -p" # bootc expects bootupd in PATH ln -sf %{_libexecdir}/bootupd %{buildroot}%{_bindir}/bootupd %if %{with check} %check target/release/bootupd --help target/release/bootupctl --help %endif %files %license LICENSE %doc README.md %{_bindir}/bootupctl %{_bindir}/bootupd %{_libexecdir}/bootupd %{_prefix}/lib/bootupd/grub2-static/ %{_unitdir}/bootloader-update.service %changelog * Fri Jul 11 2025 Yonghang Wang - 0.2.35-1.1 - Build for al-stream-2023 COPR - Adapted from upstream contrib/packaging/bootupd.spec * Tue Oct 18 2022 Colin Walters - 0.2.8-3 - Dummy changelog