fix: rust-bandwhich (#718)

* fix: rust-bandwhich

Signed-off-by: madomado <madonuko@outlook.com>

* Update bandwhich-fix-metadata-auto.diff

Signed-off-by: madomado <madonuko@outlook.com>

* Update rust-bandwhich.spec

Signed-off-by: madomado <madonuko@outlook.com>

* Update rust-bandwhich.spec

Signed-off-by: madomado <madonuko@outlook.com>

* fix license

Signed-off-by: madomado <madonuko@outlook.com>

---------

Signed-off-by: madomado <madonuko@outlook.com>
This commit is contained in:
madomado
2023-09-23 17:02:02 +08:00
committed by GitHub
parent f79ae299df
commit 63cf65eb22
2 changed files with 24 additions and 13 deletions
@@ -1,16 +1,20 @@
--- 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"
--- bandwhich-0.21.0/Cargo.toml 1970-01-01T00:00:01+00:00
+++ bandwhich-0.21.0/Cargo.toml 2023-09-21T07:50:16.506970+00:00
@@ -104,17 +104,3 @@
[target."cfg(target_os=\"linux\")".dependencies.procfs]
version = "0.7.4"
version = "0.15.1"
-[target."cfg(target_os=\"windows\")".dependencies.netstat2]
-version = "0.9.0"
-version = "0.9.1"
-
-[target."cfg(target_os=\"windows\")".dependencies.sysinfo]
-version = "0.15.1"
-version = "0.29.10"
-
-[target."cfg(target_os=\"windows\")".build-dependencies.anyhow]
-version = "1.0.75"
-
-[target."cfg(target_os=\"windows\")".build-dependencies.http_req]
-version = "0.7.0"
-version = "0.9.3"
-
-[target."cfg(target_os=\"windows\")".build-dependencies.zip]
-version = "0.5.6"
-version = "0.6.6"
+11 -4
View File
@@ -1,17 +1,20 @@
# Generated by rust2rpm 23
# Generated by rust2rpm 24
#bcond_without check
%global crate bandwhich
Name: rust-bandwhich
Version: 0.21.0
Release: 1%{?dist}
Summary: Show network utilization by process/connection/hostname/IP
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
BuildRequires: anda-srpm-macros rust-packaging >= 23
%global _description %{expand:
Display current network utilization by process, connection and remote
@@ -21,11 +24,13 @@ IP/hostname.}
%package -n %{crate}
Summary: %{summary}
License: MIT
%description -n %{crate} %{_description}
%files -n %{crate}
%license LICENSE.md
%license LICENSE.dependencies
%doc CHANGELOG.md
%doc CODE_OF_CONDUCT.md
%doc CONTRIBUTING.md
@@ -38,6 +43,8 @@ Summary: %{summary}
%build
%cargo_build
%{cargo_license_summary}
%{cargo_license} > LICENSE.dependencies
%install
%cargo_install