File bootupd.spec of Package bootupd
#
# 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.20
Release: 0
Summary: Bootloader updater
License: Apache-2.0
URL: https://github.com/coreos/bootupd
Source0: %{url}/releases/download/v%{version}/%{name}-%{version}.crate#/%{name}-%{version}.tgz
Source1: %{url}/releases/download/v%{version}/%{name}-%{version}-vendor.tar.zstd
Source2: cargo.conf
BuildRequires: cargo-packaging
BuildRequires: pkgconfig(openssl) > 3.0.0
%description
Distribution-independent updates for bootloaders
%prep
%autosetup -a1 -p1
mkdir .cargo
cp %{SOURCE2} .cargo/config
%build
%{cargo_build}
%install
%{make_install}
# Replace hard link with symlink
ln -sf %{_bindir}/bootupctl %{buildroot}%{_libexecdir}/bootupd
%files
%license LICENSE
%doc README.md
%{_bindir}/bootupctl
%{_libexecdir}/bootupd
%changelog