Accepting request 674133 from home:dmarcoux

- Add README.packager for instructions on how to generate vendor.tar.xz
- Update to version 0.10.0
  * Features
    New option --highlight-line <N>
    New option -A/--show-all to show and highlight non-printable characters (in analogy to GNU cats option)
    New option --pager to configure the pager
    Support for a configuration file (https://github.com/sharkdp/bat#format)
    Support for custom config file path via --config-file option or BAT_CONFIG_PATH environment variable
    Support for custom syntax mappings via the -m/--max-syntax option
    Support pager command-line arguments in PAGER and BAT_PAGER
    The --terminal-width option can now also accept offsets
    Support for multiple --line-range arguments
    Encoding support for UTF-16LE and UTF-16BE
  * Changes
    Completely disabled the generation of shell completion files
    Report the name of missing files
    Don't start pager if file doesn't exist
    Rename bat cache --init to bat cache --build
    Move the --config-dir and --cache-dir options from bat cache to bat and hide them from the help text
    The default tab-width has been set to 4
  * New syntaxes supported
    Robot framework, Twig, .desktop files, AsciiDoc, Assembly, Jsonnet,
    Log files, Protobuf and ProtobufText, Terraform and Varlink

OBS-URL: https://build.opensuse.org/request/show/674133
OBS-URL: https://build.opensuse.org/package/show/utilities/bat?expand=0&rev=5
This commit is contained in:
Michael Vetter 2019-02-12 15:07:55 +00:00 committed by Git OBS Bridge
parent cde804fd67
commit d63e9f5c4b
6 changed files with 58 additions and 9 deletions

18
README.packager Normal file
View File

@ -0,0 +1,18 @@
# Heavily based on https://build.opensuse.org/package/view_file/devel:languages:rust/racer/README.packager (Thank you for this!)
#
# Generating `vendor.tar.xz`
1. Install `cargo` and `cargo-vendor` from official repositories. `cargo` is provided by `rust`
zypper install rust cargo-vendor
2. Checkout version
git clone https://github.com/sharkdp/bat
cd bat
git checkout v0.10.0 (or another version from `git tag --list`)
3. Generate archive
cargo vendor
tar c vendor/ | xz > vendor.tar.xz

3
bat-0.10.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:54dd396e8f20d44c6032a32339f45eab46a69b6134e74a704f8d4a27c18ddc3e
size 810088

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5863895e6ac95f5349da95ff74e196c4b365af3fc3f4a1376cab797df493b7a4
size 701066

View File

@ -1,3 +1,30 @@
-------------------------------------------------------------------
Mon Feb 11 22:15:10 UTC 2019 - Dany Marcoux <dmarcoux@posteo.de>
- Add README.packager for instructions on how to generate vendor.tar.xz
- Update to version 0.10.0
* Features
New option --highlight-line <N>
New option -A/--show-all to show and highlight non-printable characters (in analogy to GNU cats option)
New option --pager to configure the pager
Support for a configuration file (https://github.com/sharkdp/bat#format)
Support for custom config file path via --config-file option or BAT_CONFIG_PATH environment variable
Support for custom syntax mappings via the -m/--max-syntax option
Support pager command-line arguments in PAGER and BAT_PAGER
The --terminal-width option can now also accept offsets
Support for multiple --line-range arguments
Encoding support for UTF-16LE and UTF-16BE
* Changes
Completely disabled the generation of shell completion files
Report the name of missing files
Don't start pager if file doesn't exist
Rename bat cache --init to bat cache --build
Move the --config-dir and --cache-dir options from bat cache to bat and hide them from the help text
The default tab-width has been set to 4
* New syntaxes supported
Robot framework, Twig, .desktop files, AsciiDoc, Assembly, Jsonnet,
Log files, Protobuf and ProtobufText, Terraform and Varlink
-------------------------------------------------------------------
Tue Oct 2 09:40:07 UTC 2018 - Jan Engelhardt <jengelh@inai.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package bat
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,12 +12,12 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: bat
Version: 0.7.1
Version: 0.10.0
Release: 0
Summary: A cat(1) clone with syntax highlighting and Git integration
License: MIT
@ -25,10 +25,12 @@ 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: cmake
BuildRequires: rust
BuildRequires: rust-std
BuildRequires: cmake
BuildRequires: zlib-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -63,3 +65,5 @@ rm %{buildroot}%{_prefix}/.crates.toml
%defattr(-,root,root)
%doc LICENSE-MIT LICENSE-APACHE README.md
%{_bindir}/bat
%changelog

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e8b8c8e1b9334b1fc363a348aed4af83dd7963c72107637cfbb687c8561591ff
size 9128192
oid sha256:4321d8cdbbda7d6040e2812235174792b5475a920a0b46c89427fbb3fe57bdfa
size 10405328