|
|
@ -1,28 +1,24 @@
|
|
|
|
# Generated by rust2rpm 16
|
|
|
|
# Generated by rust2rpm 24
|
|
|
|
%bcond_without check
|
|
|
|
%bcond_without check
|
|
|
|
%global __cargo_skip_build 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global crate fd-find
|
|
|
|
%global crate fd-find
|
|
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Name: rust-fd-find
|
|
|
|
Version: 8.2.1
|
|
|
|
Version: 8.7.0
|
|
|
|
Release: %autorelease
|
|
|
|
Release: %autorelease
|
|
|
|
Summary: Simple, fast and user-friendly alternative to find
|
|
|
|
Summary: Fd is a simple, fast and user-friendly alternative to find
|
|
|
|
|
|
|
|
|
|
|
|
# Upstream license specification: MIT/Apache-2.0
|
|
|
|
# Upstream license specification: MIT/Apache-2.0
|
|
|
|
License: MIT or ASL 2.0
|
|
|
|
License: MIT OR Apache-2.0
|
|
|
|
URL: https://crates.io/crates/fd-find
|
|
|
|
URL: https://crates.io/crates/fd-find
|
|
|
|
Source: %{crates_source}
|
|
|
|
Source: %{crates_source}
|
|
|
|
# Initial patched metadata
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
# * Bump lscolors from 0.7 to 0.10
|
|
|
|
# * drop jemallocator dependency
|
|
|
|
# * Remove jemallocator from deps
|
|
|
|
Patch: fd-find-fix-metadata.diff
|
|
|
|
Patch0: fd-find-fix-metadata.diff
|
|
|
|
# * drop jemallocator from code
|
|
|
|
# * Disable jemallocator for real
|
|
|
|
Patch: 0001-Remove-usage-of-jemallocator.patch
|
|
|
|
Patch0001: 0001-Remove-usage-of-jemallocator.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
BuildRequires: rust-packaging >= 23
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
%global _description %{expand:
|
|
|
|
Fd is a simple, fast and user-friendly alternative to find.}
|
|
|
|
Fd is a simple, fast and user-friendly alternative to find.}
|
|
|
@ -31,28 +27,29 @@ Fd is a simple, fast and user-friendly alternative to find.}
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{crate}
|
|
|
|
%package -n %{crate}
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
# * ASL 2.0 or MIT
|
|
|
|
# (MIT OR Apache-2.0) AND Unicode-DFS-2016
|
|
|
|
# * MIT
|
|
|
|
# Apache-2.0 OR MIT
|
|
|
|
# * MIT or ASL 2.0
|
|
|
|
# Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT
|
|
|
|
# * Unlicense or MIT
|
|
|
|
# MIT
|
|
|
|
License: MIT
|
|
|
|
# MIT OR Apache-2.0
|
|
|
|
|
|
|
|
# Unlicense OR MIT
|
|
|
|
|
|
|
|
License: MIT AND Unicode-DFS-2016
|
|
|
|
|
|
|
|
# LICENSE.dependencies contains a full license breakdown
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{crate} %{_description}
|
|
|
|
%description -n %{crate} %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{crate}
|
|
|
|
%files -n %{crate}
|
|
|
|
%license LICENSE-MIT LICENSE-APACHE
|
|
|
|
%license LICENSE-APACHE
|
|
|
|
%doc README.md CHANGELOG.md
|
|
|
|
%license LICENSE-MIT
|
|
|
|
|
|
|
|
%license LICENSE.dependencies
|
|
|
|
|
|
|
|
%doc CHANGELOG.md
|
|
|
|
|
|
|
|
%doc CONTRIBUTING.md
|
|
|
|
|
|
|
|
%doc README.md
|
|
|
|
%{_bindir}/fd
|
|
|
|
%{_bindir}/fd
|
|
|
|
%{_mandir}/man1/fd.1*
|
|
|
|
%{_mandir}/man1/fd.1*
|
|
|
|
%dir %{_datadir}/bash-completion
|
|
|
|
%{bash_completions_dir}/fd
|
|
|
|
%dir %{_datadir}/bash-completion/completions
|
|
|
|
%{fish_completions_dir}/fd.fish
|
|
|
|
%{_datadir}/bash-completion/completions/fd.bash
|
|
|
|
%{zsh_completions_dir}/_fd
|
|
|
|
%dir %{_datadir}/fish
|
|
|
|
|
|
|
|
%dir %{_datadir}/fish/vendor_completions.d
|
|
|
|
|
|
|
|
%{_datadir}/fish/vendor_completions.d/fd.fish
|
|
|
|
|
|
|
|
%dir %{_datadir}/zsh
|
|
|
|
|
|
|
|
%dir %{_datadir}/zsh/site-functions
|
|
|
|
|
|
|
|
%{_datadir}/zsh/site-functions/_fd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
@ -63,17 +60,22 @@ License: MIT
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%cargo_build
|
|
|
|
%cargo_build
|
|
|
|
|
|
|
|
# write license summary and breakdown
|
|
|
|
|
|
|
|
%cargo_license_summary
|
|
|
|
|
|
|
|
%{cargo_license} > LICENSE.dependencies
|
|
|
|
|
|
|
|
# generate shell completions
|
|
|
|
|
|
|
|
./target/release/fd --gen-completions bash > fd.bash
|
|
|
|
|
|
|
|
./target/release/fd --gen-completions fish > fd.fish
|
|
|
|
|
|
|
|
./target/release/fd --gen-completions zsh > fd.zsh
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%cargo_install
|
|
|
|
%cargo_install
|
|
|
|
install -Dpm0644 -t %{buildroot}%{_mandir}/man1 \
|
|
|
|
# install manpage
|
|
|
|
doc/fd.1
|
|
|
|
install -Dpm 644 doc/fd.1 -t %{buildroot}/%{_mandir}/man1/
|
|
|
|
install -Dpm0644 -t %{buildroot}%{_datadir}/bash-completion/completions \
|
|
|
|
# install shell completions
|
|
|
|
target/release/build/%{crate}-*/out/fd.bash
|
|
|
|
install -Dpm 0644 fd.bash %{buildroot}/%{bash_completions_dir}/fd
|
|
|
|
install -Dpm0644 -t %{buildroot}%{_datadir}/fish/vendor_completions.d \
|
|
|
|
install -Dpm 0644 fd.fish %{buildroot}/%{fish_completions_dir}/fd.fish
|
|
|
|
target/release/build/%{crate}-*/out/fd.fish
|
|
|
|
install -Dpm 0644 fd.zsh %{buildroot}/%{zsh_completions_dir}/_fd
|
|
|
|
install -Dpm0644 -t %{buildroot}%{_datadir}/zsh/site-functions \
|
|
|
|
|
|
|
|
contrib/completion/_fd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|