# Generated by rust2rpm 25 %bcond_without check # prevent library files from being installed %global __cargo_is_lib() 0 %global crate sad Name: sad Version: 0.4.23 Release: %autorelease Summary: CLI search and replace tool SourceLicense: MIT # (MIT OR Apache-2.0) AND Unicode-DFS-2016 # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # MIT # MIT OR Apache-2.0 # Unlicense OR MIT License: (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND MIT AND (Unlicense OR MIT) # LICENSE.dependencies contains a full license breakdown URL: https://github.com/ms-jpq/sad Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: cargo-rpm-macros >= 24 Recommends: fzf Recommends: (git-delta or diff-so-fancy) %global _description %{expand: Space Age seD - Batch File Edit tool. It will show you a really nice diff of proposed changes before you commit them.} %description %{_description} %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %cargo_install %if %{with check} %check %cargo_test %endif %files %license LICENSE %license LICENSE.dependencies %doc README.md %doc RELEASE_NOTES.md %{_bindir}/sad %changelog %autochangelog