diff --git a/anda/rust/bandwhich/anda.hcl b/anda/rust/bandwhich/anda.hcl new file mode 100644 index 0000000000..5506b9e80a --- /dev/null +++ b/anda/rust/bandwhich/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "rust-bandwhich.spec" + } +} diff --git a/anda/rust/bandwhich/bandwhich-fix-metadata-auto.diff b/anda/rust/bandwhich/bandwhich-fix-metadata-auto.diff new file mode 100644 index 0000000000..0091bf4a7d --- /dev/null +++ b/anda/rust/bandwhich/bandwhich-fix-metadata-auto.diff @@ -0,0 +1,16 @@ +--- 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" + [target."cfg(target_os=\"linux\")".dependencies.procfs] + version = "0.7.4" +-[target."cfg(target_os=\"windows\")".dependencies.netstat2] +-version = "0.9.0" +- +-[target."cfg(target_os=\"windows\")".dependencies.sysinfo] +-version = "0.15.1" +-[target."cfg(target_os=\"windows\")".build-dependencies.http_req] +-version = "0.7.0" +- +-[target."cfg(target_os=\"windows\")".build-dependencies.zip] +-version = "0.5.6" diff --git a/anda/rust/bandwhich/rust-bandwhich.spec b/anda/rust/bandwhich/rust-bandwhich.spec new file mode 100644 index 0000000000..d49fd3a0d9 --- /dev/null +++ b/anda/rust/bandwhich/rust-bandwhich.spec @@ -0,0 +1,52 @@ +# Generated by rust2rpm 23 +%global crate bandwhich + +Name: rust-bandwhich +Version: 0.20.0 +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 + +%global _description %{expand: +Display current network utilization by process, connection and remote +IP/hostname.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} + +%description -n %{crate} %{_description} + +%files -n %{crate} +%license LICENSE.md +%doc CHANGELOG.md +%doc CODE_OF_CONDUCT.md +%doc CONTRIBUTING.md +%doc README.md +%{_bindir}/bandwhich + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep_online + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog