d4d2cc00b6
- Update to version 0.15.0 * Features - This release adds a new --diff/-d option that can be used to only show lines surrounding Git changes, i.e. added, removed or modified lines. The amount of additional context can be controlled with --diff-context=N. See #23 and #940 * Bugfixes - Error message printed in the middle of the output for another file, see #946 Performance improvements when using custom caches (via bat cache --build): the bat startup time should now be twice as fast. * Themes - Updated version of the Solarized dark/light themes, see #941 * bat as a library - There are a few changes in the "low level" API (the Config struct has changed andthe error handler needs a new &mut dyn Write argument). The high-level API is not affected. - Changes from version 0.14.0 * Features - Added a new --file-name <name>… option to overwrite the displayed filename(s) in the header. This is useful when piping input into bat. See #654 and #892. - Added a new --generate-config-file option to create an initial configuration file at the right place. See #870. * Bugfixes - Performance problems with C# source code have been fixed, see #677 - Performance problems with Makefiles have been fixed, see #750 - Fix bug when highlighting Ruby files with unindented heredocs OBS-URL: https://build.opensuse.org/request/show/800149 OBS-URL: https://build.opensuse.org/package/show/utilities/bat?expand=0&rev=19
64 lines
1.9 KiB
RPMSpec
64 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package bat
|
|
#
|
|
# Copyright (c) 2020 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.15.0
|
|
Release: 0
|
|
Summary: A cat(1) clone with syntax highlighting and Git integration
|
|
License: MIT OR Apache-2.0
|
|
Group: Productivity/Text/Utilities
|
|
URL: https://github.com/sharkdp/bat
|
|
Source0: https://github.com/sharkdp/bat/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
Source1: vendor.tar.xz
|
|
# Instructions on how to generate vendor.tar.xz
|
|
Source2: README.packager
|
|
BuildRequires: cargo
|
|
BuildRequires: clang
|
|
BuildRequires: cmake
|
|
BuildRequires: rust
|
|
BuildRequires: rust-std
|
|
BuildRequires: zlib-devel
|
|
|
|
%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
|
|
mkdir .cargo
|
|
cat >.cargo/config <<EOF
|
|
[source.crates-io]
|
|
registry = 'https://github.com/rust-lang/crates.io-index'
|
|
replace-with = 'vendored-sources'
|
|
[source.vendored-sources]
|
|
directory = './vendor'
|
|
EOF
|
|
|
|
%build
|
|
cargo build --release --locked %{?_smp_mflags}
|
|
|
|
%install
|
|
cargo install --no-track --root=%{buildroot}%{_prefix} --path .
|
|
|
|
%files
|
|
%doc README.md
|
|
%license LICENSE-MIT LICENSE-APACHE
|
|
%{_bindir}/bat
|
|
|
|
%changelog
|