You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
1.6 KiB
74 lines
1.6 KiB
5 years ago
|
# 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
|
||
|
# https://github.com/dalance/procs/commit/c80c5ec34923b6df2487ef2d7de82800ee6feedf
|
||
|
Patch0001: 0001-Fix-test-failure-without-docker-41.patch
|
||
|
|
||
|
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 <ignatenkobrain@fedoraproject.org> - 0.9.11-1
|
||
|
- Initial package
|