|
|
|
@ -6,29 +6,25 @@
|
|
|
|
|
%global crate globset
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
|
Version: 0.4.2
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Version: 0.4.3
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Single glob and glob set matching
|
|
|
|
|
|
|
|
|
|
# Upstream license specification: Unlicense/MIT
|
|
|
|
|
License: Unlicense or MIT
|
|
|
|
|
URL: https://crates.io/crates/globset
|
|
|
|
|
Source: %{crates_source}
|
|
|
|
|
# Initial patched metadata
|
|
|
|
|
# * Update to aho-corasick 0.7: https://github.com/BurntSushi/ripgrep/commit/cd9815cb376e4679af93a90a964cdb78173318da
|
|
|
|
|
Patch0: globset-fix-metadata.diff
|
|
|
|
|
Patch1: 0001-deps-update-to-aho-corasick-0.7.patch
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
|
BuildRequires: (crate(aho-corasick/default) >= 0.7.3 with crate(aho-corasick/default) < 0.8.0)
|
|
|
|
|
BuildRequires: (crate(bstr/std) >= 0.1.2 with crate(bstr/std) < 0.2.0)
|
|
|
|
|
BuildRequires: (crate(fnv/default) >= 1.0.6 with crate(fnv/default) < 2.0.0)
|
|
|
|
|
BuildRequires: (crate(log/default) >= 0.4.5 with crate(log/default) < 0.5.0)
|
|
|
|
|
BuildRequires: (crate(memchr/default) >= 2.0.2 with crate(memchr/default) < 3.0.0)
|
|
|
|
|
BuildRequires: (crate(regex/default) >= 1.0.5 with crate(regex/default) < 2.0.0)
|
|
|
|
|
BuildRequires: (crate(regex/default) >= 1.1.5 with crate(regex/default) < 2.0.0)
|
|
|
|
|
%if %{with check}
|
|
|
|
|
BuildRequires: (crate(glob/default) >= 0.2.11 with crate(glob/default) < 0.3.0)
|
|
|
|
|
BuildRequires: (crate(glob/default) >= 0.3.0 with crate(glob/default) < 0.4.0)
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%global _description \
|
|
|
|
@ -77,9 +73,7 @@ which use "simd-accel" feature of "%{crate}" crate.
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -N
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
%patch1 -p2
|
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
@ -94,6 +88,9 @@ which use "simd-accel" feature of "%{crate}" crate.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Apr 16 12:29:32 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.3-1
|
|
|
|
|
- Update to 0.4.3
|
|
|
|
|
|
|
|
|
|
* Wed Apr 03 2019 Josh Stone <jistone@redhat.com> - 0.4.2-4
|
|
|
|
|
- Update to aho-corasick 0.7
|
|
|
|
|
|
|
|
|
|