Blame rust-ripgrep.spec

07077f9
# Generated by rust2rpm
07077f9
%bcond_without check
07077f9
07077f9
%global crate ripgrep
07077f9
07077f9
Name:           rust-%{crate}
07077f9
Version:        0.7.1
ec3f22b
Release:        3%{?dist}
07077f9
Summary:        Line oriented search tool using Rust's regex library
07077f9
07077f9
License:        Unlicense or MIT
07077f9
URL:            https://crates.io/crates/ripgrep
07077f9
Source0:        https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
07077f9
# Initial patched metadata
07077f9
# * No simd
07077f9
# * Bump memmap to 0.6, https://github.com/BurntSushi/ripgrep/pull/657
07077f9
# * Bump bytecount to 0.2, https://github.com/BurntSushi/ripgrep/pull/679
07077f9
Patch0:         ripgrep-0.7.1-fix-metadata.diff
07077f9
# Really make code compatible with memmap v0.6
07077f9
Patch1:         0001-Update-to-memmap-0.6.patch
07077f9
07077f9
ExclusiveArch:  %{rust_arches}
07077f9
07077f9
BuildRequires:  rust-packaging
07077f9
# [dependencies]
07077f9
BuildRequires:  (crate(atty) >= 0.2.2 with crate(atty) < 0.3.0)
07077f9
BuildRequires:  (crate(bytecount) >= 0.2.0 with crate(bytecount) < 0.3.0)
07077f9
BuildRequires:  (crate(clap) >= 2.26.0 with crate(clap) < 3.0.0)
07077f9
BuildRequires:  (crate(encoding_rs) >= 0.7.0 with crate(encoding_rs) < 0.8.0)
07077f9
BuildRequires:  (crate(env_logger) >= 0.4.0 with crate(env_logger) < 0.5.0)
07077f9
BuildRequires:  (crate(grep) >= 0.1.7 with crate(grep) < 0.2.0)
07077f9
BuildRequires:  (crate(ignore) >= 0.3.1 with crate(ignore) < 0.4.0)
07077f9
BuildRequires:  (crate(lazy_static) >= 0.2.0 with crate(lazy_static) < 0.3.0)
07077f9
BuildRequires:  (crate(libc) >= 0.2.0 with crate(libc) < 0.3.0)
07077f9
BuildRequires:  (crate(log) >= 0.3.0 with crate(log) < 0.4.0)
07077f9
BuildRequires:  (crate(memchr) >= 2.0.0 with crate(memchr) < 3.0.0)
07077f9
BuildRequires:  (crate(memmap) >= 0.6.0 with crate(memmap) < 0.7.0)
07077f9
BuildRequires:  (crate(num_cpus) >= 1.0.0 with crate(num_cpus) < 2.0.0)
07077f9
BuildRequires:  (crate(regex) >= 0.2.1 with crate(regex) < 0.3.0)
07077f9
BuildRequires:  (crate(same-file) >= 1.0.0 with crate(same-file) < 2.0.0)
07077f9
BuildRequires:  (crate(termcolor) >= 0.3.3 with crate(termcolor) < 0.4.0)
07077f9
# [build-dependencies]
07077f9
BuildRequires:  (crate(clap) >= 2.26.0 with crate(clap) < 3.0.0)
07077f9
BuildRequires:  (crate(lazy_static) >= 0.2.0 with crate(lazy_static) < 0.3.0)
07077f9
07077f9
%description
07077f9
%{summary}.
07077f9
07077f9
%package     -n %{crate}
07077f9
Summary:        %{summary}
07077f9
07077f9
%description -n %{crate}
07077f9
Line oriented search tool using Rust's regex library. Combines
07077f9
the raw performance of grep with the usability of the silver searcher.
07077f9
07077f9
%prep
07077f9
%autosetup -n %{crate}-%{version} -p1
07077f9
%cargo_prep
07077f9
07077f9
%build
07077f9
%cargo_build
07077f9
07077f9
%install
07077f9
%cargo_install
07077f9
%{__install} -Dpm0644 -t %{buildroot}%{_mandir}/man1 doc/rg.1
07077f9
07077f9
%if %{with check}
07077f9
%check
07077f9
%cargo_test
07077f9
%endif
07077f9
07077f9
%files       -n %{crate}
07077f9
%license LICENSE-MIT UNLICENSE COPYING
07077f9
%doc README.md CHANGELOG.md
07077f9
%{_bindir}/rg
07077f9
%{_mandir}/man1/rg.1*
07077f9
07077f9
%changelog
ec3f22b
* Wed Nov 15 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.7.1-3
ec3f22b
- Rebuild for dependency change
ec3f22b
a469fd6
* Tue Nov 14 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.7.1-2
a469fd6
- Rebuild for dependency change
a469fd6
07077f9
* Mon Nov 13 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.7.1-1
07077f9
- Update to 0.7.1
07077f9
07077f9
* Wed Jul 05 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.5.2-3
07077f9
- Rebuild for clap
07077f9
07077f9
* Thu Jun 15 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.5.2-2
07077f9
- Bump encoding_rs to 0.6
07077f9
07077f9
* Wed Jun 14 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.5.2-1
07077f9
- Update to 0.5.2
07077f9
07077f9
* Wed Jun 14 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.5.0-2
07077f9
- Port to use rust-packaging
07077f9
07077f9
* Wed Mar 15 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.5.0-1
07077f9
- Update to 0.5.0
07077f9
07077f9
* Sat Mar 11 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.0-6
07077f9
- Rename with rust prefix
07077f9
07077f9
* Sun Feb 26 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.0-5
07077f9
- Rebuild
07077f9
07077f9
* Sun Feb 26 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.0-4
07077f9
- Ship manpage
07077f9
07077f9
* Sun Feb 26 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.0-3
07077f9
- Rebuild (termcolor)
07077f9
07077f9
* Sun Feb 26 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.0-2
07077f9
- Rebuild (memmap)
07077f9
07077f9
* Sun Feb 26 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.0-1
07077f9
- Initial package