|
|
|
@ -1,13 +1,14 @@
|
|
|
|
|
# Generated by rust2rpm-9-1.fc31
|
|
|
|
|
# Generated by rust2rpm 10
|
|
|
|
|
%bcond_without check
|
|
|
|
|
# Exa is not supposed to be used as a library
|
|
|
|
|
%global __cargo_skip_build 0
|
|
|
|
|
%global __cargo_is_lib() false
|
|
|
|
|
|
|
|
|
|
%global crate exa
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
|
Version: 0.8.0
|
|
|
|
|
Release: 16%{?dist}
|
|
|
|
|
Release: 17%{?dist}
|
|
|
|
|
Summary: Modern replacement for ls
|
|
|
|
|
|
|
|
|
|
# Upstream license specification: MIT
|
|
|
|
@ -35,29 +36,14 @@ Patch3: 0001-Bump-users-crate-version.patch
|
|
|
|
|
Patch4: 0001-Fix-usages-of-number_prefix.patch
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
%if %{__cargo_skip_build}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
|
BuildRequires: (crate(ansi_term/default) >= 0.11.0 with crate(ansi_term/default) < 0.12.0)
|
|
|
|
|
BuildRequires: (crate(datetime/default) >= 0.4.5 with crate(datetime/default) < 0.5.0)
|
|
|
|
|
BuildRequires: (crate(env_logger/default) >= 0.6.0 with crate(env_logger/default) < 0.7.0)
|
|
|
|
|
BuildRequires: (crate(git2) >= 0.9.0 with crate(git2) < 0.10.0)
|
|
|
|
|
BuildRequires: (crate(glob/default) >= 0.3.0 with crate(glob/default) < 0.4.0)
|
|
|
|
|
BuildRequires: (crate(lazy_static/default) >= 1.0.0 with crate(lazy_static/default) < 2.0.0)
|
|
|
|
|
BuildRequires: (crate(libc/default) >= 0.2.9 with crate(libc/default) < 0.3.0)
|
|
|
|
|
BuildRequires: (crate(locale/default) >= 0.2.1 with crate(locale/default) < 0.3.0)
|
|
|
|
|
BuildRequires: (crate(log/default) >= 0.4.0 with crate(log/default) < 0.5.0)
|
|
|
|
|
BuildRequires: (crate(natord/default) >= 1.0.7 with crate(natord/default) < 2.0.0)
|
|
|
|
|
BuildRequires: (crate(num_cpus/default) >= 1.3.0 with crate(num_cpus/default) < 2.0.0)
|
|
|
|
|
BuildRequires: (crate(number_prefix/default) >= 0.3.0 with crate(number_prefix/default) < 0.4.0)
|
|
|
|
|
BuildRequires: (crate(scoped_threadpool/default) >= 0.1.0 with crate(scoped_threadpool/default) < 0.2.0)
|
|
|
|
|
BuildRequires: (crate(term_grid/default) >= 0.1.6 with crate(term_grid/default) < 0.2.0)
|
|
|
|
|
BuildRequires: (crate(term_size/default) >= 0.3.0 with crate(term_size/default) < 0.4.0)
|
|
|
|
|
BuildRequires: (crate(unicode-width/default) >= 0.1.4 with crate(unicode-width/default) < 0.2.0)
|
|
|
|
|
BuildRequires: (crate(users/default) >= 0.9.0 with crate(users/default) < 0.10.0)
|
|
|
|
|
BuildRequires: (crate(zoneinfo_compiled/default) >= 0.4.5 with crate(zoneinfo_compiled/default) < 0.5.0)
|
|
|
|
|
|
|
|
|
|
%global _description \
|
|
|
|
|
A modern replacement for ls.
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
|
Modern replacement for ls.}
|
|
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
@ -85,17 +71,20 @@ Summary: %{summary}
|
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%cargo_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%cargo_install
|
|
|
|
|
%{__install} -Dpm0644 -t %{buildroot}%{_mandir}/man1 contrib/man/exa.1
|
|
|
|
|
%{__install} -Dpm0644 -T contrib/completions.bash \
|
|
|
|
|
install -Dpm0644 -t %{buildroot}%{_mandir}/man1 contrib/man/exa.1
|
|
|
|
|
install -Dpm0644 -T contrib/completions.bash \
|
|
|
|
|
%{buildroot}%{_datadir}/bash-completion/completions/exa.bash
|
|
|
|
|
%{__install} -Dpm0644 -T contrib/completions.fish \
|
|
|
|
|
install -Dpm0644 -T contrib/completions.fish \
|
|
|
|
|
%{buildroot}%{_datadir}/fish/vendor_functions.d/exa.fish
|
|
|
|
|
%{__install} -Dpm0644 -T contrib/completions.zsh \
|
|
|
|
|
install -Dpm0644 -T contrib/completions.zsh \
|
|
|
|
|
%{buildroot}%{_datadir}/zsh/site-functions/_exa
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
@ -105,6 +94,9 @@ Summary: %{summary}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sun Jul 14 19:34:42 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.8.0-17
|
|
|
|
|
- Regenerate
|
|
|
|
|
|
|
|
|
|
* Fri Jun 07 2019 Josh Stone <jistone@redhat.com> - 0.8.0-16
|
|
|
|
|
- Bump git2 to 0.9
|
|
|
|
|
|
|
|
|
|