Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPM spec file for lsd #901

Merged
merged 8 commits into from
Nov 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}