mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-06 20:02:18 +00:00
@@ -0,0 +1,5 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "rust-bandwhich.spec"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
--- bandwhich-0.20.0/Cargo.toml 2020-10-15T09:07:04+00:00
|
||||
+++ bandwhich-0.20.0/Cargo.toml 2020-10-15T09:07:04+00:00
|
||||
@@ -83,13 +83,3 @@
|
||||
version = "1"
|
||||
[target."cfg(target_os=\"linux\")".dependencies.procfs]
|
||||
version = "0.7.4"
|
||||
-[target."cfg(target_os=\"windows\")".dependencies.netstat2]
|
||||
-version = "0.9.0"
|
||||
-
|
||||
-[target."cfg(target_os=\"windows\")".dependencies.sysinfo]
|
||||
-version = "0.15.1"
|
||||
-[target."cfg(target_os=\"windows\")".build-dependencies.http_req]
|
||||
-version = "0.7.0"
|
||||
-
|
||||
-[target."cfg(target_os=\"windows\")".build-dependencies.zip]
|
||||
-version = "0.5.6"
|
||||
@@ -0,0 +1,52 @@
|
||||
# Generated by rust2rpm 23
|
||||
%global crate bandwhich
|
||||
|
||||
Name: rust-bandwhich
|
||||
Version: 0.20.0
|
||||
Release: %autorelease
|
||||
Summary: Display current network utilization by process, connection and remote IP/hostname
|
||||
|
||||
License: MIT
|
||||
URL: https://crates.io/crates/bandwhich
|
||||
Source: %{crates_source}
|
||||
# Automatically generated patch to strip foreign dependencies
|
||||
Patch: bandwhich-fix-metadata-auto.diff
|
||||
|
||||
BuildRequires: anda-srpm-macros rust-packaging >= 21
|
||||
|
||||
%global _description %{expand:
|
||||
Display current network utilization by process, connection and remote
|
||||
IP/hostname.}
|
||||
|
||||
%description %{_description}
|
||||
|
||||
%package -n %{crate}
|
||||
Summary: %{summary}
|
||||
|
||||
%description -n %{crate} %{_description}
|
||||
|
||||
%files -n %{crate}
|
||||
%license LICENSE.md
|
||||
%doc CHANGELOG.md
|
||||
%doc CODE_OF_CONDUCT.md
|
||||
%doc CONTRIBUTING.md
|
||||
%doc README.md
|
||||
%{_bindir}/bandwhich
|
||||
|
||||
%prep
|
||||
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
||||
%cargo_prep_online
|
||||
|
||||
%build
|
||||
%cargo_build
|
||||
|
||||
%install
|
||||
%cargo_install
|
||||
|
||||
%if %{with check}
|
||||
%check
|
||||
%cargo_test
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
Reference in New Issue
Block a user