%global debug_package %{nil} %global commit 566bb9c6ef9c55b9f07ab0ed12f70c36fef475c1 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global date 20200115 Name: breeze Version: 0 Release: 1.%{date}git%{shortcommit}%{?dist} Summary: Kakoune-inspired CLI-centric text/code editor with |-shaped cursor License: FIXME URL: https://github.com/dpc/breeze Source0: %{url}/archive/%{commit}/%{name}-%{version}.%{date}git%{shortcommit}.tar.gz BuildRequires: cargo >= 1.33.0 BuildRequires: rust >= 1.33.0 %description I have recently switched to kakoune after years (decades?) of using Vim. I think changing action, movement into movement, action is a brilliant idea. I enjoy simplicity of Kakoune and I am generally quite happy using it. However I have couple of ideas how Kakoune could be better and/or disagree with a couple of things in it. So I decided to hack together my own code editor to demonstrate / try them. %prep %autosetup -n %{name}-%{commit} -p1 sed -i '/opt-level = 1/d' Cargo.toml %build #cargo build --release #cargo build %install #install -Dp -m 0755 target/release/%{name} %{buildroot}%{_bindir}/%{name} #install -Dp -m 0755 target/debug/%{name} %{buildroot}%{_bindir}/%{name} #cargo install --debug --root=%{buildroot}%{_prefix} --path=. pushd brz cargo install --root=%{buildroot}%{_prefix} --path=. popd #pushd libbrz #cargo install --root=%{buildroot}%{_prefix} --path=. #popd rm -f %{buildroot}%{_prefix}/.crates.toml %files %doc README.md %{_bindir}/brz %changelog * Wed Jan 15 2020 Artem Polishchuk - 0-1.20200115git566bb9c - Update to latest git snapshot * Thu Nov 28 2019 Artem Polishchuk - 0-1.20191118git8a311bd - Initial package