# Generated by rust2rpm 13 %bcond_without check %global __cargo_skip_build 0 %global crate procs Name: rust-%{crate} Version: 0.9.11 Release: 1%{?dist} Summary: Modern replacement for ps # Upstream license specification: MIT License: MIT URL: https://crates.io/crates/procs Source: %{crates_source} # Initial patched metadata # * No windows/macos # * Remove docker feature Patch0: procs-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging %global _description %{expand: Modern replacement for ps.} %description %{_description} %package -n %{crate} Summary: %{summary} # Install all deps (without check), grab their licenses and make it simple # * ASL 2.0 # * ASL 2.0 or MIT # * MIT # * MIT or ASL 2.0 # * (MIT or ASL 2.0) and BSD # * Unlicense or MIT # * zlib License: MIT and ASL 2.0 and BSD and zlib %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %doc README.md CHANGELOG.md %{_bindir}/procs %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 # One test fails related to docker # https://github.com/dalance/procs/issues/41#issuecomment-587438247 %cargo_test -- -- --skip tests::test_run_all %endif %changelog * Tue Feb 18 13:11:48 CET 2020 Igor Raits - 0.9.11-1 - Initial package