File bootupd.spec of Package bootupd-suse
#
# spec file for package bootupd
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: bootupd
Version: 0.2.27
Release: 6
Summary: Bootloader updater
License: Apache-2.0
URL: https://github.com/coreos/bootupd
Source0: %{url}/releases/download/v%{version}/%{name}-%{version}.tar.zstd
Source1: %{url}/releases/download/v%{version}/%{name}-%{version}-vendor.tar.zstd
Patch1: 0001-patch-filenames-and-paths-to-match-the-choices-of-op.patch
BuildRequires: cargo-packaging
BuildRequires: pkgconfig(openssl) > 3.0.0
%description
Distribution-independent updates for bootloaders
%prep
%autosetup -a1 -p1
rm -f .cargo/config.toml
mv .cargo/vendor-config.toml .cargo/config.toml
%build
%{cargo_build}
%install
%{make_install}
make DESTDIR=%{buildroot} install-grub-static
make DESTDIR=%{buildroot} install-systemd-unit
# Replace hard link with symlink
ln -sf %{_bindir}/bootupctl %{buildroot}%{_libexecdir}/bootupd
%files
%license LICENSE
%doc README.md
%{_bindir}/bootupctl
%{_libexecdir}/bootupd
%{_prefix}/lib/bootupd
%{_unitdir}/bootloader-update.service
%changelog