%global debug_package %{nil} Name: gping Version: 1.2.0 Release: 1%{?dist} Summary: Ping, but with a graph License: MIT URL: https://github.com/orf/gping Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz %if 0%{?el8} %else BuildRequires: cargo >= 1.42 BuildRequires: rust >= 1.42 %endif %description %{summary}. %prep %autosetup -p1 %if 0%{?el8} curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal -y %endif %install export CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_OPT_LEVEL=3 echo 'codegen-units = 1' >> Cargo.toml %if 0%{?el8} $HOME/.cargo/bin/cargo install --root=%{buildroot}%{_prefix} --path=. %else cargo install --root=%{buildroot}%{_prefix} --path=. %endif rm -f %{buildroot}%{_prefix}/.crates.toml \ %{buildroot}%{_prefix}/.crates2.json strip %{buildroot}%{_bindir}/* %files %license LICENSE %doc readme.md %{_bindir}/%{name} %changelog * Sun Dec 6 2020 Artem Polishchuk - 1.2.0-1 - build(update): 1.2.0 * Wed Dec 2 2020 Artem Polishchuk - 1.1.0-1 - build(update): 1.1.0 * Sun Nov 29 2020 Artem Polishchuk - 1.0.1-1 - build(update): 1.0.1 * Thu Nov 19 2020 Artem Polishchuk - 0.1.7-1 - Initial package