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.
75 lines
2.1 KiB
75 lines
2.1 KiB
7 years ago
|
# Generated by rust2rpm
|
||
|
%bcond_without check
|
||
|
|
||
|
%global crate fd-find
|
||
|
|
||
|
Name: rust-%{crate}
|
||
|
Version: 6.0.0
|
||
|
Release: 1%{?dist}
|
||
|
Summary: Simple, fast and user-friendly alternative to find
|
||
|
|
||
|
License: MIT or ASL 2.0
|
||
|
URL: https://crates.io/crates/fd-find
|
||
|
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
||
|
# Initial patched metadata
|
||
|
# * Bump ansi_term to 0.10, ignore to 0.3: https://github.com/sharkdp/fd/pull/173
|
||
|
Patch0: fd-find-6.0.0-fix-metadata.diff
|
||
|
|
||
|
ExclusiveArch: %{rust_arches}
|
||
|
|
||
|
BuildRequires: rust-packaging
|
||
|
# [dependencies]
|
||
|
BuildRequires: (crate(ansi_term) >= 0.10.0 with crate(ansi_term) < 0.11.0)
|
||
|
BuildRequires: (crate(atty) >= 0.2.0 with crate(atty) < 0.3.0)
|
||
|
BuildRequires: (crate(clap) >= 2.26.0 with crate(clap) < 3.0.0)
|
||
|
BuildRequires: (crate(ignore) >= 0.3.0 with crate(ignore) < 0.4.0)
|
||
|
BuildRequires: (crate(lazy_static) >= 0.2.9 with crate(lazy_static) < 0.3.0)
|
||
|
BuildRequires: (crate(libc) >= 0.2.0 with crate(libc) < 0.3.0)
|
||
|
BuildRequires: (crate(num_cpus) >= 1.6.2 with crate(num_cpus) < 2.0.0)
|
||
|
BuildRequires: (crate(regex) >= 0.2.0 with crate(regex) < 0.3.0)
|
||
|
BuildRequires: (crate(regex-syntax) >= 0.4.0 with crate(regex-syntax) < 0.5.0)
|
||
|
# [build-dependencies]
|
||
|
BuildRequires: (crate(clap) >= 2.26.0 with crate(clap) < 3.0.0)
|
||
|
BuildRequires: (crate(version_check) >= 0.1.3 with crate(version_check) < 0.2.0)
|
||
|
%if %{with check}
|
||
|
# [dev-dependencies]
|
||
|
BuildRequires: (crate(diff) >= 0.1.0 with crate(diff) < 0.2.0)
|
||
|
BuildRequires: (crate(tempdir) >= 0.3.0 with crate(tempdir) < 0.4.0)
|
||
|
%endif
|
||
|
|
||
|
%description
|
||
|
%{summary}.
|
||
|
|
||
|
%package -n %{crate}
|
||
|
Summary: %{summary}
|
||
|
|
||
|
%description -n %{crate}
|
||
|
%{summary}.
|
||
|
|
||
|
%prep
|
||
|
%autosetup -n %{crate}-%{version} -p1
|
||
|
%cargo_prep
|
||
|
|
||
|
%build
|
||
|
%cargo_build
|
||
|
find
|
||
|
|
||
|
%install
|
||
|
%cargo_install
|
||
|
%{__install} -Dpm0644 -t %{buildroot}%{_mandir}/man1 doc/fd.1
|
||
|
|
||
|
%if %{with check}
|
||
|
%check
|
||
|
%cargo_test
|
||
|
%endif
|
||
|
|
||
|
%files -n %{crate}
|
||
|
%license LICENSE-MIT LICENSE-APACHE
|
||
|
%doc README.md
|
||
|
%{_bindir}/fd
|
||
|
%{_mandir}/man1/fd.1*
|
||
|
|
||
|
%changelog
|
||
|
* Mon Nov 20 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 6.0.0-1
|
||
|
- Initial package
|