Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[f40] fix: bandwhich (#1955) #1984

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading