|
|
@ -1,12 +1,13 @@
|
|
|
|
# Generated by rust2rpm-9-1.fc30
|
|
|
|
# Generated by rust2rpm 10
|
|
|
|
# * assert_cmd is not packaged
|
|
|
|
# * assert_cmd is not packaged
|
|
|
|
%bcond_with check
|
|
|
|
%bcond_with check
|
|
|
|
|
|
|
|
%global __cargo_skip_build 0
|
|
|
|
|
|
|
|
|
|
|
|
%global crate bat
|
|
|
|
%global crate bat
|
|
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Version: 0.11.0
|
|
|
|
Version: 0.11.0
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Summary: cat(1) clone with wings
|
|
|
|
Summary: cat(1) clone with wings
|
|
|
|
|
|
|
|
|
|
|
|
# Upstream license specification: MIT/Apache-2.0
|
|
|
|
# Upstream license specification: MIT/Apache-2.0
|
|
|
@ -15,39 +16,15 @@ URL: https://crates.io/crates/bat
|
|
|
|
Source: %{crates_source}
|
|
|
|
Source: %{crates_source}
|
|
|
|
# Initial patched metadata
|
|
|
|
# Initial patched metadata
|
|
|
|
# * Bump git2 to 0.9, https://github.com/sharkdp/bat/pull/580
|
|
|
|
# * Bump git2 to 0.9, https://github.com/sharkdp/bat/pull/580
|
|
|
|
|
|
|
|
# * Bump dirs to 2.0, https://github.com/sharkdp/bat/pull/572
|
|
|
|
Patch0: bat-fix-metadata.diff
|
|
|
|
Patch0: bat-fix-metadata.diff
|
|
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
BuildRequires: (crate(ansi_colours/default) >= 1.0.0 with crate(ansi_colours/default) < 2.0.0)
|
|
|
|
|
|
|
|
BuildRequires: (crate(ansi_term/default) >= 0.11.0 with crate(ansi_term/default) < 0.12.0)
|
|
|
|
|
|
|
|
BuildRequires: (crate(atty/default) >= 0.2.2 with crate(atty/default) < 0.3.0)
|
|
|
|
|
|
|
|
BuildRequires: (crate(clap/color) >= 2.33.0 with crate(clap/color) < 3.0.0)
|
|
|
|
|
|
|
|
BuildRequires: (crate(clap/default) >= 2.33.0 with crate(clap/default) < 3.0.0)
|
|
|
|
|
|
|
|
BuildRequires: (crate(clap/suggestions) >= 2.33.0 with crate(clap/suggestions) < 3.0.0)
|
|
|
|
|
|
|
|
BuildRequires: (crate(clap/wrap_help) >= 2.33.0 with crate(clap/wrap_help) < 3.0.0)
|
|
|
|
|
|
|
|
BuildRequires: (crate(console/default) >= 0.7.0 with crate(console/default) < 0.8.0)
|
|
|
|
|
|
|
|
BuildRequires: (crate(content_inspector/default) >= 0.2.4 with crate(content_inspector/default) < 0.3.0)
|
|
|
|
|
|
|
|
BuildRequires: (crate(dirs/default) >= 1.0.0 with crate(dirs/default) < 2.0.0)
|
|
|
|
|
|
|
|
BuildRequires: (crate(encoding/default) >= 0.2.0 with crate(encoding/default) < 0.3.0)
|
|
|
|
|
|
|
|
BuildRequires: (crate(error-chain) >= 0.12.0 with crate(error-chain) < 0.13.0)
|
|
|
|
|
|
|
|
BuildRequires: (crate(git2) >= 0.9.0 with crate(git2) < 0.10.0)
|
|
|
|
|
|
|
|
BuildRequires: (crate(lazy_static/default) >= 1.3.0 with crate(lazy_static/default) < 2.0.0)
|
|
|
|
|
|
|
|
BuildRequires: (crate(shell-words/default) >= 0.1.0 with crate(shell-words/default) < 0.2.0)
|
|
|
|
|
|
|
|
BuildRequires: (crate(syntect/dump-create) >= 3.2.0 with crate(syntect/dump-create) < 4.0.0)
|
|
|
|
|
|
|
|
BuildRequires: (crate(syntect/dump-load) >= 3.2.0 with crate(syntect/dump-load) < 4.0.0)
|
|
|
|
|
|
|
|
BuildRequires: (crate(syntect/parsing) >= 3.2.0 with crate(syntect/parsing) < 4.0.0)
|
|
|
|
|
|
|
|
BuildRequires: (crate(syntect/yaml-load) >= 3.2.0 with crate(syntect/yaml-load) < 4.0.0)
|
|
|
|
|
|
|
|
BuildRequires: (crate(wild/default) >= 2.0.0 with crate(wild/default) < 3.0.0)
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
|
|
|
|
BuildRequires: (crate(assert_cmd/default) >= 0.11.1 with crate(assert_cmd/default) < 0.12.0)
|
|
|
|
|
|
|
|
BuildRequires: (crate(escargot/default) >= 0.5.0 with crate(escargot/default) < 0.6.0)
|
|
|
|
|
|
|
|
BuildRequires: (crate(tempdir/default) >= 0.3.0 with crate(tempdir/default) < 0.4.0)
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global _description \
|
|
|
|
%global _description %{expand:
|
|
|
|
A cat(1) clone with wings.
|
|
|
|
Cat(1) clone with wings.}
|
|
|
|
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
|
|
@ -66,12 +43,16 @@ Summary: %{summary}
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
%cargo_prep
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%cargo_build
|
|
|
|
%cargo_build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%cargo_install
|
|
|
|
%cargo_install
|
|
|
|
%{__install} -Dpm0644 -t %{buildroot}%{_mandir}/man1 doc/bat.1
|
|
|
|
install -Dpm0644 -t %{buildroot}%{_mandir}/man1 \
|
|
|
|
|
|
|
|
doc/bat.1
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
|
|
|
%check
|
|
|
@ -79,6 +60,9 @@ Summary: %{summary}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Sun Jul 14 18:28:38 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.11.0-3
|
|
|
|
|
|
|
|
- Update dirs to 2.0
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jun 07 2019 Josh Stone <jistone@redhat.com> - 0.11.0-2
|
|
|
|
* Fri Jun 07 2019 Josh Stone <jistone@redhat.com> - 0.11.0-2
|
|
|
|
- Bump git2 to 0.9
|
|
|
|
- Bump git2 to 0.9
|
|
|
|
|
|
|
|
|
|
|
|