add: bandwhich (#215)

* add: bandwhich

* remove checks
This commit is contained in:
madomado
2023-02-20 12:18:31 +08:00
committed by GitHub
parent 8f38d6d0d1
commit da51d99a3d
3 changed files with 73 additions and 0 deletions
+5
View File
@@ -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"
+52
View File
@@ -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