From 8cc856fd00fd0ebbe6de74919afefde3516399d8 Mon Sep 17 00:00:00 2001 From: windowsboy111 Date: Thu, 9 Feb 2023 21:13:05 +0800 Subject: [PATCH] add: gping --- anda/rust/gping/anda.hcl | 5 +++ anda/rust/gping/rust-gping.spec | 74 +++++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 anda/rust/gping/anda.hcl create mode 100644 anda/rust/gping/rust-gping.spec diff --git a/anda/rust/gping/anda.hcl b/anda/rust/gping/anda.hcl new file mode 100644 index 0000000000..dd6694d15b --- /dev/null +++ b/anda/rust/gping/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "rust-gping.spec" + } +} diff --git a/anda/rust/gping/rust-gping.spec b/anda/rust/gping/rust-gping.spec new file mode 100644 index 0000000000..8d729f692c --- /dev/null +++ b/anda/rust/gping/rust-gping.spec @@ -0,0 +1,74 @@ +# Generated by rust2rpm 23 +%bcond_without check + +%global crate gping + +Name: rust-gping +Version: 1.8.0 +Release: %autorelease +Summary: Ping, but with a graph + +License: MIT +URL: https://crates.io/crates/gping +Source: %{crates_source} + +BuildRequires: anda-srpm-macros rust-packaging >= 21 + +%global _description %{expand: +Ping, but with a graph.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} + +%description -n %{crate} %{_description} + +%files -n %{crate} +# FIXME: no license files detected +%doc readme.md +%{_bindir}/gping + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +# FIXME: no license files detected +%doc %{crate_instdir}/readme.md +%{crate_instdir}/ + +%package -n %{name}+default-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+default-devel %{_description} + +This package contains library source intended for building other packages which +use the "default" feature of the "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{crate_instdir}/Cargo.toml + +%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