bat/bat.spec
Michael Vetter 2292cc22c4 Accepting request 1003476 from home:jcronenberg
- Update to version 0.22.1:
  - v0.22.1
    * Bugfixes
      - Bring back pre-processing of ANSI escape characters to so that some
        common bat use cases starts working again. See #2308 (@Enselic)
  - v0.22.0
    * Features
      - Make the default macOS theme depend on Dark Mode.
        See #2197, #1746 (@Enselic)
      - Support for separate system and user config files.
        See #668 (@patrickpichler)
    * Bugfixes
      - Prevent fork nightmare with PAGER=batcat. See #2235 (@johnmatthiggins)
      - Make --no-paging/-P override --paging=... if passed as a later arg,
        see #2201 (@themkat)
      - --map-syntax and --ignored-suffix now works together, see #2093 (@czzrr)
      - Strips byte order mark from output when in non-loop-through mode.
        See #1922 (@dag-h)
    * Other
      - Relaxed glibc requirements on amd64, see #2106 and #2194 (@sharkdp)
      - Improved fish completions. See #2275 (@zgracem)
      - Stop pre-processing ANSI escape characters. Syntax highlighting on ANSI
        escaped input is not supported. See #2185 and #2189 (@Enselic)
    * Syntaxes
      - NSE (Nmap Scripting Engine) is mapped to Lua, see #2151 (@Cre3per)
      - Correctly color fstab dump and pass fields, see #2246 (@yuvalmo)
      - Update Command Help syntax, see #2255
      - Julia: Fix syntax highlighting for function name starting with struct,
        see #2230
      - Minor update to LiveScript, see #2291

OBS-URL: https://build.opensuse.org/request/show/1003476
OBS-URL: https://build.opensuse.org/package/show/utilities/bat?expand=0&rev=35
2022-09-14 13:18:57 +00:00

61 lines
1.8 KiB
RPMSpec

#
# spec file for package bat
#
# Copyright (c) 2022 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.22.1
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
Source2: cargo_config
BuildRequires: cargo-packaging
# 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
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