diff --git a/rust-ripgrep.spec b/rust-ripgrep.spec index 6133349..afdc9e3 100644 --- a/rust-ripgrep.spec +++ b/rust-ripgrep.spec @@ -47,6 +47,7 @@ BuildRequires: (crate(termcolor) >= 1.0.0 with crate(termcolor) < 2.0.0) # [build-dependencies] BuildRequires: ((crate(clap) >= 2.29.4 with crate(clap) < 3.0.0) with crate(clap/suggestions) with crate(clap/color)) BuildRequires: (crate(lazy_static) >= 1.0.0 with crate(lazy_static) < 2.0.0) +BuildRequires: git-core BuildRequires: %{_bindir}/a2x %description @@ -60,7 +61,8 @@ Line oriented search tool using Rust's regex library. Combines the raw performance of grep with the usability of the silver searcher. %prep -%autosetup -n %{crate}-%{version} -p1 +# Use -Sgit to workaround https://github.com/BurntSushi/ripgrep/issues/996 +%autosetup -n %{crate}-%{version} -p1 -Sgit %cargo_prep %build