%__cargo /usr/bin/cargo
%__cargo_common_opts -v --offline
%cargo_build \\\
+%ifarch x32 \
+ PKG_CONFIG_ALLOW_CROSS=1 \\\
+%endif \
RUSTFLAGS="${RUSTFLAGS:-%rpmrustflags}" \\\
%{?__jobs:CARGO_BUILD_JOBS="${CARGO_BUILD_JOBS:-%{__jobs}}"} \\\
%{__cargo} %{__cargo_common_opts} build %{!?debug:--release} \\\
%{nil}
%cargo_install \\\
+%ifarch x32 \
+ PKG_CONFIG_ALLOW_CROSS=1 \\\
+%endif \
RUSTFLAGS="${RUSTFLAGS:-%rpmrustflags}" \\\
%{?__jobs:CARGO_BUILD_JOBS="${CARGO_BUILD_JOBS:-%{__jobs}}"} \\\
%{__cargo} %{__cargo_common_opts} install \\\
Summary(pl.UTF-8): Makra RPM dla Linuksa PLD
Name: rpm-pld-macros
Version: %{rpm_macros_rev}
-Release: 1
+Release: 2
License: GPL v2+
Group: Development/Building
Source0: macros.pld