71 lines
2.1 KiB
RPMSpec
71 lines
2.1 KiB
RPMSpec
# Generated by rust2rpm
|
|
%bcond_without check
|
|
|
|
%global crate bat
|
|
|
|
Name: rust-%{crate}
|
|
Version: 0.7.0
|
|
Release: 1%{?dist}
|
|
Summary: cat(1) clone with wings
|
|
|
|
# Upstream license specification: MIT/Apache-2.0
|
|
License: MIT or ASL 2.0
|
|
URL: https://crates.io/crates/bat
|
|
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
BuildRequires: rust-packaging
|
|
# [dependencies]
|
|
BuildRequires: (crate(ansi_term) >= 0.11.0 with crate(ansi_term) < 0.12.0)
|
|
BuildRequires: (crate(atty) >= 0.2.2 with crate(atty) < 0.3.0)
|
|
BuildRequires: ((crate(clap) >= 2.32.0 with crate(clap) < 3.0.0) with crate(clap/suggestions) with crate(clap/color) with crate(clap/wrap_help))
|
|
BuildRequires: (crate(console) >= 0.6.0 with crate(console) < 0.7.0)
|
|
BuildRequires: (crate(directories) >= 1.0.0 with crate(directories) < 2.0.0)
|
|
BuildRequires: (crate(error-chain) >= 0.12.0 with crate(error-chain) < 0.13.0)
|
|
BuildRequires: (crate(git2) >= 0.7.0 with crate(git2) < 0.8.0)
|
|
BuildRequires: (crate(lazy_static) >= 1.0.0 with crate(lazy_static) < 2.0.0)
|
|
BuildRequires: ((crate(syntect) >= 2.1.0 with crate(syntect) < 3.0.0) with crate(syntect/parsing) with crate(syntect/yaml-load) with crate(syntect/dump-load) with crate(syntect/dump-create))
|
|
%if %{with check}
|
|
# [dev-dependencies]
|
|
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
|
|
|
|
%install
|
|
%cargo_install
|
|
%{__install} -Dpm0644 -t %{buildroot}%{_mandir}/man1 doc/bat.1
|
|
|
|
%if %{with check}
|
|
%check
|
|
%cargo_test
|
|
%endif
|
|
|
|
%files -n %{crate}
|
|
%license LICENSE-MIT LICENSE-APACHE
|
|
%doc README.md
|
|
%{_bindir}/bat
|
|
%{_mandir}/man1/bat.1*
|
|
|
|
%changelog
|
|
* Thu Sep 13 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.7.0-1
|
|
- Update to 0.7.0
|
|
|
|
* Mon Sep 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.1-1
|
|
- Initial package
|