|
|
@ -1,23 +1,23 @@
|
|
|
|
# Generated by rust2rpm 24
|
|
|
|
# Generated by rust2rpm 25
|
|
|
|
%bcond_without check
|
|
|
|
%bcond_without check
|
|
|
|
|
|
|
|
|
|
|
|
%global crate ripgrep
|
|
|
|
%global crate ripgrep
|
|
|
|
|
|
|
|
|
|
|
|
Name: rust-ripgrep
|
|
|
|
Name: rust-ripgrep
|
|
|
|
Version: 13.0.0
|
|
|
|
Version: 14.0.3
|
|
|
|
Release: %autorelease
|
|
|
|
Release: %autorelease
|
|
|
|
Summary: Line-oriented search tool
|
|
|
|
Summary: Line-oriented search tool
|
|
|
|
|
|
|
|
|
|
|
|
License: Unlicense OR MIT
|
|
|
|
License: Unlicense OR MIT
|
|
|
|
URL: https://crates.io/crates/ripgrep
|
|
|
|
URL: https://crates.io/crates/ripgrep
|
|
|
|
Source: %{crates_source}
|
|
|
|
Source: %{crates_source}
|
|
|
|
# Automatically generated patch to strip foreign dependencies
|
|
|
|
# Automatically generated patch to strip dependencies and normalize metadata
|
|
|
|
Patch: ripgrep-fix-metadata-auto.diff
|
|
|
|
Patch: ripgrep-fix-metadata-auto.diff
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
# * drop unsupported SIMD feature
|
|
|
|
# * drop unsupported SIMD feature
|
|
|
|
Patch: ripgrep-fix-metadata.diff
|
|
|
|
Patch: ripgrep-fix-metadata.diff
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
BuildRequires: cargo-rpm-macros >= 24
|
|
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
%global _description %{expand:
|
|
|
|
Ripgrep is a line-oriented search tool that recursively searches the
|
|
|
|
Ripgrep is a line-oriented search tool that recursively searches the
|
|
|
@ -31,11 +31,10 @@ Summary: %{summary}
|
|
|
|
# (Apache-2.0 OR MIT) AND BSD-3-Clause
|
|
|
|
# (Apache-2.0 OR MIT) AND BSD-3-Clause
|
|
|
|
# (MIT OR Apache-2.0) AND Unicode-DFS-2016
|
|
|
|
# (MIT OR Apache-2.0) AND Unicode-DFS-2016
|
|
|
|
# Apache-2.0 OR BSL-1.0
|
|
|
|
# Apache-2.0 OR BSL-1.0
|
|
|
|
# Apache-2.0 OR MIT
|
|
|
|
|
|
|
|
# MIT
|
|
|
|
# MIT
|
|
|
|
# MIT OR Apache-2.0
|
|
|
|
# MIT OR Apache-2.0
|
|
|
|
# Unlicense OR MIT
|
|
|
|
# Unlicense OR MIT
|
|
|
|
License: BSD-3-Clause AND MIT AND Unicode-DFS-2016 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Unlicense OR MIT)
|
|
|
|
License: BSD-3-Clause AND MIT AND Unicode-DFS-2016 AND (Apache-2.0 OR BSL-1.0) AND (MIT OR Apache-2.0) AND (Unlicense OR MIT)
|
|
|
|
# LICENSE.dependencies contains a full license breakdown
|
|
|
|
# LICENSE.dependencies contains a full license breakdown
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{crate} %{_description}
|
|
|
|
%description -n %{crate} %{_description}
|
|
|
@ -57,30 +56,29 @@ License: BSD-3-Clause AND MIT AND Unicode-DFS-2016 AND (Apache-2.0 OR BSL
|
|
|
|
%{zsh_completions_dir}/_rg
|
|
|
|
%{zsh_completions_dir}/_rg
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
%cargo_prep
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%generate_buildrequires
|
|
|
|
%cargo_generate_buildrequires -a
|
|
|
|
%cargo_generate_buildrequires -a
|
|
|
|
echo '/usr/bin/asciidoctor'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%cargo_build -a
|
|
|
|
%cargo_build -a
|
|
|
|
%cargo_license_summary -a
|
|
|
|
%{cargo_license_summary -a}
|
|
|
|
%{cargo_license -a} > LICENSE.dependencies
|
|
|
|
%{cargo_license -a} > LICENSE.dependencies
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%cargo_install -a
|
|
|
|
%cargo_install -a
|
|
|
|
# install manpage
|
|
|
|
# generate and install manpage
|
|
|
|
install -Dpm0644 -t %{buildroot}%{_mandir}/man1 \
|
|
|
|
target/release/rg --generate man > rg.1
|
|
|
|
target/release/build/%{crate}-*/out/rg.1
|
|
|
|
install -Dpm 0644 rg.1 -t %{buildroot}/%{_mandir}/man1/
|
|
|
|
# install shell completions
|
|
|
|
# generate and install shell completions
|
|
|
|
install -Dpm0644 -t %{buildroot}%{bash_completions_dir} \
|
|
|
|
target/release/rg --generate complete-bash > rg.bash
|
|
|
|
target/release/build/%{crate}-*/out/rg.bash
|
|
|
|
target/release/rg --generate complete-fish > rg.fish
|
|
|
|
install -Dpm0644 -t %{buildroot}%{fish_completions_dir} \
|
|
|
|
target/release/rg --generate complete-zsh > _rg
|
|
|
|
target/release/build/%{crate}-*/out/rg.fish
|
|
|
|
install -Dpm 0644 rg.bash -t %{buildroot}/%{bash_completions_dir}
|
|
|
|
install -Dpm0644 -t %{buildroot}%{zsh_completions_dir} \
|
|
|
|
install -Dpm 0644 rg.fish -t %{buildroot}/%{fish_completions_dir}
|
|
|
|
complete/_rg
|
|
|
|
install -Dpm 0644 _rg -t %{buildroot}/%{zsh_completions_dir}
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|