# Generated by rust2rpm 27 %bcond check 1 # prevent library files from being installed %global cargo_install_lib 0 Name: newbie Version: 1.0.1 Release: %autorelease Summary: Natural language shell interpreter and text processor SourceLicense: MIT # FIXME: paste output of %%cargo_license_summary here License: MIT # LICENSE.dependencies contains a full license breakdown URL: https://github.com/markallenbattey/Newbie Source: https://github.com/markallenbattey/Newbie/archive/v%{version}/Newbie-%{version}.tar.gz BuildRequires: cargo-rpm-macros >= 26 %global _description %{expand: Natural language shell interpreter and text processor.} %description %{_description} %prep %autosetup -n Newbie-1.0.1 -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %cargo_install %if %{with check} %check %cargo_test %endif %files %license LICENSE %license LICENSE.dependencies %doc README.txt %{_bindir}/newbie %changelog %autochangelog