fix: bandwhich (#1955) (#1986)

(cherry picked from commit 97d5347c6e)

Co-authored-by: madomado <madonuko@outlook.com>
This commit is contained in:
Raboneko
2024-08-21 10:13:26 -07:00
committed by GitHub
parent 3ef32a3f7a
commit 73c6c12a7e
2 changed files with 22 additions and 23 deletions
@@ -1,23 +1,20 @@
--- bandwhich-0.22.2/Cargo.toml 1970-01-01T00:00:01+00:00
+++ bandwhich-0.22.2/Cargo.toml 2024-02-02T05:59:38.855816+00:00
@@ -149,20 +149,6 @@
version = "0.25.0"
features = ["derive"]
-[target."cfg(any(target_os = \"macos\", target_os = \"freebsd\"))".dependencies.regex]
-version = "1.10.3"
-
[target."cfg(target_os = \"linux\")".dependencies.procfs]
--- bandwhich-0.23.0/Cargo.toml 1970-01-01T00:00:01+00:00
+++ bandwhich-0.23.0/Cargo.toml 2024-08-18T04:14:50.797745+00:00
@@ -165,17 +165,3 @@
[target.'cfg(any(target_os = "android", target_os = "linux"))'.dependencies.procfs]
version = "0.16.0"
-[target."cfg(target_os = \"windows\")".dependencies.netstat2]
-[target.'cfg(any(target_os = "macos", target_os = "freebsd"))'.dependencies.regex]
-version = "1.10.5"
-
-[target.'cfg(target_os = "windows")'.dependencies.netstat2]
-version = "0.9.1"
-
-[target."cfg(target_os = \"windows\")".dependencies.sysinfo]
-version = "0.30.5"
-[target.'cfg(target_os = "windows")'.dependencies.sysinfo]
-version = "0.31.0"
-
-[target."cfg(target_os = \"windows\")".build-dependencies.http_req]
-version = "0.10.2"
-[target.'cfg(target_os = "windows")'.build-dependencies.http_req]
-version = "0.11.1"
-
-[target."cfg(target_os = \"windows\")".build-dependencies.zip]
-version = "0.6.6"
-[target.'cfg(target_os = "windows")'.build-dependencies.zip]
-version = "2.1.6"
@@ -1,5 +1,6 @@
# Generated by rust2rpm 25
# Generated by rust2rpm 26
#bcond_without check
%bcond_without mold
%global crate bandwhich
@@ -14,7 +15,7 @@ Source: %{crates_source}
# Automatically generated patch to strip dependencies and normalize metadata
Patch: bandwhich-fix-metadata-auto.diff
BuildRequires: anda-srpm-macros cargo-rpm-macros >= 24
BuildRequires: anda-srpm-macros mold cargo-rpm-macros >= 24
%global _description %{expand:
Display current network utilization by process, connection and remote
@@ -30,10 +31,11 @@ License: MIT
%files -n %{crate}
%license LICENSE.md
#license LICENSE.dependencies
%license LICENSE.dependencies
%doc CHANGELOG.md
%doc CODE_OF_CONDUCT.md
%doc CONTRIBUTING.md
%doc INSTALL.md
%doc README.md
%{_bindir}/bandwhich
@@ -42,9 +44,9 @@ License: MIT
%cargo_prep_online
%build
%cargo_build
#{cargo_license_summary}
#{cargo_license} > LICENSE.dependencies
#cargo_build
%{cargo_license_summary_online}
%{cargo_license_online} > LICENSE.dependencies
%install
%cargo_install