rust-bat/rust-bat.spec
Fedora Release Engineering 4afe9f25ae - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-02 13:23:24 +00:00

97 lines
3.6 KiB
RPMSpec

# Generated by rust2rpm
# * assert_cmd is not packaged
%bcond_with check
%global crate bat
Name: rust-%{crate}
Version: 0.9.0
Release: 2%{?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
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.32.0 with crate(clap/color) < 3.0.0)
BuildRequires: (crate(clap/default) >= 2.32.0 with crate(clap/default) < 3.0.0)
BuildRequires: (crate(clap/suggestions) >= 2.32.0 with crate(clap/suggestions) < 3.0.0)
BuildRequires: (crate(clap/wrap_help) >= 2.32.0 with crate(clap/wrap_help) < 3.0.0)
BuildRequires: (crate(console/default) >= 0.6.0 with crate(console/default) < 0.7.0)
BuildRequires: (crate(content_inspector/default) >= 0.2.4 with crate(content_inspector/default) < 0.3.0)
BuildRequires: (crate(directories/default) >= 1.0.0 with crate(directories/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.7.0 with crate(git2) < 0.8.0)
BuildRequires: (crate(lazy_static/default) >= 1.2.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.0.2 with crate(syntect/dump-create) < 4.0.0)
BuildRequires: (crate(syntect/dump-load) >= 3.0.2 with crate(syntect/dump-load) < 4.0.0)
BuildRequires: (crate(syntect/parsing) >= 3.0.2 with crate(syntect/parsing) < 4.0.0)
BuildRequires: (crate(syntect/yaml-load) >= 3.0.2 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.10.1 with crate(assert_cmd/default) < 0.11.0)
BuildRequires: (crate(escargot/default) >= 0.3.1 with crate(escargot/default) < 0.4.0)
BuildRequires: (crate(tempdir/default) >= 0.3.0 with crate(tempdir/default) < 0.4.0)
%endif
%global _description \
A cat(1) clone with wings.
%description %{_description}
%package -n %{crate}
Summary: %{summary}
%description -n %{crate}
%{summary}.
%files -n %{crate}
%license LICENSE-MIT LICENSE-APACHE
%doc README.md
%{_bindir}/bat
%{_mandir}/man1/bat.1*
%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
%changelog
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Tue Nov 13 2018 Josh Stone <jistone@redhat.com> - 0.9.0-1
- Update to 0.9.0
* Sun Nov 04 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.8.0-1
- Update to 0.8.0
* Thu Oct 04 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.7.1-1
- Update to 0.7.1
* 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