summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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