## START: Set by rpmautospec ## (rpmautospec version 0.6.3) ## RPMAUTOSPEC: autorelease, autochangelog %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 26 %bcond_without check %global crate oo7-cli Name: rust-oo7-cli Version: 0.3.3 Release: %autorelease Summary: System keyring access from the terminal License: MIT URL: https://crates.io/crates/oo7-cli Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * Use OpenSSL for cryptography instead of RustCrypto # * Use tokio instead of async-std Patch: oo7-cli-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: System keyring access from the terminal.} %description %{_description} %package -n %{crate} Summary: %{summary} # Upstream license specification: MIT # # The build dependencies have the following licenses: # # Apache-2.0 # Apache-2.0 AND MIT # Apache-2.0 OR MIT # MIT # MIT OR Apache-2.0 # Unlicense OR MIT # License: Apache-2.0 AND (Apache-2.0 OR MIT) AND MIT AND (MIT OR Apache-2.0) AND (Unlicense OR MIT) # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license LICENSE.dependencies %doc README.md %{_bindir}/oo7-cli %prep %autosetup -n %{crate}-%{version} -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 %changelog ## START: Generated by rpmautospec * Wed Jun 19 2024 John Doe - 0.3.3-1 - Uncommitted changes ## END: Generated by rpmautospec