diff --git a/README.packager b/README.packager new file mode 100644 index 0000000..ccbdac8 --- /dev/null +++ b/README.packager @@ -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 diff --git a/bat-0.10.0.tar.gz b/bat-0.10.0.tar.gz new file mode 100644 index 0000000..93a4632 --- /dev/null +++ b/bat-0.10.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:54dd396e8f20d44c6032a32339f45eab46a69b6134e74a704f8d4a27c18ddc3e +size 810088 diff --git a/bat-0.7.1.tar.gz b/bat-0.7.1.tar.gz deleted file mode 100644 index 7e08d1a..0000000 --- a/bat-0.7.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5863895e6ac95f5349da95ff74e196c4b365af3fc3f4a1376cab797df493b7a4 -size 701066 diff --git a/bat.changes b/bat.changes index 23eb344..8cc1c4c 100644 --- a/bat.changes +++ b/bat.changes @@ -1,3 +1,30 @@ +------------------------------------------------------------------- +Mon Feb 11 22:15:10 UTC 2019 - Dany Marcoux + +- Add README.packager for instructions on how to generate vendor.tar.xz +- Update to version 0.10.0 + * Features + New option --highlight-line + 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 diff --git a/bat.spec b/bat.spec index eed2633..350f19f 100644 --- a/bat.spec +++ b/bat.spec @@ -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 diff --git a/vendor.tar.xz b/vendor.tar.xz index c35668f..ba7975a 100644 --- a/vendor.tar.xz +++ b/vendor.tar.xz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e8b8c8e1b9334b1fc363a348aed4af83dd7963c72107637cfbb687c8561591ff -size 9128192 +oid sha256:4321d8cdbbda7d6040e2812235174792b5475a920a0b46c89427fbb3fe57bdfa +size 10405328