]> git.pld-linux.org Git - packages/rust.git/commitdiff
use python3 for invoking build scripts
authorJan Palus <atler@pld-linux.org>
Sat, 4 Dec 2021 15:11:51 +0000 (16:11 +0100)
committerJan Palus <atler@pld-linux.org>
Sat, 4 Dec 2021 15:11:51 +0000 (16:11 +0100)
rust.spec

index 837912f031359206384ee47d7dc9107323b563c6..d2c8c05df1bda2a2980a9da6778958d589867174 100644 (file)
--- a/rust.spec
+++ b/rust.spec
@@ -60,7 +60,8 @@ BuildRequires:        cmake >= 3.4.3
 BuildRequires: curl
 # make check needs "ps" for src/test/run-pass/wait-forked-but-failed-child.rs
 BuildRequires: procps
-BuildRequires: python >= 1:2.7
+BuildRequires: python3
+BuildRequires: python3-modules
 BuildRequires: rpm-build >= 4.6
 BuildRequires: rpmbuild(macros) >= 1.752
 %if %{without cross}
@@ -176,7 +177,7 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
        x_py() { \
                local cmd="$1"; \
                shift; \
-               %{?__jobs:CARGO_BUILD_JOBS=%__jobs }./x.py "$cmd" %{?__jobs:-j %__jobs} "$@"; \
+               %{?__jobs:CARGO_BUILD_JOBS=%__jobs }%{__python3} ./x.py "$cmd" %{?__jobs:-j %__jobs} "$@"; \
        }; x_py }
 
 
This page took 0.059448 seconds and 4 git commands to generate.