bowlofeggs / rpms / rust-bat

Forked from rpms/rust-bat 4 years ago
Clone

Blame rust-bat.spec

f67281e
# Generated by rust2rpm 13
e82c1d1
# * assert_cmd is not packaged
e82c1d1
%bcond_with check
1a340b5
%global __cargo_skip_build 0
e82c1d1
e82c1d1
%global crate bat
e82c1d1
e82c1d1
Name:           rust-%{crate}
f196726
Version:        0.12.1
dab1b43
Release:        2%{?dist}
e82c1d1
Summary:        cat(1) clone with wings
e82c1d1
e82c1d1
# Upstream license specification: MIT/Apache-2.0
9faab6a
# The license data was gathered using cargo-license
9faab6a
License:        (MIT or ASL 2.0) and ASL 2.0 and BSD and (BSD and Zlib) and CC0 and ISC and LGPLv3+ and MIT and (MIT or Unlicense)
e82c1d1
URL:            https://crates.io/crates/bat
e82c1d1
Source:         %{crates_source}
871e68b
# Initial patched metadata
f196726
# * Bump console to 0.9, https://github.com/sharkdp/bat/pull/657
f67281e
# * Bump git2 to 0.11, https://github.com/sharkdp/bat/commit/826624c9fa3af2b9aacd2bbdaa03304b9376b832
871e68b
Patch0:         bat-fix-metadata.diff
e82c1d1
e82c1d1
ExclusiveArch:  %{rust_arches}
e82c1d1
e82c1d1
BuildRequires:  rust-packaging
e82c1d1
1a340b5
%global _description %{expand:
1a340b5
Cat(1) clone with wings.}
e82c1d1
e82c1d1
%description %{_description}
e82c1d1
e82c1d1
%package     -n %{crate}
e82c1d1
Summary:        %{summary}
e82c1d1
96878c2
%description -n %{crate} %{_description}
e82c1d1
e82c1d1
%files       -n %{crate}
e82c1d1
%license LICENSE-MIT LICENSE-APACHE
e82c1d1
%doc README.md
e82c1d1
%{_bindir}/bat
e82c1d1
%{_mandir}/man1/bat.1*
e82c1d1
e82c1d1
%prep
e82c1d1
%autosetup -n %{crate}-%{version_no_tilde} -p1
e82c1d1
%cargo_prep
e82c1d1
1a340b5
%generate_buildrequires
1a340b5
%cargo_generate_buildrequires
1a340b5
e82c1d1
%build
e82c1d1
%cargo_build
e82c1d1
e82c1d1
%install
e82c1d1
%cargo_install
1a340b5
install -Dpm0644 -t %{buildroot}%{_mandir}/man1 \
1a340b5
  doc/bat.1
e82c1d1
e82c1d1
%if %{with check}
e82c1d1
%check
e82c1d1
%cargo_test
e82c1d1
%endif
e82c1d1
e82c1d1
%changelog
dab1b43
* Wed Dec 25 09:50:18 CET 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.12.1-2
f67281e
- Bump git2 to 0.11
f67281e
f196726
* Tue Dec 10 2019 Josh Stone <jistone@redhat.com> - 0.12.1-1
f196726
- Update to 0.12.1
f196726
fa54047
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-4
fa54047
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
fa54047
1a340b5
* Sun Jul 14 18:28:38 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.11.0-3
1a340b5
- Update dirs to 2.0
1a340b5
871e68b
* Fri Jun 07 2019 Josh Stone <jistone@redhat.com> - 0.11.0-2
871e68b
- Bump git2 to 0.9
871e68b
96878c2
* Sat Jun 01 2019 Josh Stone <jistone@redhat.com> - 0.11.0-1
96878c2
- Update to 0.11.0
96878c2
e82c1d1
* Sun Feb 10 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.10.0-1
e82c1d1
- Update to 0.10.0
e82c1d1
e82c1d1
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-2
e82c1d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e82c1d1
e82c1d1
* Tue Nov 13 2018 Josh Stone <jistone@redhat.com> - 0.9.0-1
e82c1d1
- Update to 0.9.0
e82c1d1
e82c1d1
* Sun Nov 04 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.8.0-1
e82c1d1
- Update to 0.8.0
e82c1d1
e82c1d1
* Thu Oct 04 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.7.1-1
e82c1d1
- Update to 0.7.1
e82c1d1
e82c1d1
* Thu Sep 13 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.7.0-1
e82c1d1
- Update to 0.7.0
e82c1d1
e82c1d1
* Mon Sep 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.1-1
e82c1d1
- Initial package