yazi/yazi.spec

129 lines
4.3 KiB
RPMSpec
Raw Normal View History

- Replace unar dependency with 7zip - Add ImageMagick as a suggested dependency - Add chafa as a suggested dependency - Update to version 0.3.0: * chore: bump version to 0.3 (#1374) * refactor(nix): cleanup and switch to `nixfmt-rfc-style` (#1376) * feat(nix): set `VERGEN_*` build env vars (#1375) * fix(nix): add `outputHashes` for `notify` git dependency (#1373) * feat: new `extract` builtin plugin for archive extracting (#1321) * fix: adapt to a wider range of terminal cursor management through DECSET and DECRQM requests again * fix: can't rewatch a directory that has been deleted once before (#1335) * fix: adapt to a wider range of terminal cursor management through `DECSET` and `DECRQM` requests (#1346) * fix: help menu multi-line text rendering (#1347) * feat: make `F1` also show the help menu (#1336) * fix: wrong directory loading optimization condition (#1331) * feat: add support for `%@` argument extension on Windows to align with Unix platforms (#1319) * feat: add Winget publishes to CI/CD (#1299) * refactor: fix Clippy warnings (#1312) * fix: add `use-dev-tty` to fix piping to Yazi on macOS (#1317) * fix: destroy term before stopping signals (#1310) * refactor: reimplement the signal system (#1307) * feat: allow setting `YAZI_ID` as a command line argument (#1305) * feat: help users migrate shell key bindings to v0.3 (#1304) * feat: add `children_add` and `children_remove` methods to the `Header` component as well (#1297) * feat: add `ctime` linemode (#1295) * feat: support displaying files with inaccessible metadata (#1275) * feat: add `random` option to the `sort` command (#1291) * feat: make UI extensions easier (#1257) * feat: new command `hardlink` (#1268) OBS-URL: https://build.opensuse.org/package/show/utilities/yazi?expand=0&rev=31
2024-08-01 10:26:32 +00:00
#
# spec file for package yazi
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: yazi
Version: 0.3.0
Release: 0
Summary: Blazing fast terminal file manager written in Rust, based on async I/O
License: MIT
Group: Productivity/Text/Utilities
URL: https://github.com/sxyazi/yazi
Source0: %{name}-%{version}.tar.zst
Source1: vendor.tar.zst
Requires: file
BuildRequires: cargo-packaging
BuildRequires: lua54-devel
Suggests: ffmpegthumbnailer
Suggests: 7zip
Suggests: jq
Suggests: poppler
Suggests: fd
Suggests: ripgrep
Suggests: fzf
Suggests: zoxide
Suggests: ImageMagick
Suggests: chafa
%define __cargo_common_opts --no-default-features --locked
%description
Yazi (means "duck") is a terminal file manager written in Rust, based on non-blocking async I/O. It aims to provide an efficient, user-friendly, and customizable file management experience.
💡 A new article explaining its internal workings: Why is Yazi Fast?
🚀 Full Asynchronous Support: All I/O operations are asynchronous, CPU tasks are spread across multiple threads, making the most of available resources.
💪 Powerful Async Task Scheduling and Management: Provides real-time progress updates, task cancellation, and internal task priority assignment.
🖼️ Built-in Support for Multiple Image Protocols: Also integrated with Überzug++, covering almost all terminals.
🌟 Built-in Code Highlighting and Image Decoding: Combined with the pre-loading mechanism, greatly accelerates image and normal file loading.
🔌 Concurrent Plugin System: UI plugins (rewriting most of the UI), functional plugins (coming soon), custom previewer, and custom preloader; Just some pieces of Lua.
🧰 Integration with fd, rg, fzf, zoxide
💫 Vim-like input/select component, auto-completion for cd paths
🏷️ Multi-Tab Support, Scrollable Preview (for videos, PDFs, archives, directories, code, etc.)
🔄 Bulk Renaming, Visual Mode, File Chooser
🎨 Theme System, Custom Layouts, Trash Bin, CSI u
... and more!
%package bash-completion
Summary: Bash Completion for %{name}
Group: System/Shells
Requires: bash-completion
Supplements: (%{name} and bash-completion)
BuildArch: noarch
%description bash-completion
The official bash completion script for %{name}.
%package fish-completion
Summary: Fish Completion for %{name}
Group: System/Shells
Supplements: (%{name} and fish)
BuildArch: noarch
%description fish-completion
The official fish completion script for %{name}.
%package zsh-completion
Summary: ZSH Completion for %{name}
Group: System/Shells
Supplements: (%{name} and zsh)
BuildArch: noarch
%description zsh-completion
The official zsh completion script for %{name}.
%prep
%autosetup -a1 -p0
%ifarch i586 armv7l
sed -i '/lto = true/d' Cargo.toml
sed -i '/codegen-units = 1/d' Cargo.toml
%endif
- Replace unar dependency with 7zip - Add ImageMagick as a suggested dependency - Add chafa as a suggested dependency - Update to version 0.3.0: * chore: bump version to 0.3 (#1374) * refactor(nix): cleanup and switch to `nixfmt-rfc-style` (#1376) * feat(nix): set `VERGEN_*` build env vars (#1375) * fix(nix): add `outputHashes` for `notify` git dependency (#1373) * feat: new `extract` builtin plugin for archive extracting (#1321) * fix: adapt to a wider range of terminal cursor management through DECSET and DECRQM requests again * fix: can't rewatch a directory that has been deleted once before (#1335) * fix: adapt to a wider range of terminal cursor management through `DECSET` and `DECRQM` requests (#1346) * fix: help menu multi-line text rendering (#1347) * feat: make `F1` also show the help menu (#1336) * fix: wrong directory loading optimization condition (#1331) * feat: add support for `%@` argument extension on Windows to align with Unix platforms (#1319) * feat: add Winget publishes to CI/CD (#1299) * refactor: fix Clippy warnings (#1312) * fix: add `use-dev-tty` to fix piping to Yazi on macOS (#1317) * fix: destroy term before stopping signals (#1310) * refactor: reimplement the signal system (#1307) * feat: allow setting `YAZI_ID` as a command line argument (#1305) * feat: help users migrate shell key bindings to v0.3 (#1304) * feat: add `children_add` and `children_remove` methods to the `Header` component as well (#1297) * feat: add `ctime` linemode (#1295) * feat: support displaying files with inaccessible metadata (#1275) * feat: add `random` option to the `sort` command (#1291) * feat: make UI extensions easier (#1257) * feat: new command `hardlink` (#1268) OBS-URL: https://build.opensuse.org/package/show/utilities/yazi?expand=0&rev=31
2024-08-01 10:26:32 +00:00
%build
export YAZI_GEN_COMPLETIONS=true
export VERGEN_GIT_SHA='openSUSE'
%{cargo_build}
%install
export VERGEN_GIT_SHA='openSUSE'
%{cargo_install -p yazi-fm}
%{cargo_install -p yazi-cli}
install -Dm 644 yazi-boot/completions/yazi.bash %{buildroot}%{_datadir}/bash-completion/completions/yazi
install -Dm 644 yazi-boot/completions/yazi.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/yazi.fish
install -Dm 644 yazi-boot/completions/_yazi %{buildroot}%{_datadir}/zsh/site-functions/_yazi
%check
%{cargo_test}
%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_bindir}/ya
%files bash-completion
%{_datadir}/bash-completion
%files fish-completion
%{_datadir}/fish
%files zsh-completion
%{_datadir}/zsh
%changelog