You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
2.4 KiB
71 lines
2.4 KiB
# Generated by rust2rpm
|
|
%bcond_without check
|
|
|
|
%global crate ripgrep
|
|
|
|
Name: rust-%{crate}
|
|
Version: 0.8.1
|
|
Release: 1%{?dist}
|
|
Summary: Line oriented search tool using Rust's regex library. Combines the raw performance of grep with the usability of the silver searcher.
|
|
|
|
License: Unlicense/MIT
|
|
URL: https://crates.io/crates/ripgrep
|
|
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
|
# Initial patched metadata
|
|
Patch0: ripgrep-0.8.1-fix-metadata.diff
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
BuildRequires: rust-packaging
|
|
# [dependencies]
|
|
BuildRequires: (crate(atty) >= 0.2.2 with crate(atty) < 0.3.0)
|
|
BuildRequires: (crate(bytecount) >= 0.3.1 with crate(bytecount) < 0.4.0)
|
|
BuildRequires: ((crate(clap) >= 2.29.4 with crate(clap) < 3.0.0) with crate(clap/suggestions) with crate(clap/color))
|
|
BuildRequires: (crate(encoding_rs) >= 0.7.0 with crate(encoding_rs) < 0.8.0)
|
|
BuildRequires: (crate(globset) >= 0.3.0 with crate(globset) < 0.4.0)
|
|
BuildRequires: (crate(grep) >= 0.1.8 with crate(grep) < 0.2.0)
|
|
BuildRequires: (crate(ignore) >= 0.4.0 with crate(ignore) < 0.5.0)
|
|
BuildRequires: (crate(lazy_static) >= 1.0.0 with crate(lazy_static) < 2.0.0)
|
|
BuildRequires: (crate(libc) >= 0.2.0 with crate(libc) < 0.3.0)
|
|
BuildRequires: (crate(log) >= 0.4.0 with crate(log) < 0.5.0)
|
|
BuildRequires: (crate(memchr) >= 2.0.0 with crate(memchr) < 3.0.0)
|
|
BuildRequires: (crate(memmap) >= 0.6.0 with crate(memmap) < 0.7.0)
|
|
BuildRequires: (crate(num_cpus) >= 1.0.0 with crate(num_cpus) < 2.0.0)
|
|
BuildRequires: (crate(regex) >= 0.2.4 with crate(regex) < 0.3.0)
|
|
BuildRequires: (crate(same-file) >= 1.0.0 with crate(same-file) < 2.0.0)
|
|
BuildRequires: (crate(termcolor) >= 0.3.4 with crate(termcolor) < 0.4.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)
|
|
|
|
%description
|
|
%{summary}.
|
|
|
|
%package -n %{crate}
|
|
Summary: %{summary}
|
|
|
|
%description -n %{crate}
|
|
%{summary}.
|
|
|
|
%prep
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
%cargo_prep
|
|
|
|
%build
|
|
%cargo_build
|
|
|
|
%install
|
|
%cargo_install
|
|
|
|
%if %{with check}
|
|
%check
|
|
%cargo_test
|
|
%endif
|
|
|
|
%files -n %{crate}
|
|
%{_bindir}/rg
|
|
|
|
%changelog
|
|
* Fri Feb 23 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.8.1-1
|
|
- Initial package
|