## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by rust2rpm 22 %bcond_without check %global crate lino Name: rust-lino Version: 0.10.0 Release: %autorelease Summary: Command line text editor with notepad like key bindings License: MIT URL: https://crates.io/crates/lino Source: %{crates_source} ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging >= 21 %global _description %{expand: Command line text editor with notepad like key bindings.} %description %{_description} %package -n %{crate} Summary: %{summary} # 0BSD OR MIT OR Apache-2.0 # Apache-2.0 # Apache-2.0 OR BSL-1.0 # Apache-2.0 OR MIT # BSD-3-Clause # ISC # MIT # MIT OR Apache-2.0 # MIT OR Zlib OR Apache-2.0 # Unlicense OR MIT License: Apache-2.0 and BSD-3-Clause and ISC and MIT %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %doc README.md %doc TODO.md %{_bindir}/lino %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Mon Oct 31 2022 Davide Cavalca 0.10.0-1 - Initial import; Fixes: RHBZ#1990713