bat/bat.spec
Michael Vetter 2e93f4803b Accepting request 912887 from home:jubalh:branches:utilities
- Update to f3d53b to fix build on Tumbleweed because of Rust 1.54
    See https://github.com/sharkdp/bat/issues/1796
  * Update git2 dependency to fix incompatibility with Rust 1.54
  * Reduce startup time in loop-through mode with 80%-90%
  * HighlightingAssets: Move out fn get_integrated_*set() to module scope
  * Support a hidden arg --no-custom-assets that skips loading assets from the cache
  * HighlightingAssets: Make .syntaxes() and syntax_for_file_name() failable
  * HighlightingAssets::get_extension_syntax(): Split up into smaller methods
  * Make loading of cached assets closer in performance to integrated assets
  * Add Enselic in FUNDING.yml
  * Update battest.py
  * Add `rs` identifier for Rust code blocks in Markdown
  * Update CHANGELOG
  * Add groff syntax
  * Add custom FUNDING.yml
  * HighlightingAssets: Introduce private fn new() helper
  * HighlightingAssets: Encapsulate syntax_set behind a getter
  * De-duplicate some themes.bin and syntaxes.bin related code
  * Fix typo in README

- Update to version 0.18.2:
  * Add note on vulnerability reporting, closes #1473
  * Upgrade CHANGELOG with security vulnerability notice
  * Update Julia syntax test
  * Update Julia syntax, closes #1692
  * Update assets
  * Run cargo fmt
  * Bump version to v0.18.2
  * Use resolved path for --diagnostic as well
  * Fix for Windows: do not run binaries from CWD

OBS-URL: https://build.opensuse.org/request/show/912887
OBS-URL: https://build.opensuse.org/package/show/utilities/bat?expand=0&rev=29
2021-08-18 11:24:31 +00:00

59 lines
1.6 KiB
RPMSpec

#
# spec file for package bat
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: bat
Version: 0.18.2
Release: 0
Summary: A cat(1) clone with syntax highlighting and Git integration
License: Apache-2.0 OR MIT
Group: Productivity/Text/Utilities
URL: https://github.com/sharkdp/bat
Source0: %{name}-%{version}.tar.xz
Source1: vendor.tar.xz
BuildRequires: rust >= 1.45
BuildRequires: rust-packaging
ExclusiveArch: %{rust_arches}
%description
A cat(1) clone which supports syntax highlighting for a large number of
programming and markup languages. It has git integration and automatic paging.
%prep
%setup -qa1
%define cargo_registry $(pwd)/vendor
%{cargo_prep}
%build
export CARGO_NET_OFFLINE=true
%{cargo_build}
%install
install -D -m 0755 target/release/%{name} %{buildroot}%{_bindir}/%{name}
%if %{with check}
%check
%{cargo_test}
%endif
%files
%doc README.md CONTRIBUTING.md CHANGELOG.md
%license LICENSE-MIT LICENSE-APACHE
%{_bindir}/%{name}
%changelog