2018-09-28 17:16:54 +02:00
|
|
|
#
|
|
|
|
# spec file for package bat
|
|
|
|
#
|
2022-04-18 20:21:30 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2018-09-28 17:16:54 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-02-12 16:07:55 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-09-28 17:16:54 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: bat
|
2022-09-14 15:18:57 +02:00
|
|
|
Version: 0.22.1
|
2018-09-28 17:16:54 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: A cat(1) clone with syntax highlighting and Git integration
|
Accepting request 881305 from home:namtrac:branches:utilities
- Update to version 0.18.0
* Features
- Use a pager when bat --list-languages is called, see #1394 (@stku1985)
* Bugfixes
- If the last line doesn't end with a newline character,
don't add it if --style=plain, see #1438 (@Enselic)
- Only print themes hint in interactive mode (bat --list-themes),
see #1439 (@rsteube)
- VimL syntax highlighting fix, see #1450 (@esensar)
- Print an 'Invalid syntax theme settings' error message if a custom
theme is broken, see #614 (@Enselic)
- If plain mode is set and wrap is not explicitly opted in,
long lines will no be truncated, see #1426
- If PAGER (but not BAT_PAGER or --pager) is more or most,
silently use less instead to ensure support for colors, see #1063 (@Enselic)
- If PAGER is bat, silently use less to prevent recursion.
For BAT_PAGER or --pager, exit with error, see #1413 (@Enselic)
- Manpage highlighting fix, see #1511 (@keith-hall)
- BAT_CONFIG_PATH ignored by bat if non-existent, see #1550 (@sharkdp)
* Other
- Performance improvements, see #1421 (@LovecraftianHorror)
- Added a new --diagnostic option to collect information for
bug reports, see #1459 (@sharkdp)
- Modified default theme colors to differentiate between a JSON key
and a string value, see #1400 (@keith-hall)
- Upped min required Rust version to 1.42
* Syntaxes
- Added Zig syntax, see #1470 (@paulsmith)
- Added Lean syntax, see #1446 (@Julian)
OBS-URL: https://build.opensuse.org/request/show/881305
OBS-URL: https://build.opensuse.org/package/show/utilities/bat?expand=0&rev=25
2021-03-25 14:07:38 +01:00
|
|
|
License: Apache-2.0 OR MIT
|
2018-09-28 17:16:54 +02:00
|
|
|
Group: Productivity/Text/Utilities
|
2021-08-18 13:24:31 +02:00
|
|
|
URL: https://github.com/sharkdp/bat
|
2021-06-16 11:24:39 +02:00
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2018-09-28 17:16:54 +02:00
|
|
|
Source1: vendor.tar.xz
|
2021-10-04 10:28:19 +02:00
|
|
|
Source2: cargo_config
|
|
|
|
BuildRequires: cargo-packaging
|
2022-06-07 16:31:15 +02:00
|
|
|
# weak-dep-features introduced in 1.60 and already used by libgit2-sys
|
|
|
|
# https://github.com/rust-lang/git2-rs/commit/d8ee105a8f3ce4d5c57cd091b67943aab86b176a
|
|
|
|
BuildRequires: rust >= 1.60
|
2021-06-16 11:24:39 +02:00
|
|
|
ExclusiveArch: %{rust_arches}
|
2018-09-28 17:16:54 +02:00
|
|
|
|
|
|
|
%description
|
2018-10-02 12:09:13 +02:00
|
|
|
A cat(1) clone which supports syntax highlighting for a large number of
|
|
|
|
programming and markup languages. It has git integration and automatic paging.
|
2018-09-28 17:16:54 +02:00
|
|
|
|
|
|
|
%prep
|
2019-04-30 15:19:12 +02:00
|
|
|
%setup -qa1
|
2021-10-04 10:28:19 +02:00
|
|
|
mkdir .cargo
|
|
|
|
cp %{SOURCE2} .cargo/config
|
2018-09-28 17:16:54 +02:00
|
|
|
|
|
|
|
%build
|
2021-06-16 11:24:39 +02:00
|
|
|
%{cargo_build}
|
2018-09-28 17:16:54 +02:00
|
|
|
|
|
|
|
%install
|
2021-06-16 11:24:39 +02:00
|
|
|
install -D -m 0755 target/release/%{name} %{buildroot}%{_bindir}/%{name}
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
|
|
|
%{cargo_test}
|
|
|
|
%endif
|
2018-09-28 17:16:54 +02:00
|
|
|
|
|
|
|
%files
|
2021-06-16 11:24:39 +02:00
|
|
|
%doc README.md CONTRIBUTING.md CHANGELOG.md
|
2019-03-11 21:01:05 +01:00
|
|
|
%license LICENSE-MIT LICENSE-APACHE
|
2021-06-16 11:24:39 +02:00
|
|
|
%{_bindir}/%{name}
|
2019-02-12 16:07:55 +01:00
|
|
|
|
|
|
|
%changelog
|