rust-procs/rust-procs.spec

73 lines
1.4 KiB
RPMSpec
Raw Normal View History

# Generated by rust2rpm 22
%bcond_without check
%global crate procs
Name: rust-procs
Version: 0.12.3
2022-07-27 11:21:40 +00:00
Release: %autorelease
Summary: Modern replacement for ps
License: MIT
URL: https://crates.io/crates/procs
Source0: %{crates_source}
Source1: LICENSE.dependencies
# Automatically generated patch to strip foreign dependencies
Patch: procs-fix-metadata-auto.diff
# Manually created patch for downstream crate metadata changes
# * remove docker feature / dockworker dependency
Patch: procs-fix-metadata.diff
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging >= 21
%global _description %{expand:
Modern replacement for ps.}
%description %{_description}
%package -n %{crate}
Summary: %{summary}
# 0BSD or MIT or ASL 2.0
# ASL 2.0 or MIT
# ASL 2.0
# BSD
# MIT
# MIT or ASL 2.0
# MIT or zlib or ASL 2.0
# Unlicense or MIT
License: MIT and ASL 2.0 and BSD
# LICENSE.dependencies contains a full license breakdown
%description -n %{crate} %{_description}
%files -n %{crate}
%license LICENSE
%license LICENSE.dependencies
%doc CHANGELOG.md
%doc README.md
%{_bindir}/procs
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
cp %{SOURCE1} .
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
2022-07-27 11:21:40 +00:00
%autochangelog