## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by rust2rpm 25 %bcond_with check # prevent library files from being installed %global __cargo_is_lib() 0 %global crate repgrep Name: rust-repgrep Version: 0.14.3 Release: %autorelease Summary: Interactive command line replacer for ripgrep License: Unlicense OR MIT OR Apache-2.0 URL: https://crates.io/crates/repgrep Source: %{crates_source} Source: repgrep-0.14.3-vendor.tar.xz BuildRequires: cargo-rpm-macros >= 25 BuildRequires: /usr/bin/asciidoctor %global _description %{expand: An interactive command line replacer for `ripgrep`.} %description %{_description} %package -n %{crate} Summary: %{summary} # Apache-2.0 OR BSL-1.0 # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # CC0-1.0 # LGPL-3.0 # MIT # MIT OR Apache-2.0 # Unlicense OR MIT # Unlicense OR MIT OR Apache-2.0 # Zlib License: (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND LGPL-3.0 AND MIT AND (Unlicense OR MIT) AND (Unlicense OR MIT OR Apache-2.0) AND Zlib # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE-APACHE %license LICENSE-MIT %license LICENSE-UNLICENSE %license LICENSE.dependencies %license cargo-vendor.txt %doc CHANGELOG.md %doc DEVELOPMENT_NOTES.md %doc README.md %{_bindir}/rgr %{zsh_completions_dir}/_rgr %{_mandir}/man1/rgr.1* %prep %autosetup -n %{crate}-%{version} -p1 -a1 %cargo_prep -v vendor %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %{cargo_vendor_manifest} %install %cargo_install find -name "_rgr" -exec install -Dm0644 {} -t %{buildroot}%{zsh_completions_dir} \; find -name "rgr.1" -exec install -Dm0644 {} -t %{buildroot}%{_mandir}/man1 \; %if %{with check} %check %cargo_test %endif %changelog * Wed Nov 01 2023 John Doe - 0.14.3-1 - Uncommitted changes