blob: 9b88475ccf45ad15d1a45b15136659f498164275 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
Name: bat
Version: 0.23.0
Release: 1
Summary: A cat(1) clone with syntax highlighting and Git integration.
License: Apache-2.0, MIT
URL: https://github.com/sharkdp/bat
Source0: https://gitee.com/zerocraft/bat/blob/master/bat-%{version}.tar.gz
Source1: config
BuildRequires: cargo git
%description
A cat(1) clone with syntax highlighting and Git integration.
%prep
%autosetup -n %{name}-%{version}
cargo -V
mkdir -p ~/.cargo/
cp %{SOURCE1} ~/.cargo/
%build
cargo build --release
%install
mkdir -p %{buildroot}%{_bindir}
cp ./target/release/bat %{buildroot}%{_bindir}
echo %{buildroot}
echo "" > %{buildroot}debugfiles.list
ls %{buildroot} -al
%files
%defattr(-,root,root)
%{_bindir}/%{name}
%doc README.md
%license LICENSE-MIT LICENSE-APACHE
%changelog
* Thu Jul 06 2023 zerocraft <zero.craft@hotmail.com> - 0.23.0
- openEuler init
|