]> git.pld-linux.org Git - packages/rpm-pld-macros.git/blame - macros.rust
move rust macros to dedicated file
[packages/rpm-pld-macros.git] / macros.rust
CommitLineData
2e9c5710
JP
1%debuginforustflags %{expand:%%define __dic_%{?_enable_debug_packages} 1}%{?__dic_1: -g}%{expand:%%undefine __dic_%{?_enable_debug_packages}}
2%rpmrustflags %debuginforustflags
3
4%__cargo /usr/bin/cargo
5%__cargo_common_opts -v --offline
6%cargo_build { \
7 RUSTFLAGS="${RUSTFLAGS:-%rpmrustflags}" \
8 %{?__jobs:CARGO_BUILD_JOBS="${CARGO_BUILD_JOBS:-%{__jobs}}"} \
9 %{__cargo} %{__cargo_common_opts} build %{!?debug:--release} \
10}
11%cargo_install { \
12 RUSTFLAGS="${RUSTFLAGS:-%rpmrustflags}" \
13 %{?__jobs:CARGO_BUILD_JOBS="${CARGO_BUILD_JOBS:-%{__jobs}}"} \
14 %{__cargo} %{__cargo_common_opts} install \
15}
This page took 0.031233 seconds and 4 git commands to generate.