# Generated by rust2rpm 21 %bcond_without check %global crate rustcat Name: rust-%{crate} Version: 1.3.0 Release: %autorelease Summary: Rustcat - The Modern Port Listener & Reverse Shell # Upstream license specification: MIT License: MIT URL: https://crates.io/crates/rustcat Source: %{crates_source} # Initial patched metadata # Temporarily downgrade rustyline to 8.2 Patch0: rustcat-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging >= 21 %global _description %{expand: Rustcat - The Modern Port Listener & Reverse Shell.} %description %{_description} %package -n %{crate} Summary: %{summary} # rust-colored is MPLv2.0, the rest is MIT License: MIT and MPLv2.0 %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %doc CODE_OF_CONDUCT.md README.md contributing.md %{_bindir}/rcat %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires # Fix permissions chmod -x CODE_OF_CONDUCT.md LICENSE README.md contributing.md %build %cargo_build %install %cargo_install mv %{buildroot}%{_bindir}/rc %{buildroot}%{_bindir}/rcat %if %{with check} %check %cargo_test %endif %changelog %autochangelog