commit 08a8c8dcb5f5a3e7e6931963826c9001dbfbc156
Author: Elan Ruusamäe <[email protected]>
Date:   Wed Mar 17 16:29:00 2021 +0200

    Update install section

 sccache.spec | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/sccache.spec b/sccache.spec
index e53b268..fbc2ca7 100644
--- a/sccache.spec
+++ b/sccache.spec
@@ -1,7 +1,7 @@
 Summary:       sccache is ccache with cloud storage
 Name:          sccache
 Version:       0.2.13
-Release:       0.1
+Release:       1
 License:       Apache v2.0
 Group:         Development/Tools
 Source0:       
https://github.com/mozilla/sccache/archive/%{version}/%{name}-%{version}.tar.gz
@@ -62,10 +62,16 @@ rm -rf $RPM_BUILD_ROOT
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%cargo_install
+export CARGO_HOME="$(pwd)/.cargo"
+
+cargo -vv \
+       install \
+       --frozen \
+       --path . \
+       --root $RPM_BUILD_ROOT%{_prefix}
 
-find $RPM_BUILD_ROOT -name .crates2.json -delete
-rm -rf $RPM_BUILD_ROOT%{_datadir}/cargo/registry
+%{__rm} $RPM_BUILD_ROOT%{_prefix}/.crates.toml
+%{__rm} $RPM_BUILD_ROOT%{_prefix}/.crates2.json
 
 %files
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/sccache.git/commitdiff/08a8c8dcb5f5a3e7e6931963826c9001dbfbc156

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to