%global debug_package %{nil} Name: rustscan Version: 2.4.1 Release: 2%{?dist} Summary: The Modern Port Scanner License: GPL-3.0-or-later URL: https://github.com/RustScan/RustScan Source: %{url}/archive/%{version}/%{name}-%{version}.tar.gz %if 0%{?el7} %else BuildRequires: cargo >= 1.59 BuildRequires: rust >= 1.59 %endif BuildRequires: gcc %if 0%{?fedora} || 0%{?rhel} >= 8 Recommends: nmap%{?_isa} %endif %description The Modern Port Scanner. Find ports quickly (3 seconds at its fastest). Run scripts through our scripting engine (Python, Lua, Shell supported). %prep %autosetup -n RustScan-%{version} -p1 %if 0%{?el7} curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal -y %endif # Set codegen-units to 1 # echo 'codegen-units = 1' >> Cargo.toml %install %if 0%{?el7} . "$HOME/.cargo/env" %endif cargo install --root=%{buildroot}%{_prefix} --path=. rm -f %{buildroot}%{_prefix}/.crates.toml \ %{buildroot}%{_prefix}/.crates2.json strip --strip-all %{buildroot}%{_bindir}/* %files %license LICENSE %doc README.md %{_bindir}/%{name} %changelog * Mon Jan 26 2026 Artem Polishchuk - 2.4.1-2 - Chores and rebuild * Sun Feb 23 2025 Artem Polishchuk - 2.4.1-1 - chore: Update to latest release * Wed May 01 2024 Artem Polishchuk - 2.2.3-1 - chore: Update to latest release * Sun Apr 21 2024 Artem Polishchuk - 2.2.2-1 - chore: Update to latest release * Wed Nov 09 2022 Artem Polishchuk - 2.1.1-1 - chore(update): 2.1.1 * Wed Apr 27 2022 Artem Polishchuk - 2.1.0-1 - chore(update): 2.1.0 * Fri Nov 6 2020 Artem Polishchuk - 2.0.1-1 - build(update): 2.0.1 * Fri Nov 6 2020 Artem Polishchuk - 2.0.0-1 - build(update): 2.0.0 * Tue Sep 29 2020 Artem Polishchuk - 1.10.1-1 - Update to 1.10.1 * Tue Sep 29 2020 Artem Polishchuk - 1.10.0-1 - Update to 1.10.0 * Sun Sep 20 2020 Artem Polishchuk - 1.9.0-1 - Update to 1.9.0 * Fri Aug 28 2020 Artem Polishchuk - 1.8.0-2 - Add 'nmap' as weak dep * Fri Aug 28 2020 Artem Polishchuk - 1.8.0-1 - Initial package