Name: bat Version: 0.7.1 Release: 1%{?dist} Summary: A cat(1) clone with wings. License: MIT or Apache License, Version 2.0 URL: https://github.com/sharkdp/bat Source0: https://github.com/sharkdp/bat/archive/v%{version}/bat-v%{version}.tar.gz BuildRequires: cargo %if 0%{?fedora} >= 24 ExclusiveArch: x86_64 i686 armv7hl %else ExclusiveArch: x86_64 aarch64 %endif %description A cat(1) clone with syntax highlighting, git integration and automatic paging. # Disable debug info; bat doesn't include debug info in release profile %define debug_package %{nil} %prep %autosetup %build cargo build --release %install install -D -p -m 755 target/release/bat %{buildroot}%{_bindir}/bat install -D -p -m 644 doc/bat.1 %{buildroot}%{_mandir}/man1/bat.1 %check cargo test %files %license LICENSE-MIT LICENSE-APACHE %doc README.md %{_bindir}/bat %{_mandir}/man1/bat.1* %changelog * Tue Oct 02 2018 Sebastian Wiesner - 0.7.1-1 - Initial spec file