summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-07-06 12:29:38 +0000
committerCoprDistGit <infra@openeuler.org>2023-07-06 12:29:38 +0000
commit1a0e57c2b48f310a793d705879fb0d7b6b91fbcc (patch)
tree9c01f93c9b8513b6281ec70dbaa2f73eab949cc3
parent4845c4026526d181f74e07ff920a69f44ee41b02 (diff)
automatic import of bat
-rw-r--r--bat.spec8
1 files changed, 2 insertions, 6 deletions
diff --git a/bat.spec b/bat.spec
index 8a52bb6..463c97f 100644
--- a/bat.spec
+++ b/bat.spec
@@ -14,13 +14,9 @@ BuildRequires: cargo git
A cat(1) clone with syntax highlighting and Git integration.
%prep
-
-%setup -n %{name}-%{version}
-
-mkdir -p ~/.cargo/
-cp %{SOURCE1} ~/.cargo/
-
+%autosetup -n %{name}-%{version}
cargo -V
+cp %{SOURCE1} ~/.cargo/
%build
cargo build --release