SHA256
1
0
forked from pool/xplr
xplr/xplr.spec
Soc Virnyl Estela 531d6c8d30 - Update to version 0.20.0:
* BREAKING: xplr shell (:!) will default to null (\0) delimited pipes, as
	opposed to newline (\n) delimited ones (i.e. will use Call0 instead of
	Call).
  * Use new messages for safer file path handling (\0 delimited):
    - Call0
    - CallSilently0
    - BashExec0
    - BashExecSilently0
  * Use new sub-commands for safer message passing:
    - -m FORMAT [ARGUMENT]... / --pipe-msg-in FORMAT [ARGUMENT]...
    - -M FORMAT [ARGUMENT]... / --print-msg-in FORMAT [ARGUMENT]...
    - Where FORMAT is a YAML string that may contain %s, %q and %%
    - placeholders and ARGUMENT is the value per placeholder. See init.lua
  * Use --vroot to isolate navigation of an xplr session inside a specific
	directory. Interaction still requires passing full path, and shell,
	lua functions etc still can access paths outside vroot.
  * Use the following messages to switch vroot at runtime, or the use key
	bindings available in the new builtin mode "vroot" (mapped to : v).
    - SetVroot
    - UnsetVroot
    - ToggleVroot
    - ResetVroot
  * Use $XPLR_INITIAL_PWD and Lua equivalent to implement workspace like
	features without using virtual root. Use keys gi to go to the initial
	working directory from anywhere.
  * Use the convenient xplr.util utility functions in your Lua function calls.
	See xplr.util API docs.
  * Improved CLI errors.
  * Finished documentation.
  * UI updates to handle newlines in path.

OBS-URL: https://build.opensuse.org/package/show/utilities/xplr?expand=0&rev=4
2022-11-02 09:08:08 +00:00

72 lines
2.6 KiB
RPMSpec

#
# spec file for package xplr
#
# Copyright (c) 2022 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: xplr
Version: 0.20.0
Release: 0
Summary: Hackable, minimal, fast TUI file explorer
License: MIT
Group: Productivity/File utilities
URL: https://github.com/sayanarijit/xplr
Source0: https://github.com/sayanarijit/xplr/archive/refs/tags/v%{version}.tar.gz
Source1: vendor.tar.gz
Source2: cargo_config
Source3: https://github.com/sayanarijit/xplr/releases/download/v%{version}/source.tar.gz.asc#/v%{version}.tar.gz.asc
BuildRequires: cargo-packaging
BuildRequires: hicolor-icon-theme
BuildRequires: rust+cargo
%description
xplr is a terminal UI based file explorer that aims to increase our terminal productivity by being a flexible,
interactive orchestrator for the ever growing awesome command-line utilities that work with the file-system.
To achieve its goal, xplr strives to be a fast, minimal and more importantly, hackable file explorer.
xplr is not meant to be a replacement for the standard shell commands or the GUI file managers. Rather, it aims
to integrate them all and expose an intuitive, scriptable, keyboard controlled, real-time visual interface, also
being an ideal candidate for further integration, enabling you to achieve insane terminal productivity.
%prep
%autosetup -a1
mkdir -p .cargo
cp %{SOURCE2} .cargo/config
%build
%{cargo_build}
%install
%{cargo_install}
install -Dm644 -T \
%{_builddir}/%{name}-%{version}/assets/desktop/%{name}.desktop \
%{buildroot}%{_datadir}/applications/%{name}.desktop
for i in 128 16 32 64; do
install -Dm644 "%{_builddir}/%{name}-%{version}/assets/icon/%{name}${i}.png" "%{buildroot}/%{_datadir}/icons/hicolor/${i}-${i}/apps/%{name}.png"
done
install -Dm644 "%{_builddir}/%{name}-%{version}/assets/icon/%{name}.svg" -t "%{buildroot}/%{_datadir}/icons/hicolor/scalable/apps"
%files
%license LICENSE
%doc CONTRIBUTING.md README.md RELEASE.md
%{_bindir}/%{name}
%{_datadir}/icons/*
%{_datadir}/applications/*
%changelog