bat/bat.spec

59 lines
1.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package bat
#
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
# 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
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 13:24:31 +02:00
Version: 0.18.2
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
Group: Productivity/Text/Utilities
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 13:24:31 +02:00
URL: https://github.com/sharkdp/bat
Source0: %{name}-%{version}.tar.xz
Source1: vendor.tar.xz
Source2: cargo_config
BuildRequires: cargo-packaging
BuildRequires: rust >= 1.45
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
mkdir .cargo
cp %{SOURCE2} .cargo/config
%build
%{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