summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-07-05 06:03:18 +0000
committerCoprDistGit <infra@openeuler.org>2023-07-05 06:03:18 +0000
commite234d22c8870fc45d61e10a340b787525ea7616d (patch)
tree86554076ac0becc0fcc05387ce8dd399d1031ce0
parentb4d9a2bd1eca090ae6765cede8c9b87ae24c5c16 (diff)
automatic import of bat
-rw-r--r--.gitignore1
-rw-r--r--bat.spec20
-rw-r--r--sources1
3 files changed, 22 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..6f64b34 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/bat-0.23.0.tar.gz
diff --git a/bat.spec b/bat.spec
new file mode 100644
index 0000000..ecdb872
--- /dev/null
+++ b/bat.spec
@@ -0,0 +1,20 @@
+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://github.com/sharkdp/bat/archive/refs/tags/bat-%{version}.tar.gz
+Source1: https://gitee.com/zerocraft/bat/blob/master/bat-%{version}.tar.gz
+
+BuildRequires: cargo
+
+%description
+A cat(1) clone with syntax highlighting and Git integration.
+
+%prep
+%autosetup
+
+%install
+cargo install --locked bat
diff --git a/sources b/sources
new file mode 100644
index 0000000..240ca80
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+678e13187ba4202fd3588a72f3e2bc9e bat-0.23.0.tar.gz