2018-09-28 17:16:54 +02:00
|
|
|
#
|
|
|
|
# spec file for package bat
|
|
|
|
#
|
- Update to 0.23.0:
Features:
* Implemented -S and --chop-long-lines flags as aliases for
--wrap=never. See #2309
* Breaking change: Environment variables can now override config
file settings (but command-line arguments still have the highest
precedence), see #1152, #1281, and #2381
* Implemented --nonprintable-notation=caret to support showing
non-printable characters using caret notation. See #2429
Bugfixes:
* Fix bat cache --clear not clearing the --target dir if specified. See #2393
Other:
* Various bash completion improvements, see #2310
* Disable completion of cache subcommand, see #2399
* Signifigantly improve startup performance on macOS, see #2442
* Bump MSRV to 1.62, see #2496
Syntaxes:
* Added support for Ada, see #1300 and #2316
* Added todo.txt syntax, see #2375
* Improve Manpage.sublime-syntax. See #2364 and #2461
* Added a new requirements.txt syntax, see #2361
* Added a new VimHelp syntax, see #2366
* Associate pdm.lock with TOML syntax, see #2410
* Todo.txt: Fix highlighting of contexts and projects at beginning
of done.txt, see #2411
* cmd-help: overhaul scope names (colors) to improve theme
support; misc syntax improvements. See #2419
* Added support for Crontab, see #2509
OBS-URL: https://build.opensuse.org/package/show/utilities/bat?expand=0&rev=41
2023-03-26 00:00:03 +01:00
|
|
|
# Copyright (c) 2023 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
|
- Update to 0.23.0:
Features:
* Implemented -S and --chop-long-lines flags as aliases for
--wrap=never. See #2309
* Breaking change: Environment variables can now override config
file settings (but command-line arguments still have the highest
precedence), see #1152, #1281, and #2381
* Implemented --nonprintable-notation=caret to support showing
non-printable characters using caret notation. See #2429
Bugfixes:
* Fix bat cache --clear not clearing the --target dir if specified. See #2393
Other:
* Various bash completion improvements, see #2310
* Disable completion of cache subcommand, see #2399
* Signifigantly improve startup performance on macOS, see #2442
* Bump MSRV to 1.62, see #2496
Syntaxes:
* Added support for Ada, see #1300 and #2316
* Added todo.txt syntax, see #2375
* Improve Manpage.sublime-syntax. See #2364 and #2461
* Added a new requirements.txt syntax, see #2361
* Added a new VimHelp syntax, see #2366
* Associate pdm.lock with TOML syntax, see #2410
* Todo.txt: Fix highlighting of contexts and projects at beginning
of done.txt, see #2411
* cmd-help: overhaul scope names (colors) to improve theme
support; misc syntax improvements. See #2419
* Added support for Crontab, see #2509
OBS-URL: https://build.opensuse.org/package/show/utilities/bat?expand=0&rev=41
2023-03-26 00:00:03 +01:00
|
|
|
Version: 0.23.0
|
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
|
|
|
|
2022-12-01 08:59:39 +01:00
|
|
|
%package bash-completion
|
|
|
|
Summary: Bash completion for %{name}
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Supplements: (%{name} and bash-completion)
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description bash-completion
|
|
|
|
Bash command line completion support for %{name}.
|
|
|
|
|
|
|
|
%package fish-completion
|
|
|
|
Summary: Fish completion for %{name}
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Supplements: (%{name} and fish)
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description fish-completion
|
|
|
|
Fish command line completion support for %{name}.
|
|
|
|
|
|
|
|
%package zsh-completion
|
|
|
|
Summary: Zsh completion for %{name}
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Supplements: (%{name} and zsh)
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description zsh-completion
|
|
|
|
Zsh command line completion support for %{name}.
|
|
|
|
|
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}
|
|
|
|
|
2022-12-01 08:59:39 +01:00
|
|
|
install -D -m 0644 $(find target/release/build -name "%{name}.1") "%{buildroot}/%{_mandir}/man1/%{name}.1"
|
|
|
|
|
|
|
|
install -D -m 0644 $(find target/release/build -name "%{name}.bash") "%{buildroot}/%{_datadir}/bash-completion/completions/%{name}"
|
|
|
|
install -D -m 0644 $(find target/release/build -name "%{name}.fish") "%{buildroot}/%{_datadir}/fish/vendor_completions.d/%{name}.fish"
|
|
|
|
install -D -m 0644 $(find target/release/build -name "%{name}.zsh") "%{buildroot}/%{_datadir}/zsh/site-functions/_%{name}"
|
|
|
|
|
2021-06-16 11:24:39 +02:00
|
|
|
%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}
|
2022-12-01 08:59:39 +01:00
|
|
|
%{_mandir}/man1/%{name}.1%{ext_man}
|
|
|
|
|
|
|
|
%files bash-completion
|
|
|
|
%{_datadir}/bash-completion/completions/%{name}
|
|
|
|
|
|
|
|
%files fish-completion
|
|
|
|
%dir %{_datadir}/fish
|
|
|
|
%dir %{_datadir}/fish/vendor_completions.d
|
|
|
|
%{_datadir}/fish/vendor_completions.d/%{name}.fish
|
|
|
|
|
|
|
|
%files zsh-completion
|
|
|
|
%dir %{_datadir}/zsh
|
|
|
|
%dir %{_datadir}/zsh/site-functions
|
|
|
|
%{_datadir}/zsh/site-functions/_%{name}
|
2019-02-12 16:07:55 +01:00
|
|
|
|
|
|
|
%changelog
|