[packages/git-interactive-rebase-tool] Add cargo build and install

glen glen at pld-linux.org
Wed Apr 22 15:59:33 CEST 2020


commit 805a987d62d73838dee1ef70aea3840381b3c8b1
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Wed Apr 22 16:58:47 2020 +0300

    Add cargo build and install
    
    based loosely on rust-cbindgen.spec (@d3ec284)

 git-interactive-rebase-tool.spec | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/git-interactive-rebase-tool.spec b/git-interactive-rebase-tool.spec
index a2561fd..08d98ed 100644
--- a/git-interactive-rebase-tool.spec
+++ b/git-interactive-rebase-tool.spec
@@ -7,6 +7,7 @@ Group:		Development/Tools
 Source0:	https://github.com/MitMaro/git-interactive-rebase-tool/archive/%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	cf6ce6096646e68dad0a2dce4e5bc67e
 URL:		https://github.com/MitMaro/git-interactive-rebase-tool
+BuildRequires:	cargo
 Requires:	git-core >= 1.7.8
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -17,9 +18,11 @@ Terminal based sequence editor for git interactive rebase.
 %setup -q
 
 %build
+cargo -v build --release
 
 %install
 rm -rf $RPM_BUILD_ROOT
+cargo -v install --root $RPM_BUILD_ROOT%{_prefix} --path $PWD
 
 %clean
 rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/git-interactive-rebase-tool.git/commitdiff/805a987d62d73838dee1ef70aea3840381b3c8b1



More information about the pld-cvs-commit mailing list