Accepting request 699676 from home:dmarcoux

- Run spec-cleaner
- Remove double %setup macro
- Simplify tar command in README.packager

OBS-URL: https://build.opensuse.org/request/show/699676
OBS-URL: https://build.opensuse.org/package/show/utilities/bat?expand=0&rev=8
This commit is contained in:
Dany Marcoux 2019-04-30 13:19:12 +00:00 committed by Git OBS Bridge
parent 01017a709b
commit 0d3d6256fb
3 changed files with 10 additions and 5 deletions

View File

@ -15,4 +15,4 @@
3. Generate archive
cargo vendor
tar c vendor/ | xz > vendor.tar.xz
tar -cJf vendor.tar.xz vendor

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Apr 30 13:08:18 UTC 2019 - Dany Marcoux <dmarcoux@suse.com>
- Run spec-cleaner
- Remove double %setup macro
- Simplify tar command in README.packager
-------------------------------------------------------------------
Mon Feb 11 22:15:10 UTC 2019 - Dany Marcoux <dmarcoux@posteo.de>

View File

@ -22,7 +22,7 @@ Release: 0
Summary: A cat(1) clone with syntax highlighting and Git integration
License: MIT
Group: Productivity/Text/Utilities
Url: https://github.com/sharkdp/bat
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
@ -32,15 +32,13 @@ BuildRequires: cmake
BuildRequires: rust
BuildRequires: rust-std
BuildRequires: zlib-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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 -q
%setup -q -D -T -a 1
%setup -qa1
mkdir cargo-home
cat >cargo-home/config <<EOF
[source.crates-io]