# Generated by rust2rpm 28 %bcond check 1 %global crate procs %global _trivial .0 %global _buildid .1 Name: rust-procs Version: 0.14.10 Release: 1%{?dist}%{?_trivial}%{?_buildid} Summary: Modern replacement for ps License: MIT URL: https://crates.io/crates/procs Source: %{name}-%{version}-processed.tar.gz # Manually created patch for downstream crate metadata changes # * remove docker feature / dockworker dependency # * relax directories dependency to allow building with both v5 and v6 # * relax which dependency to allow building with both v7 and v8 # (https://github.com/dalance/procs/pull/796) # * allow console 0.16: https://github.com/dalance/procs/pull/797 # * allow procfs 0.18: # https://github.com/dalance/procs/commit/e84e303c080c8e5d5c1ed3637c9ff7cca8abf4db BuildRequires: rust-toolset %global _description %{expand: A modern replacement for ps.} %description %{_description} %package -n %{crate} Summary: %{summary} # (MIT OR Apache-2.0) AND Unicode-DFS-2016 # 0BSD OR MIT OR Apache-2.0 # Apache-2.0 # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # MIT # MIT OR Apache-2.0 # MIT OR Zlib OR Apache-2.0 # MPL-2.0 # Unlicense OR MIT License: %{shrink: MIT AND Apache-2.0 AND MPL-2.0 AND Unicode-DFS-2016 AND (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (MIT OR Zlib 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 %license cargo-vendor.txt %doc CHANGELOG.md %doc README.md %{_bindir}/procs %{bash_completions_dir}/procs.bash %{fish_completions_dir}/procs.fish %{zsh_completions_dir}/_procs %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep -v vendor %build %cargo_build %{cargo_license_summary} %{cargo_vendor_manifest} %{cargo_license} > LICENSE.dependencies %install %cargo_install # generate and install shell completions target/rpm/procs --gen-completion-out bash > procs.bash target/rpm/procs --gen-completion-out fish > procs.fish target/rpm/procs --gen-completion-out zsh > _procs install -Dpm 0644 procs.bash -t %{buildroot}/%{bash_completions_dir} install -Dpm 0644 procs.fish -t %{buildroot}/%{fish_completions_dir} install -Dpm 0644 _procs -t %{buildroot}/%{zsh_completions_dir} %if %{with check} %check %cargo_test %endif %changelog * Fri Jul 03 2026 AL2023 rebuild - %{version}-1 - AL2023 rust-toolset vendored build