File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,14 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
102
102
%define _noautoreqfiles lib.*-[[:xdigit:]]{8}[.]so.*
103
103
%define _noautoprovfiles lib.*-[[:xdigit:]]{8}[.]so.*
104
104
105
+ %define x_py { \
106
+ x_py() { \
107
+ local cmd= "$1"; \
108
+ shift; \
109
+ %{?__jobs:CARGO_BUILD_JOBS= %__jobs }./x.py "$cmd" %{?__jobs:-j %__jobs} "$@"; \
110
+ }; x_py }
111
+
112
+
105
113
%description
106
114
Rust is a systems programming language that runs blazingly fast,
107
115
prevents segfaults, and guarantees thread safety.
@@ -289,16 +297,17 @@ find vendor -name .cargo-checksum.json \
289
297
--llvm-root=%{_prefix } \
290
298
--release-channel=%{channel }
291
299
292
- RUST_BACKTRACE= full \
293
- ./x.py dist --verbose
300
+ export RUST_BACKTRACE= full
301
+ % x_py dist --verbose
294
302
295
- %{?with_tests:./x.py test}
303
+ %{?with_tests:% x_py test}
296
304
297
305
%install
298
306
rm -rf $RPM_BUILD_ROOT
299
307
300
- DESTDIR= $RPM_BUILD_ROOT ./x.py install
301
- DESTDIR= $RPM_BUILD_ROOT ./x.py install src
308
+ export DESTDIR= $RPM_BUILD_ROOT
309
+ %x_py install
310
+ %x_py install src
302
311
303
312
# Make sure the shared libraries are in the proper libdir
304
313
%if "%{_libdir }" != "%{common_libdir }"
You can’t perform that action at this time.
0 commit comments