commit f329c346f35622a09475262bb712ae52aed03f4a
Author: Jan Palus <[email protected]>
Date:   Tue Mar 30 13:25:20 2021 +0200

    use %cargo_* macros

 rust.spec | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/rust.spec b/rust.spec
index 3e3e272..d792e2c 100644
--- a/rust.spec
+++ b/rust.spec
@@ -14,6 +14,7 @@ Source1:      %{name}-crates-%{version}.tar.xz
 # Source1-md5: -
 URL:           -
 BuildRequires: cargo
+BuildRequires: rpmbuild(macros) >= 2.003
 BuildRequires: rust
 BuildRequires: tar >= 1:1.22
 BuildRequires: xz
@@ -40,19 +41,17 @@ EOF
 %build
 export CARGO_HOME="$(pwd)/.cargo"
 
-cargo -v build \
+%cargo_build \
 %ifarch x32
        --target x86_64-unknown-linux-gnux32 \
 %endif
-       --release \
        --frozen
 
 %install
 rm -rf $RPM_BUILD_ROOT
 export CARGO_HOME="$(pwd)/.cargo"
 
-cargo -vv \
-       install \
+%cargo_install \
        --frozen \
        --path . \
        --root $RPM_BUILD_ROOT%{_prefix}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/template-specs.git/commitdiff/f329c346f35622a09475262bb712ae52aed03f4a

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

Reply via email to