# Generated by rust2rpm 27 %bcond check 1 # prevent library files from being installed %global cargo_install_lib 0 Name: ripgrep-edit Version: 0.2.12 Release: %autorelease Summary: Edit ripgrep search results across multiple files License: GPL-3.0-or-later OR AGPL-3.0-or-later URL: https://gitlab.com/aarcange/ripgrep-edit Source: %name-%version.tar.gz BuildRequires: cargo-rpm-macros >= 26 ripgrep Requires: ripgrep %global _description %{expand: Edit ripgrep search results across multiple files.} %description %{_description} %prep %autosetup -n ripgrep-edit-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %cargo_install mkdir -p %{buildroot}%{_datarootdir}/%{name} cp -a emacs %{buildroot}%{_datarootdir}/%{name} mkdir -p %{buildroot}%{_mandir}/man1/ cp -a target/rpm/build/%{name}-*/man/*.1 %{buildroot}%{_mandir}/man1/ %if %{with check} %check %cargo_test %endif %files %license LICENSE.dependencies %doc README.md %{_bindir}/rg-edit %{_datarootdir}/%{name} %{_mandir}/man1/rg-edit.1* %changelog %autochangelog