Skip to content

Commit

Permalink
fix: rust-bandwhich (#718)
Browse files Browse the repository at this point in the history
* fix: rust-bandwhich

Signed-off-by: madomado <[email protected]>

* Update bandwhich-fix-metadata-auto.diff

Signed-off-by: madomado <[email protected]>

* Update rust-bandwhich.spec

Signed-off-by: madomado <[email protected]>

* Update rust-bandwhich.spec

Signed-off-by: madomado <[email protected]>

* fix license

Signed-off-by: madomado <[email protected]>

---------

Signed-off-by: madomado <[email protected]>
  • Loading branch information
madonuko authored Sep 23, 2023
1 parent f79ae29 commit 63cf65e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 13 deletions.
22 changes: 13 additions & 9 deletions anda/rust/bandwhich/bandwhich-fix-metadata-auto.diff
Original file line number Diff line number Diff line change
@@ -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"
15 changes: 11 additions & 4 deletions anda/rust/bandwhich/rust-bandwhich.spec
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -38,6 +43,8 @@ Summary: %{summary}

%build
%cargo_build
%{cargo_license_summary}
%{cargo_license} > LICENSE.dependencies

%install
%cargo_install
Expand Down

0 comments on commit 63cf65e

Please sign in to comment.