fix: gping (#4050) (#4058)

* fix: gping

Signed-off-by: madomado <madonuko@outlook.com>

* remake spec

* Update rust-gping.spec

Signed-off-by: madomado <madonuko@outlook.com>

---------

Signed-off-by: madomado <madonuko@outlook.com>
(cherry picked from commit 6dd3e7dcbe)

Co-authored-by: madomado <madonuko@outlook.com>
This commit is contained in:
Raboneko
2025-03-20 10:38:09 -07:00
committed by GitHub
parent d19ddbf5f6
commit 38e77d409b
+13 -38
View File
@@ -1,20 +1,19 @@
# Generated by rust2rpm 23
%bcond_without check
%global __brp_mangle_shebangs %{nil}
# shebangs </3 rust
# can be removed when ratatui sort their shit out and stop marking rust source code as executable
%undefine __brp_mangle_shebangs
# Generated by rust2rpm 27
%bcond check 1
%global crate gping
Name: rust-gping
Version: 1.19.0
Release: 1%?dist
Release: 2%?dist
Summary: Ping, but with a graph
License: MIT
URL: https://crates.io/crates/gping
Source: %{crates_source}
Source1: https://github.com/orf/gping/blob/gping-v%version/LICENSE
BuildRequires: anda-srpm-macros rust-packaging >= 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