From 38e77d409bfb576a52bc7f244dbdf63ccf9b0946 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Thu, 20 Mar 2025 10:38:09 -0700 Subject: [PATCH] fix: gping (#4050) (#4058) * fix: gping Signed-off-by: madomado * remake spec * Update rust-gping.spec Signed-off-by: madomado --------- Signed-off-by: madomado (cherry picked from commit 6dd3e7dcbe0600bc7142eca946bcc2908d34bf19) Co-authored-by: madomado --- anda/langs/rust/gping/rust-gping.spec | 51 +++++++-------------------- 1 file changed, 13 insertions(+), 38 deletions(-) diff --git a/anda/langs/rust/gping/rust-gping.spec b/anda/langs/rust/gping/rust-gping.spec index af09112d5e..3adb117a78 100644 --- a/anda/langs/rust/gping/rust-gping.spec +++ b/anda/langs/rust/gping/rust-gping.spec @@ -1,20 +1,19 @@ -# Generated by rust2rpm 23 -%bcond_without check +%global __brp_mangle_shebangs %{nil} -# shebangs = 21 mold @@ -25,54 +24,30 @@ Ping, but with a graph.} %package -n %{crate} Summary: %{summary} +License: (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND MIT AND (MIT AND Apache-2.0) AND (MIT OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT) AND Zlib +# LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} -# FIXME: no license files detected +%license LICENSE +%license LICENSE.dependencies %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 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep_online %build -%cargo_build +%{cargo_license_summary_online} +%{cargo_license_online} > LICENSE.dependencies %install %cargo_install +cp %{S:1} . %if %{with check} %check %cargo_test %endif - -%changelog -%autochangelog