# Generated by rust2rpm 25 %bcond_without check # prevent library files from being installed %global __cargo_is_lib() 0 %global crate burnout-detector Name: rust-burnout-detector Version: 0.3.1 Release: %autorelease Summary: App aims to help you to take some breaks, this acts as waybar module and can also send notifications License: ISC URL: https://crates.io/crates/burnout-detector Source: %{crates_source} Source: burnout-detector-0.3.1-vendor.tar.xz BuildRequires: cargo-rpm-macros >= 25 %global _description %{expand: This app aims to help you to take some breaks, this acts as waybar module and can also send notifications.} %description %{_description} %package -n %{crate} Summary: %{summary} # FIXME: paste output of %%cargo_license_summary here License: # FIXME # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE.md %license LICENSE.dependencies %license cargo-vendor.txt %doc README.md %{_bindir}/burnout-detector %prep %autosetup -n %{crate}-%{version} -p1 -a1 %cargo_prep -v vendor %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %{cargo_vendor_manifest} %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog