# Generated by rust2rpm 24 %bcond_without check %global crate asahi-bless Name: rust-asahi-bless Version: 0.1.0 Release: %autorelease Summary: Tool to select active boot partition on ARM Macs License: MIT URL: https://crates.io/crates/asahi-bless Source: %{crates_source} # https://github.com/WhatAmISupposedToPutHere/asahi-nvram/pull/2 Source: https://github.com/WhatAmISupposedToPutHere/asahi-nvram/raw/b11f76a8fbe68edee191ee344f8c88b993d4bd5b/LICENSE BuildRequires: rust-packaging >= 21 %global _description %{expand: A tool to select active boot partition on ARM Macs.} %description %{_description} %package -n %{crate} Summary: %{summary} %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %{_bindir}/asahi-bless %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 cp -p %SOURCE1 . %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog