Skip to content

Commit

Permalink
RPM spec file for lsd (#901)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
daniejstriata committed Nov 24, 2023
1 parent 35986b2 commit 0fa2ca2
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions lsd.spec
Original file line number Diff line number Diff line change
@@ -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}

0 comments on commit 0fa2ca2

Please sign in to comment.