summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordaniejstriata <13314239+daniejstriata@users.noreply.github.com>2023-11-24 12:36:56 +0200
committerGitHub <noreply@github.com>2023-11-24 18:36:56 +0800
commit0fa2ca2b3a707ab486e6f55e80b705bfe2653225 (patch)
treedf1c114bf530d8f944acf58abe6dfa5afb593998
parent35986b28f775448094ad3d92a6b6fc98fbc621e8 (diff)
RPM spec file for lsd (#901)
Basic SPEC file that can be used to build a RPM for lsd. - UPX compression was disabled. I have precompiled packages on my fork for EL9 and AMZN AL2023. https://github.com/daniejstriata/lsd/releases
-rw-r--r--lsd.spec32
1 files changed, 32 insertions, 0 deletions
diff --git a/lsd.spec b/lsd.spec
new file mode 100644
index 0000000..68b9c3c
--- /dev/null
+++ b/lsd.spec
@@ -0,0 +1,32 @@
+Name: lsd
+Version: 1.0.0
+Release: 1%{?dist}
+Summary: The next gen ls command
+
+License: MIT
+URL: https://github.com/lsd-rs/lsd
+Source0: https://github.com/lsd-rs/lsd/archive/refs/tags/v%{version}.tar.gz
+
+BuildRequires: rust
+BuildRequires: cargo
+
+%description
+This project is a rewrite of GNU ls with lots of added features like colors, icons, tree-view, more formatting options etc. The project is heavily inspired by the super colorls project.
+
+%global debug_package %{nil}
+
+%prep
+%setup -q
+
+%build
+cargo build --release
+
+%install
+%global _build_id_links none
+mkdir -p %{buildroot}/%{_bindir}
+# upx "target/release/lsd"
+install -m 755 target/release/%{name} %{buildroot}/%{_bindir}/%{name}
+
+%files
+%defattr(-,root,root,-)
+%{_bindir}/%{name}