Skip to content

Commit

Permalink
fix: bandwhich (#1955) (#1984)
Browse files Browse the repository at this point in the history
(cherry picked from commit 97d5347)

Co-authored-by: madomado <[email protected]>
  • Loading branch information
raboneko and madonuko authored Aug 21, 2024
1 parent ef980d6 commit b56caff
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 23 deletions.
31 changes: 14 additions & 17 deletions anda/langs/rust/bandwhich/bandwhich-fix-metadata-auto.diff
Original file line number Diff line number Diff line change
@@ -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"
14 changes: 8 additions & 6 deletions anda/langs/rust/bandwhich/rust-bandwhich.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Generated by rust2rpm 25
# Generated by rust2rpm 26
#bcond_without check
%bcond_without mold

%global crate bandwhich

Expand All @@ -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
Expand All @@ -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

Expand All @@ -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
Expand Down

0 comments on commit b56caff

Please sign in to comment.