summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-07-06 08:46:28 +0000
committerCoprDistGit <infra@openeuler.org>2023-07-06 08:46:28 +0000
commit2ec95d96b9ee162b9e13c842b7d3ee85082fa827 (patch)
tree4c64f1cb891ae7dd2fe75974700f6320b898af9c
parent42be6fb982d609ce31f584122574344d7f856eb4 (diff)
automatic import of bat
-rw-r--r--bat.spec12
1 files changed, 9 insertions, 3 deletions
diff --git a/bat.spec b/bat.spec
index 34396a1..32afa53 100644
--- a/bat.spec
+++ b/bat.spec
@@ -21,14 +21,20 @@ mkdir -p ~/.cargo/
cp %{SOURCE1} ~/.cargo/
cargo -V
-cargo check
%build
cargo build --release
%install
-cp target/release/bat %{_bindir}/
-ls %{_bindir} -al
+mkdir -p %{buildroot}%{_bindir}
+cp ./target/release/bat %{buildroot}%{_bindir}
+ls %{buildroot}%{_bindir} -al
+
+%files
+%{_bindir}/%{name}
+%doc README.md
+%{_mandir}/man1/%{name}.1.gz
+%license LICENSE-MIT LICENSE-APACHE
%changelog
* 07 06 2023 zerocraft <zero.craft@hotmail.com> - 0.23.0